Skip to main content
Glama

get_agent_inbox_context

Read-onlyIdempotent

Deprecated: superseded by the tool named in _meta.successor. Still served unchanged during the alias window. Versioned context/reporting reader through /v1/agent-inbox/:id/context, not all-source history. Member-sample context is the original envelope/letter, not later facility captures. Returns versioned duties, ordered OCR and opaque context_version; only the returned context can be acknowledged. Records retrieval, not processing or facility completion. OCR text comes from the mail piece; missing, pending and failed text are reported as such. No provider call or signed image URL. Required scopes: agent.inbox.read, agent.read. Agent-scoped bearer key required; member/facility keys cannot impersonate an agent. Rollout switches, current member approval, assignment, credential environment and SQL authorization are shared with REST.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "item_id": "<item_id>"
    },
    "name": "get_agent_inbox_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYesInbound item id (UUID) from a list or search result.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / item_id / description
      Added value: +"Inbound item id (UUID) from a list or search result."
  2. Changed1 schema field changed
    • changedOutput schema / properties / result / properties / ocr / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "content_trust": {
      -        "const": "untrusted_document",
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -        "type": "string"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "model": {
      -        "maxLength": 120,
      -        "type": "string"
      -      },
      -      "pages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "attempts": {
      -              "maximum": 3,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "completed_at": {
      -              "anyOf": [
      -                {
      -                  "format": "date-time",
      -                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "error_code": {
      -              "anyOf": [
      -                {
      -                  "enum": [
      -                    "provider_unavailable",
      -                    "invalid_output",
      -                    "source_invalid",
      -                    "timeout",
      -                    "access_revoked",
      -                    "worker_failed"
      -                  ],
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "is_blank": {
      -              "anyOf": [
      -                {
      -                  "type": "boolean"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "model": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 120,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "page_id": {
      -              "format": "uuid",
      -              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -              "type": "string"
      -            },
      -            "page_number": {
      -              "maximum": 20,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "provenance": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "extracted_at": {
      -                  "format": "date-time",
      -                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                  "type": "string"
      -                },
      -                "kind": {
      -                  "const": "template_ocr",
      -                  "type": "string"
      -                },
      -                "source_sha256": {
      -                  "pattern": "^[a-f0-9]{64}$",
      -                  "type": "string"
      -                },
      -                "template_version": {
      -                  "const": "mojave-solar-v1",
      -                  "type": "string"
      -                },
      -                "transcript_sha256": {
      -                  "pattern": "^[a-f0-9]{64}$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "template_version",
      -                "source_sha256",
      -                "transcript_sha256",
      -                "extracted_at"
      -              ],
      -              "type": "object"
      -            },
      -            "provider": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 120,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "source_kind": {
      -              "enum": [
      -                "envelope",
      -                "letter"
      -              ],
      -              "type": "string"
      -            },
      -            "source_sha256": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "processing",
      -                "ready",
      -                "needs_review",
      -                "failed"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 32000,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "uncertain_spans": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "reason": {
      -                    "maxLength": 500,
      -                    "type": "string"
      -                  },
      -                  "text": {
      -                    "maxLength": 500,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "text",
      -                  "reason"
      -                ],
      -                "type": "object"
      -              },
      -              "maxItems": 100,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "page_id",
      -            "page_number",
      -            "source_sha256",
      -            "status",
      -            "text",
      -            "is_blank",
      -            "uncertain_spans",
      -            "provider",
      -            "model",
      -            "completed_at",
      -            "attempts",
      -            "error_code"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "status": {
      -        "enum": [
      -          "queued",
      -          "processing",
      -          "ready",
      -          "needs_review",
      -          "failed"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "content_trust",
      -      "id",
      -      "status",
      -      "model",
      -      "created_at",
      -      "pages"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "content_trust": {
      +        "const": "untrusted_document",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +        "type": "string"
      +      },
      +      "id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "model": {
      +        "anyOf": [
      +          {
      +            "maxLength": 120,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "pages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "attempts": {
      +              "maximum": 3,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "completed_at": {
      +              "anyOf": [
      +                {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "error_code": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "provider_unavailable",
      +                    "invalid_output",
      +                    "source_invalid",
      +                    "timeout",
      +                    "access_revoked",
      +                    "worker_failed"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "is_blank": {
      +              "anyOf": [
      +                {
      +                  "type": "boolean"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "model": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 120,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "page_id": {
      +              "format": "uuid",
      +              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +              "type": "string"
      +            },
      +            "page_number": {
      +              "maximum": 20,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "provenance": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "extracted_at": {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "template_ocr",
      +                  "type": "string"
      +                },
      +                "source_sha256": {
      +                  "pattern": "^[a-f0-9]{64}$",
      +                  "type": "string"
      +                },
      +                "template_version": {
      +                  "const": "mojave-solar-v1",
      +                  "type": "string"
      +                },
      +                "transcript_sha256": {
      +                  "pattern": "^[a-f0-9]{64}$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "template_version",
      +                "source_sha256",
      +                "transcript_sha256",
      +                "extracted_at"
      +              ],
      +              "type": "object"
      +            },
      +            "provider": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 120,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "source_kind": {
      +              "enum": [
      +                "envelope",
      +                "letter"
      +              ],
      +              "type": "string"
      +            },
      +            "source_sha256": {
      +              "pattern": "^[a-f0-9]{64}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "processing",
      +                "ready",
      +                "needs_review",
      +                "failed"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 32000,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "uncertain_spans": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "reason": {
      +                    "maxLength": 500,
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "maxLength": 500,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 100,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "page_id",
      +            "page_number",
      +            "source_sha256",
      +            "status",
      +            "text",
      +            "is_blank",
      +            "uncertain_spans",
      +            "provider",
      +            "model",
      +            "completed_at",
      +            "attempts",
      +            "error_code"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "status": {
      +        "enum": [
      +          "queued",
      +          "processing",
      +          "ready",
      +          "needs_review",
      +          "failed"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "content_trust",
      +      "id",
      +      "status",
      +      "model",
      +      "created_at",
      +      "pages"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / properties / result / properties / ocr / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "content_trust": {
      -        "const": "untrusted_document",
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -        "type": "string"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "model": {
      -        "maxLength": 120,
      -        "type": "string"
      -      },
      -      "pages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "attempts": {
      -              "maximum": 3,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "completed_at": {
      -              "anyOf": [
      -                {
      -                  "format": "date-time",
      -                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "error_code": {
      -              "anyOf": [
      -                {
      -                  "enum": [
      -                    "provider_unavailable",
      -                    "invalid_output",
      -                    "source_invalid",
      -                    "timeout",
      -                    "access_revoked",
      -                    "worker_failed"
      -                  ],
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "is_blank": {
      -              "anyOf": [
      -                {
      -                  "type": "boolean"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "model": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 120,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "page_id": {
      -              "format": "uuid",
      -              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -              "type": "string"
      -            },
      -            "page_number": {
      -              "maximum": 20,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "provider": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 120,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "source_kind": {
      -              "enum": [
      -                "envelope",
      -                "letter"
      -              ],
      -              "type": "string"
      -            },
      -            "source_sha256": {
      -              "pattern": "^[a-f0-9]{64}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "processing",
      -                "ready",
      -                "needs_review",
      -                "failed"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "anyOf": [
      -                {
      -                  "maxLength": 32000,
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "uncertain_spans": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "reason": {
      -                    "maxLength": 500,
      -                    "type": "string"
      -                  },
      -                  "text": {
      -                    "maxLength": 500,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "text",
      -                  "reason"
      -                ],
      -                "type": "object"
      -              },
      -              "maxItems": 100,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "page_id",
      -            "page_number",
      -            "source_sha256",
      -            "status",
      -            "text",
      -            "is_blank",
      -            "uncertain_spans",
      -            "provider",
      -            "model",
      -            "completed_at",
      -            "attempts",
      -            "error_code"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "status": {
      -        "enum": [
      -          "queued",
      -          "processing",
      -          "ready",
      -          "needs_review",
      -          "failed"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "content_trust",
      -      "id",
      -      "status",
      -      "model",
      -      "created_at",
      -      "pages"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "content_trust": {
      +        "const": "untrusted_document",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +        "type": "string"
      +      },
      +      "id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "model": {
      +        "maxLength": 120,
      +        "type": "string"
      +      },
      +      "pages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "attempts": {
      +              "maximum": 3,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "completed_at": {
      +              "anyOf": [
      +                {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "error_code": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "provider_unavailable",
      +                    "invalid_output",
      +                    "source_invalid",
      +                    "timeout",
      +                    "access_revoked",
      +                    "worker_failed"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "is_blank": {
      +              "anyOf": [
      +                {
      +                  "type": "boolean"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "model": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 120,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "page_id": {
      +              "format": "uuid",
      +              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +              "type": "string"
      +            },
      +            "page_number": {
      +              "maximum": 20,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "provenance": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "extracted_at": {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "template_ocr",
      +                  "type": "string"
      +                },
      +                "source_sha256": {
      +                  "pattern": "^[a-f0-9]{64}$",
      +                  "type": "string"
      +                },
      +                "template_version": {
      +                  "const": "mojave-solar-v1",
      +                  "type": "string"
      +                },
      +                "transcript_sha256": {
      +                  "pattern": "^[a-f0-9]{64}$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "template_version",
      +                "source_sha256",
      +                "transcript_sha256",
      +                "extracted_at"
      +              ],
      +              "type": "object"
      +            },
      +            "provider": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 120,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "source_kind": {
      +              "enum": [
      +                "envelope",
      +                "letter"
      +              ],
      +              "type": "string"
      +            },
      +            "source_sha256": {
      +              "pattern": "^[a-f0-9]{64}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "processing",
      +                "ready",
      +                "needs_review",
      +                "failed"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "anyOf": [
      +                {
      +                  "maxLength": 32000,
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "uncertain_spans": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "reason": {
      +                    "maxLength": 500,
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "maxLength": 500,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 100,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "page_id",
      +            "page_number",
      +            "source_sha256",
      +            "status",
      +            "text",
      +            "is_blank",
      +            "uncertain_spans",
      +            "provider",
      +            "model",
      +            "completed_at",
      +            "attempts",
      +            "error_code"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "status": {
      +        "enum": [
      +          "queued",
      +          "processing",
      +          "ready",
      +          "needs_review",
      +          "failed"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "content_trust",
      +      "id",
      +      "status",
      +      "model",
      +      "created_at",
      +      "pages"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Added

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/openWorld/idempotent annotations: declares required scopes (agent.inbox.read, agent.read), states that an agent-scoped bearer key is mandatory and member/facility keys cannot impersonate an agent, notes no provider call or signed image URL occurs, and warns that only the returned context can be acknowledged. It also reports OCR edge cases (missing, pending, failed text) so the caller knows incomplete text is expected rather than an error.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The most consequential fact (deprecation and successor) is front-loaded, followed by scope and then behavioral/auth detail. It is dense and jargon-heavy, and the trailing line about rollout switches and SQL authorization being 'shared with REST' is the least actionable sentence, but overall little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description nonetheless characterizes what comes back (versioned duties, ordered OCR, opaque context_version). Auth requirements, identity constraints, deprecation status, and retrieval-only semantics are all covered for a single-parameter read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is a single UUID parameter whose format and provenance are fully documented in the schema. The description adds only indirect context via the endpoint path /v1/agent-inbox/:id/context and the notion of a 'member-sample' item, without clarifying id sourcing or validation rules. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('versioned context/reporting reader through /v1/agent-inbox/:id/context') and explicitly scopes it away from siblings by saying it is 'not all-source history' and 'records retrieval, not processing or facility completion'. The word 'context' remains somewhat abstract, but the surrounding clauses make the tool's identity distinguishable. It also flags deprecation up front.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear conditional guidance: deprecated, superseded by the tool named in _meta.successor, but still served unchanged during the alias window. It also delineates what it is not (all-source history, processing) which implicitly routes to siblings. It stops short of naming which sibling to use when the alias window ends, relying on an out-of-band _meta field the agent may not see.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.