Skip to main content
Glama

search_inbound_items

Read-onlyIdempotent

List and search inbound mail through GET /v1/inbound-items, the same list and search the dashboard shows: newest first, with public status, kind (letter | package), the sender line as read from the envelope, the envelope page and any open action. q is a literal AND search (max 12 terms, 200 characters) over the reference, the sender and the OCR text of every readable page, envelope or contents; status, kind, received_after and received_before (intake time) narrow it. Sandbox keys (sk_agent_test_) see the account's sample letter from Mojave Land Partners (q: "Mojave" finds it); an empty result carries a notice explaining why. Key scope: inbound.item.read (agent.inbox.read also works). Member keys read their own live items; agent keys read items bound or assigned to them, in their key's environment. Proposals are agent-only and always wait for the owner: they never charge credits, buy postage, open, forward or discard anything by themselves. Forward destinations and discard proposals are checked against the agent's structured inbound policy. Image URLs are never issued to agents.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_inbound_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoLiteral AND search: matches items where every term (max 12, 200 characters, NFKC-normalized and lowercased) appears in the reference, the sender line or the OCR text of a readable page. Not fuzzy; punctuation is literal.
kindNoletter or package.
limitNoPage size, 1–50 (default 25).
offsetNoItems to skip, 0–10000 (default 0). The next page starts at offset plus the number returned; results are a current view, not a snapshot.
statusNoOnly items in this public status.
received_afterNoInclusive intake time (ISO 8601 with offset): when the facility logged the item, not a printed date.
received_beforeNoExclusive intake time (ISO 8601 with offset); later than received_after.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / offset / description
      Previous value: -"Items to skip, 0–10000 (default 0). Advance by the number returned while more remain; results are a current view, not a snapshot."New value: +"Items to skip, 0–10000 (default 0). The next page starts at offset plus the number returned; results are a current view, not a snapshot."
    • changedInput schema / properties / q / description
      Previous value: -"Literal AND search: every term (max 12, 200 characters, NFKC-normalized and lowercased) must appear in the reference, the sender line or the OCR text of a readable page. Not fuzzy; punctuation is literal."New value: +"Literal AND search: matches items where every term (max 12, 200 characters, NFKC-normalized and lowercased) appears in the reference, the sender line or the OCR text of a readable page. Not fuzzy; punctuation is literal."
    • changedInput schema / properties / received_after / description
      Previous value: -"Inclusive intake time (ISO 8601 with offset): when the facility logged the item, never a printed date."New value: +"Inclusive intake time (ISO 8601 with offset): when the facility logged the item, not a printed date."
    • changedInput schema / properties / received_before / description
      Previous value: -"Exclusive intake time (ISO 8601 with offset); must be after received_after."New value: +"Exclusive intake time (ISO 8601 with offset); later than received_after."
  2. Changed1 schema field changed
    • addedOutput schema / properties / result / properties / notice
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "message": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "const": "sample_unavailable",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "reason",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  3. Changed7 schema fields changed
    • addedInput schema / properties / kind / description
      Added value: +"letter or package."
    • addedInput schema / properties / limit / description
      Added value: +"Page size, 1–50 (default 25)."
    • addedInput schema / properties / offset / description
      Added value: +"Items to skip, 0–10000 (default 0). Advance by the number returned while more remain; results are a current view, not a snapshot."
    • addedInput schema / properties / q / description
      Added value: +"Literal AND search: every term (max 12, 200 characters, NFKC-normalized and lowercased) must appear in the reference, the sender line or the OCR text of a readable page. Not fuzzy; punctuation is literal."
    • addedInput schema / properties / received_after / description
      Added value: +"Inclusive intake time (ISO 8601 with offset): when the facility logged the item, never a printed date."
    • addedInput schema / properties / received_before / description
      Added value: +"Exclusive intake time (ISO 8601 with offset); must be after received_after."
    • addedInput schema / properties / status / description
      Added value: +"Only items in this public status."
  4. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses result ordering, the exact fields returned (public status, kind, sender line, envelope page, open action), required key scopes (inbound.item.read, with agent.inbox.read accepted), environment-scoped visibility for agent keys, and the notable constraint that image URLs are never issued to agents. It also reassures that nothing is charged, opened, forwarded, or discarded, and that forward/discard proposals are checked against a structured inbound policy.

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?

It is front-loaded with the verb, endpoint, and result shape, and the dense single paragraph is mostly load-bearing. Some material is tangential to a read/search tool, notably the sentence about proposals being agent-only and never charging credits, which belongs to the action-request flow rather than to searching.

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?

For a 7-parameter, fully documented, non-destructive search endpoint with an output schema, the description covers everything an agent needs: ordering, permissions and key scope, search semantics, sandbox behavior, and the empty-result case. Return-value detail is correctly left to the output schema.

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 description coverage is 100%, so the schema already carries the parameter semantics, and the description largely restates them (literal AND search, max 12 terms/200 characters, which fields are searched, status/kind/date narrowing, intake time). The only real additions are the framing that OCR text covers "envelope or contents" and that the four filters "narrow" the query, which is marginal value over the schema.

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 opens with a specific verb and resource ("List and search inbound mail through GET /v1/inbound-items") and anchors it to a familiar reference ("the same list and search the dashboard shows"), plus the default ordering and returned fields. It does not name a sibling such as list_inbound_items to contrast with, so the search-vs-list distinction is implied by the name rather than stated.

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 gives concrete operating context: sandbox keys see a specific sample letter, empty results carry an explanatory notice, member keys read their own items while agent keys read only items bound or assigned to them in their environment. What is missing is explicit routing guidance ("use get_inbound_item for a single item" or "use list_inbound_items when no query is needed"), so the agent must infer alternatives from sibling names.

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.