{
  "version": "1.0.0",
  "tools": [
    {
      "name": "workflow_list_cases",
      "description": "List the verified user’s own active or archived cases.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "active",
              "closed"
            ]
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          }
        }
      }
    },
    {
      "name": "workflow_get_case",
      "description": "Read a case, its documents, confirmations and delivery state within the user’s membership.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "caseId": {
            "type": "string"
          }
        },
        "required": [
          "caseId"
        ]
      }
    },
    {
      "name": "workflow_create_case",
      "description": "Create the user’s private case or negotiation. Linking an existing job additionally requires ownership on that job.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "trackingId": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ]
      }
    },
    {
      "name": "workflow_create_document",
      "description": "Create an immutable document version and named signer list. Signatures are never copied from an older version.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "caseId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "pdfBase64": {
            "type": "string"
          },
          "supersedes": {
            "type": "string"
          },
          "expiresDays": {
            "type": "integer",
            "minimum": 1,
            "maximum": 7
          },
          "recipients": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "email"
              ]
            }
          }
        },
        "required": [
          "caseId",
          "title",
          "recipients"
        ]
      }
    },
    {
      "name": "workflow_send_document",
      "description": "Queue private signature invitations for a document the user created. Explicit human consent and signature are collected from each recipient.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string"
          }
        },
        "required": [
          "documentId"
        ]
      }
    },
    {
      "name": "workflow_request_verification",
      "description": "Queue a confirmation email about identity, scope, quote or completion for a participant in the user’s case. This does not sign a contract or change a job’s quote/status.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "caseId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "email_identity",
              "job_scope",
              "quote",
              "completion"
            ]
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "caseId",
          "email",
          "purpose",
          "details"
        ]
      }
    },
    {
      "name": "workflow_cancel_document",
      "description": "Cancel a pending document the user created. Completed signature records remain immutable.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string"
          }
        },
        "required": [
          "documentId"
        ]
      }
    },
    {
      "name": "workflow_expire_token",
      "description": "Revoke this workflow agent key immediately without altering the user’s other keys.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    }
  ]
}
