{
  "$comment": "Qlaas DMI operator example · request_callback. Shapes match UIE-founder/qlaas-dmi test/agentline.test.ts and test/oauth.test.ts (1 Oct 2026). Default mandate: ALLOW. A callback request lands in the inbox; the owner chooses channel and time.",
  "endpoints": {
    "mcp": "https://dmi.qlaas.co.uk/agentline/mcp",
    "a2a": "https://dmi.qlaas.co.uk/agentline/a2a"
  },
  "headers": {
    "content-type": "application/json",
    "authorization": "Bearer <access_token> (optional; without it the caller is tier declared)"
  },
  "inputSchema": {
    "type": "object",
    "required": [
      "reason"
    ],
    "properties": {
      "reason": {
        "type": "string"
      },
      "urgency": {
        "enum": [
          "low",
          "normal",
          "high"
        ]
      },
      "callback": {
        "type": "string"
      },
      "onBehalfOf": {
        "type": "string"
      }
    }
  },
  "mcp": {
    "request": {
      "jsonrpc": "2.0",
      "id": 3,
      "method": "tools/call",
      "params": {
        "name": "request_callback",
        "arguments": {
          "reason": "Delivery window for the new mic",
          "urgency": "normal"
        },
        "_meta": {
          "agent": {
            "vendor": "meta-muse",
            "name": "Muse",
            "onBehalfOf": "Jordan Lee"
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 3,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "Done: {\"delivered\":true,\"ref\":\"msg_Pa5sDf6gHj7k\"}"
          }
        ],
        "structuredContent": {
          "taskId": "task_Gh78Ij90Kl12",
          "state": "completed",
          "decision": "ALLOW",
          "result": {
            "delivered": true,
            "ref": "msg_Pa5sDf6gHj7k"
          },
          "receipts": [
            "rcpt_Gh78Ij90Kl12"
          ]
        },
        "isError": false
      }
    }
  },
  "a2a": {
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "message/send",
      "params": {
        "message": {
          "role": "user",
          "messageId": "m1",
          "parts": [
            {
              "kind": "data",
              "data": {
                "skill": "request_callback",
                "args": {
                  "reason": "Meeting about the collab"
                }
              }
            }
          ],
          "metadata": {
            "agent": {
              "vendor": "meta-muse",
              "name": "Muse",
              "onBehalfOf": "Jordan Lee"
            },
            "upgradeCode": "482913"
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "kind": "task",
        "id": "task_Gh78Ij90Kl12",
        "contextId": "ctx_Hq7LmP3vKd9x",
        "status": {
          "state": "completed",
          "message": {
            "role": "agent",
            "parts": [
              {
                "kind": "text",
                "text": "Done."
              }
            ]
          }
        },
        "artifacts": [
          {
            "artifactId": "task_Gh78Ij90Kl12-result",
            "parts": [
              {
                "kind": "data",
                "data": {
                  "delivered": true,
                  "ref": "msg_Pa5sDf6gHj7k"
                }
              }
            ]
          }
        ],
        "metadata": {
          "decision": "ALLOW",
          "receipts": [
            "rcpt_Gh78Ij90Kl12"
          ],
          "callId": "call_Vb3nMk8lOp2q"
        }
      }
    }
  },
  "upgradeNote": "With metadata.upgradeCode (the 6-digit code the front desk read out), the task is bound to the voice call in progress and metadata.callId is set. A code binds once, never on a denied request; 20 wrong codes in 10 minutes lock guessing."
}
