Skip to main content
Glama

US passport expiration and DS-82 cutoff

passport_validity
Read-only

From the issue date and age at issue (16plus or under16), the approximate expiration under 22 CFR 51.4, the validity left on a date, and the last day the passport can be renewed by mail on DS-82.

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": {
      "issue_date": "<issue_date>",
      "age_at_issue": "<age_at_issue>",
      "check_date": "<check_date>"
    },
    "name": "passport_validity"
  }
}

Input Schema

NameRequiredDescriptionDefault
check_dateYes
issue_dateYes
age_at_issueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this a safe, closed-world, non-destructive read, which is accurate for a pure calculation. The description adds the regulatory basis (22 CFR 51.4) and explicitly labels the result 'approximate', which is useful context an agent should convey. It does not state assumptions such as US issuance, adult vs. minor validity rules beyond age_at_issue, or determinism of results.

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?

A single sentence that front-loads the input-to-output flow and packs three distinct results without filler. Slightly dense phrasing ('the approximate expiration under 22 CFR 51.4') but every clause contributes meaning.

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

Completeness3/5

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

For a 3-required-parameter calculator with no output schema, the description covers what comes back and on what basis, which is most of the burden. It leaves out date format expectations for the required string parameters and any caveats about approximate or edge-case results, both of which would affect correct invocation and interpretation.

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 description coverage is 0%, so the description carries the burden and largely does: it anchors issue_date as the starting point, explains age_at_issue with its enum values including the 16plus/under16 split, and ties check_date to the 'validity left on a date' output. The one gap is date format, which neither the schema nor the description specifies.

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 states concrete outputs (approximate expiration under 22 CFR 51.4, validity remaining on a given date, last DS-82 mail-renewal day) so the resource and computation are unambiguous. It does not explicitly distinguish itself from the sibling ds82_check, which overlaps with the mail-renewal cutoff concept.

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?

Usage is only implied: the agent can infer this is the tool to use when it has an issue date and needs expiration or renewal cutoff. There is no explicit when-to-use, no exclusions, and no pointer to ds82_check for the related renewal decision.

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