Skip to main content
Glama

Read an email again

retry_email_analysis
Idempotent

Changes data: asks Trackberry to read again an email whose first reading failed (an AI outage), as the person who connected this app, and records it in the organization's audit log. It queues one paid AI call, so call it only when the user asks and say so first; it is limited to 10 an hour per connection, and the answer says when to try again if that is used up (do not retry sooner). It fills in what the failed reading skipped but does not move the shipment or notify anyone, and a status it suggests waits for apply_email_suggestion. An email that did not fail, or that is still held, is refused (releasing a held email reads it). In a demo or sample organization nothing is read: the call is recorded in the audit log and answers queued false and simulated true. Safe to repeat: once queued, a second call is refused until the reading fails again. analysis_retryable in get_shipment_details tells which emails can be read again. Answers queued true; the result appears on the email a moment later. Get the message_id from get_shipment_details.

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": {
      "message_id": "<message_id>"
    },
    "name": "retry_email_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesAn email id such as "msg_5120", as returned by get_shipment_details (an email on a shipment) or list_held_emails.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-destructive, idempotent write in an open world; the description goes well beyond that with cost ('queues one paid AI call'), a concrete quota ('10 an hour per connection'), actor identity ('as the person who connected this app'), audit logging, demo/sandbox behavior returning queued=false and simulated=true, and side-effect boundaries ('does not move the shipment or notify anyone'). The stated repeat behavior ('once queued, a second call is refused until the reading fails again') is consistent with idempotentHint=true rather than contradicting it.

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 mutation and cost warning are front-loaded, and the dense clauses are individually load-bearing (quota, demo mode, idempotency, return value). It is on the long side for a single-parameter tool, but no sentence is filler.

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 paid, rate-limited, audited mutation with no output schema, the description covers the return values ('Answers queued true', queued false and simulated true in demos), the asynchronous result timing, refusal cases, and where to find the id — everything an agent needs before calling.

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?

With one parameter at 100% schema coverage, the schema already defines message_id and its example format. The description only adds sourcing hints ('Get the message_id from get_shipment_details' and the analysis_retryable flag), which is useful but marginal over the structured field, so the baseline of 3 applies.

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

Purpose5/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 — 'asks Trackberry to read again an email whose first reading failed (an AI outage)' — and explicitly marks it as a data-changing operation. It is clearly distinguishable from nearby siblings: a suggested status 'waits for apply_email_suggestion' and a held email must be handled by releasing it, not by this tool.

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

Usage Guidelines5/5

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

It gives explicit preconditions ('only when the user asks and say so first'), explicit exclusions ('An email that did not fail, or that is still held, is refused'), an alternative path for held emails, and a discovery mechanism ('analysis_retryable in get_shipment_details tells which emails can be read again'). The rate-limit retry guidance ('do not retry sooner') closes the remaining decision gap.

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.

Resources