Skip to main content
Glama

get_agent_inbox_scan

Read-onlyIdempotent

Deprecated: superseded by the tool named in _meta.successor. Still served unchanged during the alias window. Read one exact completed facility capture and its saved page OCR through /v1/agent-inbox/:id/scans/:operationId. Sandbox agent key assigned to the member sample only. operationId is the capture's request_id, not a page or bundle ID. Returns scan/ocr page IDs, order, source_sha256 and OCR status (null, queued, processing, ready, needs_review or failed). These captures are separate from seeded sample /context and have no context_version, so they cannot be acknowledged as an outcome. No image URLs, OCR trigger, retry, receipt, email or charge. 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>",
      "request_id": "<request_id>"
    },
    "name": "get_agent_inbox_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYesInbound item id (UUID) from a list or search result.
request_idYesThe capture's request_id, as listed for the member sample's scans.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / request_id / description
      Previous value: -"Captured-scan request id from list_agent_inbox_scans."New value: +"The capture's request_id, as listed for the member sample's scans."
  2. Changed2 schema fields changed
    • addedInput schema / properties / item_id / description
      Added value: +"Inbound item id (UUID) from a list or search result."
    • addedInput schema / properties / request_id / description
      Added value: +"Captured-scan request id from list_agent_inbox_scans."
  3. 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/idempotent annotations: required scopes (agent.inbox.read, agent.read), agent-scoped bearer key with an explicit prohibition on member/facility key impersonation, the exact return fields (scan/ocr page IDs, order, source_sha256) and OCR status vocabulary, and an explicit list of what it does not do (no image URLs, OCR trigger, retry, receipt, email, charge). It also discloses that rollout switches and SQL authorization are shared with REST.

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

Conciseness3/5

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

Front-loads the deprecation notice correctly, but the body is a dense comma-spliced wall of clauses mixing auth, exclusions, return fields and infra caveats, with at least one opaque fragment ('Sandbox agent key assigned to the member sample only'). Most sentences carry information, yet the ordering forces the agent to parse several negatives before reaching any positive description of the read.

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

Completeness4/5

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

An output schema and full annotation set already exist, and the description still covers auth, scoping, return identity fields and status values, so an agent has what it needs. Minor gaps remain: it never states what happens when the capture is not yet complete, and the sandbox-key sentence is too terse to interpret.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description earns extra credit by clarifying that operationId is the capture's request_id and not a page or bundle ID, which disambiguates the request_id parameter beyond its schema text. It says nothing extra about item_id.

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?

States a specific verb and resource: read one exact completed facility capture plus its saved page OCR via /v1/agent-inbox/:id/scans/:operationId. The singular 'one exact' implicitly separates it from the sibling list_agent_inbox_scans, but no sibling is named and the deprecation notice occupies the opening slot.

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?

Gives clear routing guidance by flagging deprecation and pointing to the successor named in _meta.successor, and it states a hard exclusion: these captures have no context_version and cannot be acknowledged as an outcome via report_agent_inbox_outcome. It does not state a positive scenario for when the deprecated alias should still be called beyond the alias window being open.

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.