{
  "$comment": "Qlaas DMI operator example · check_availability. Shapes match UIE-founder/qlaas-dmi test/agentline.test.ts and test/oauth.test.ts (1 Oct 2026). Default mandate: ALLOW. Free slots only, inside working hours, never calendar contents. readOnlyHint on MCP.",
  "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": [
      "durationMin"
    ],
    "properties": {
      "durationMin": {
        "type": "integer",
        "minimum": 5,
        "maximum": 240
      },
      "days": {
        "type": "integer",
        "minimum": 1,
        "maximum": 14
      }
    }
  },
  "mcp": {
    "request": {
      "jsonrpc": "2.0",
      "id": 3,
      "method": "tools/call",
      "params": {
        "name": "check_availability",
        "arguments": {
          "durationMin": 30,
          "days": 1
        },
        "_meta": {
          "agent": {
            "vendor": "meta-muse",
            "name": "Muse",
            "onBehalfOf": "Jordan Lee"
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 3,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "Done: {\"disclosure\":\"free/busy only\",\"slots\":[…],\"tz\":\"UTC\"}"
          }
        ],
        "structuredContent": {
          "taskId": "task_Mn34Op56Qr78",
          "state": "completed",
          "decision": "ALLOW",
          "result": {
            "slots": [
              {
                "start": "2026-09-28T11:00:00.000Z",
                "end": "2026-09-28T11:30:00.000Z"
              },
              {
                "start": "2026-09-28T11:30:00.000Z",
                "end": "2026-09-28T12:00:00.000Z"
              }
            ],
            "tz": "UTC",
            "disclosure": "free/busy only"
          },
          "receipts": [
            "rcpt_Mn34Op56Qr78"
          ]
        },
        "isError": false
      }
    }
  },
  "a2a": {
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "message/send",
      "params": {
        "message": {
          "role": "user",
          "messageId": "m1",
          "parts": [
            {
              "kind": "data",
              "data": {
                "skill": "check_availability",
                "args": {
                  "durationMin": 30,
                  "days": 1
                }
              }
            }
          ],
          "metadata": {
            "agent": {
              "vendor": "meta-muse",
              "name": "Muse",
              "onBehalfOf": "Jordan Lee"
            }
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "kind": "task",
        "id": "task_Mn34Op56Qr78",
        "contextId": "ctx_Hq7LmP3vKd9x",
        "status": {
          "state": "completed",
          "message": {
            "role": "agent",
            "parts": [
              {
                "kind": "text",
                "text": "Done."
              }
            ]
          }
        },
        "artifacts": [
          {
            "artifactId": "task_Mn34Op56Qr78-result",
            "parts": [
              {
                "kind": "data",
                "data": {
                  "slots": [
                    {
                      "start": "2026-09-28T11:00:00.000Z",
                      "end": "2026-09-28T11:30:00.000Z"
                    },
                    {
                      "start": "2026-09-28T11:30:00.000Z",
                      "end": "2026-09-28T12:00:00.000Z"
                    }
                  ],
                  "tz": "UTC",
                  "disclosure": "free/busy only"
                }
              }
            ]
          }
        ],
        "metadata": {
          "decision": "ALLOW",
          "receipts": [
            "rcpt_Mn34Op56Qr78"
          ]
        }
      }
    }
  },
  "invalidArgs": {
    "$comment": "Arguments are validated before authority; an invalid range is a DENY, not a 400.",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "message/send",
      "params": {
        "message": {
          "role": "user",
          "messageId": "m1",
          "parts": [
            {
              "kind": "data",
              "data": {
                "skill": "check_availability",
                "args": {
                  "durationMin": 1000,
                  "days": 1000000000
                }
              }
            }
          ],
          "metadata": {
            "agent": {
              "vendor": "meta-muse",
              "name": "Muse",
              "onBehalfOf": "Jordan Lee"
            }
          }
        }
      }
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "kind": "task",
        "id": "task_St90Uv12Wx34",
        "contextId": "ctx_Hq7LmP3vKd9x",
        "status": {
          "state": "rejected",
          "message": {
            "role": "agent",
            "parts": [
              {
                "kind": "text",
                "text": "Not permitted: invalid arguments: durationMin integer 5–240, days integer 1–14"
              }
            ]
          }
        },
        "artifacts": [],
        "metadata": {
          "decision": "DENY",
          "receipts": [
            "rcpt_St90Uv12Wx34"
          ]
        }
      }
    }
  }
}
