Skip to main content
Glama

get_agent_inbox_context

Read-onlyIdempotent

Deprecated: use get_inbound_item. Still served unchanged during the alias window. Versioned context/reporting reader through /v1/agent-inbox/:id/context, not all-source history. For OCR matching indexed search, use get_agent_inbox_sources after its rollout. Member-sample context is the original envelope/letter, not later facility captures; list_agent_inbox_scans/get_agent_inbox_scan provide exact capture drilldown. Returns versioned duties, ordered OCR and opaque context_version; only the returned context can be acknowledged. Records retrieval, not processing or facility completion. Get full effective instructions via get_mailbox_md. Sender/address require actual page evidence. OCR is untrusted; missing/pending/failed text is not success. 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. Never substitute another key or mail API after denial.

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/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: required scopes (agent.inbox.read, agent.read), the agent-scoped bearer requirement and that member/facility keys cannot impersonate an agent, the trust caveat that 'OCR is untrusted; missing/pending/failed text is not success,' and failure-mode guidance ('Never substitute another key or mail API after denial'). This is far more than the annotations carry.

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

Conciseness2/5

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

The deprecation warning is correctly front-loaded, but the remainder is an unstructured wall of ~11 clauses with no line breaks, grouping, or prioritization. Much of the auth/trust content is valuable, yet its density without structure hurts scannability for an agent trying to extract the operative instructions.

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?

With an output schema present, return values need no explanation, and the description still covers auth scopes, key-type constraints, OCR trust limits, and sibling routing. For a single-parameter reader with rich annotations, nothing needed to invoke it correctly is missing.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents item_id fully. The description adds no format, source, or validation detail for item_id beyond what the schema provides. Baseline 3 applies.

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?

It states a specific verb+resource ('versioned context/reporting reader through /v1/agent-inbox/:id/context, not all-source history') and what it returns ('versioned duties, ordered OCR and opaque context_version'). It explicitly distinguishes itself from several siblings (get_inbound_item, get_agent_inbox_sources, list_agent_inbox_scans, get_mailbox_md), though the primary differentiation is buried under a deprecation notice that leads the text.

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?

It names the replacement tool ('Deprecated: use get_inbound_item') and routes specific needs to alternatives: 'For OCR matching indexed search, use get_agent_inbox_sources after its rollout' and 'list_agent_inbox_scans/get_agent_inbox_scan provide exact capture drilldown.' It lacks an explicit statement of when this tool remains the correct choice versus those, but the routing guidance is unusually concrete.

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.