{
  "$comment": "Qlaas DMI operator example · urgent_patch_through. Shapes match UIE-founder/qlaas-dmi test/agentline.test.ts and test/oauth.test.ts (1 Oct 2026). Default mandate: STEP_UP for everyone. The owner approves on their own device before anything rings. No HTTP 402 toll exists in the code.",
  "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"
      },
      "onBehalfOf": {
        "type": "string"
      },
      "callback": {
        "type": "string"
      }
    }
  },
  "mcp": {
    "request": {
      "jsonrpc": "2.0",
      "id": 3,
      "method": "tools/call",
      "params": {
        "name": "urgent_patch_through",
        "arguments": {
          "reason": "Jordan Lee's flight landed early — can we talk now?",
          "onBehalfOf": "Jordan Lee"
        },
        "_meta": {
          "agent": {
            "vendor": "meta-muse",
            "name": "Muse",
            "onBehalfOf": "Jordan Lee"
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 3,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "Awaiting Christian's approval (task task_Qr34St56Uv78)."
          }
        ],
        "structuredContent": {
          "taskId": "task_Qr34St56Uv78",
          "state": "working",
          "decision": "STEP_UP",
          "result": null,
          "receipts": [
            "rcpt_Qr34St56Uv78"
          ]
        },
        "isError": false
      }
    }
  },
  "a2a": {
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "message/send",
      "params": {
        "message": {
          "role": "user",
          "messageId": "m1",
          "parts": [
            {
              "kind": "data",
              "data": {
                "skill": "urgent_patch_through",
                "args": {
                  "reason": "Jordan Lee's flight landed early — can we talk now?",
                  "onBehalfOf": "Jordan Lee"
                }
              }
            }
          ],
          "metadata": {
            "agent": {
              "vendor": "meta-muse",
              "name": "Muse",
              "onBehalfOf": "Jordan Lee"
            }
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "kind": "task",
        "id": "task_Qr34St56Uv78",
        "contextId": "ctx_Hq7LmP3vKd9x",
        "status": {
          "state": "input-required",
          "message": {
            "role": "agent",
            "parts": [
              {
                "kind": "text",
                "text": "Waiting for Christian to approve on their device. Poll tasks/get."
              }
            ]
          }
        },
        "artifacts": [],
        "metadata": {
          "decision": "STEP_UP",
          "receipts": [
            "rcpt_Qr34St56Uv78"
          ]
        }
      }
    },
    "poll": {
      "request": {
        "jsonrpc": "2.0",
        "id": 99,
        "method": "tasks/get",
        "params": {
          "id": "task_Qr34St56Uv78"
        }
      },
      "responseAfterApproval": {
        "jsonrpc": "2.0",
        "id": 1,
        "result": {
          "kind": "task",
          "id": "task_Qr34St56Uv78",
          "contextId": "ctx_Hq7LmP3vKd9x",
          "status": {
            "state": "completed",
            "message": {
              "role": "agent",
              "parts": [
                {
                  "kind": "text",
                  "text": "Done."
                }
              ]
            }
          },
          "artifacts": [
            {
              "artifactId": "task_Qr34St56Uv78-result",
              "parts": [
                {
                  "kind": "data",
                  "data": {
                    "ringing": true,
                    "note": "The owner is being rung now on their preferred device."
                  }
                }
              ]
            }
          ],
          "metadata": {
            "decision": "STEP_UP",
            "receipts": [
              "rcpt_Qr34St56Uv78"
            ]
          }
        }
      }
    }
  },
  "pendingCap": {
    "$comment": "4th unverified urgent request while 3 are already waiting (30-minute window).",
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "kind": "task",
        "id": "task_Wx90Yz12Ab34",
        "contextId": "ctx_Hq7LmP3vKd9x",
        "status": {
          "state": "rejected",
          "message": {
            "role": "agent",
            "parts": [
              {
                "kind": "text",
                "text": "Not permitted: too many unverified urgent requests are already waiting for Christian; leave a message, try later, or authenticate (OAuth or a trusted signature)"
              }
            ]
          }
        },
        "artifacts": [],
        "metadata": {
          "decision": "DENY",
          "receipts": [
            "rcpt_Wx90Yz12Ab34"
          ]
        }
      }
    }
  }
}
