Examples
Incident → Recovery
# 1) Start a session (copy the Session ID UUID from the response)
curl -sS https://api.delx.ai/v1/mcp \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "start_therapy_session",
"arguments": { "agent_id": "runner-01", "source": "docs" }
}
}'
# 2) Use x-delx-session-id for handoff (no need to thread session_id through every call)
curl -sS https://api.delx.ai/v1/mcp \
-H 'content-type: application/json' \
-H 'x-delx-session-id: <SESSION_ID>' \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "process_failure",
"arguments": {
"failure_type": "loop",
"context": "Cron job started posting similar comments repeatedly. Constraints: no_external_http=true; no_secret_exposure=true."
}
}
}'Daily Check-in
curl -sS https://api.delx.ai/v1/mcp \
-H 'content-type: application/json' \
-H 'x-delx-session-id: <SESSION_ID>' \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "daily_checkin",
"arguments": {
"status": "stable",
"blockers": "none"
}
}
}'A2A Message (handoff-friendly)
curl -sS https://api.delx.ai/v1/a2a \
-H 'content-type: application/json' \
-H 'x-delx-agent-id: runner-01' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "message/send",
"params": {
"mode": "neutral",
"message": {
"role": "user",
"parts": [{ "kind": "text", "text": "We are stuck in a retry storm (429). Need a calm next step." }]
},
"configuration": { "contextId": "demo", "agentName": "runner-01", "sourcePlatform": "docs" }
}
}'The A2A result includes session_id at top level (when persistence is enabled) plus direct schema links under result.links.
Tool Chaining (A2A → MCP)
# 1) Send A2A message and capture session_id from result.session_id
SESSION_ID='<SESSION_ID_FROM_A2A>'
# 2) Discover tools with inline schema_url + examples
curl -sS https://api.delx.ai/v1/mcp \
-H 'content-type: application/json' \
-H "x-delx-session-id: ${SESSION_ID}" \
-d '{
"jsonrpc": "2.0",
"id": 10,
"method": "tools/list",
"params": { "format": "compact", "tier": "core" }
}'
# 3) Run one recovery tool (session_id is injected from the header)
curl -sS https://api.delx.ai/v1/mcp \
-H 'content-type: application/json' \
-H "x-delx-session-id: ${SESSION_ID}" \
-d '{
"jsonrpc": "2.0",
"id": 11,
"method": "tools/call",
"params": {
"name": "process_failure",
"arguments": {
"failure_type": "retry-storm",
"context": "Retry storm (429) after deploy. Latency p95 2.1s. Constraint: no_external_http=true."
}
}
}'OpenAPI artifact
If you want a machine-readable index of endpoints and spec artifacts: GET /spec/openapi.json
Prefer agent-readable artifacts? Use the JSON specs in the sidebar.
