← All MCP tools

MCP tool

resolve_agent_exception

Record the human or operational resolution of one open exception exactly once. This does not resume the run automatically and does not assert any provider outcome. Inspect all remaining exceptions and approvals, then call resume_agent_run separately when the run is genuinely clear.

Input

Pass fields from this schema as the tool arguments. Runtime ownership, product scope and readiness checks still apply.

Input JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "exceptionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "resolution": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000
    }
  },
  "required": [
    "exceptionId",
    "resolution"
  ]
}

REST mapping and authority

The tool wraps this REST endpoint. The mapping identifies path/query/body transformations and approval or idempotency headers.

Request contract
{
  "method": "POST",
  "path": "/api/v1/agent/exceptions/{exceptionId}/resolve",
  "pathFields": [
    "exceptionId"
  ],
  "pathSchema": {
    "type": "object",
    "properties": {
      "exceptionId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      }
    },
    "additionalProperties": false,
    "required": [
      "exceptionId"
    ]
  },
  "pathEncoding": "encodeURIComponent for each path field",
  "governedAction": null,
  "headers": {},
  "bodySchema": {
    "type": "object",
    "properties": {
      "resolution": {
        "type": "string",
        "minLength": 1,
        "maxLength": 4000
      }
    },
    "additionalProperties": false,
    "required": [
      "resolution"
    ]
  },
  "responseMapping": "REST JSON is returned as MCP structuredContent and a compatibility text block; privacy-sensitive tools validate their output schema."
}

Output

This is the registered MCP output envelope. Nested fields are only modeled where the schema explicitly defines them.

Output JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "exception": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "exception"
  ],
  "additionalProperties": {}
}

Safety annotations

MCP annotations
{
  "readOnlyHint": false,
  "destructiveHint": true,
  "idempotentHint": true,
  "openWorldHint": false
}

Annotations help a client present the tool. The API independently enforces authorization and exact action approvals. Error and retry guidance →

resolve_agent_exception | AdBuyMCP docs