Skip to main content
Glama

scan_document_expiry

Extract and validate expiry dates from driver/fleet documents. ($2.00)

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": {
      "document_type": "<document_type>"
    },
    "name": "scan_document_expiry"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentNoOptional payment: x402 base64 payment payload, or MPP voucher (mpp.v1...). Without it, the tool returns a payment_required challenge.
document_typeYes
document_image_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the $2.00 cost, but omits that a payment payload is required, what happens on insufficient/absent payment, what 'validate' means (format check? cross-reference?), and whether results are cached or bill per attempt.

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?

Two short, front-loaded sentences with zero filler; the action is stated first and the price second. It is efficient, though the extreme brevity is under-specification rather than economy of expression.

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?

Incorrect placeholder — see corrected reasoning below.

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

Parameters2/5

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

Schema coverage is only 33% and only the payment parameter is documented in the schema. The description adds no meaning to document_type (no enumerable valid values, no indication of allowed document categories) or document_image_url (no format, size, accessibility, or whether it is required for extraction).

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 pair (extract and validate) and a specific resource (expiry dates from driver/fleet documents). It is clearly distinct from siblings like scan_qr_payload or audit_i9_document, though it never names an alternative or narrows the document scope further.

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

Usage Guidelines2/5

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

No when-to-use guidance at all: nothing says which document types qualify, how this differs from verify_driver_compliance or audit_i9_document, or when an agent should prefer another tool. The agent must infer usage purely from the noun 'expiry dates'.

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