Skip to main content
Glama

request_auth_code_for_recipient

Retrieve a recent authentication code for an exact configured recipient, matched to the target origin by default; specify target_origin unless using mailbox-read access.

Instructions

Retrieve one recent code for an exact configured recipient, matched to target_origin by default. Requires target_origin unless mailbox-read is explicitly selected.

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": {
      "recipient": "<recipient>"
    },
    "name": "request_auth_code_for_recipient"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeNo
agent_idNo
recipientYes
origin_policyNotarget-origin
target_originNo
max_age_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the default origin-matching behavior and the conditional target_origin requirement, but leaves open whether the tool issues a code or merely fetches a previously sent one ('request' in the name versus 'retrieve' in the text), and says nothing about permissions, failure behavior, or the meaning of 'recent'.

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

Conciseness5/5

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

Two short sentences with no filler; the scoping condition is front-loaded and the parameter constraint follows in the second sentence. Every clause carries information.

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

Completeness2/5

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

For a six-parameter tool with no annotations, no output schema, and zero schema descriptions, the description is too thin. It does not say what the returned code looks like, how many may come back, or what happens when no recent code exists, and it leaves the issue-versus-fetch ambiguity unresolved.

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 0% across six parameters, so the description must compensate. It does explain recipient, origin_policy (default target-origin) and target_origin's conditional requirement, but purpose, agent_id, and max_age_seconds remain entirely undefined, and no link is drawn between 'recent' and max_age_seconds.

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 gives a specific verb and resource: 'Retrieve one recent code' for 'an exact configured recipient', which scopes the operation more tightly than the generic name suggests. It is distinguishable from the plain request_auth_code sibling via the 'exact configured recipient' restriction, though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

It states a conditional rule for origin_policy: target_origin is the default and is required unless 'mailbox-read is explicitly selected'. That is useful invocation guidance but it is parameter-level, not tool-selection guidance; nothing says when to choose this tool over request_auth_code or request_verification_link_for_recipient.

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