Skip to main content
Glama

Get the price and preview

quote_document

Checks the destination and returns a fixed quote: the price, the standardized address and a PDF preview. The destination is an address or a recipient_id from the directory. A quote is valid for 30 minutes. Optional certified adds USPS Certified Mail (certified) or Certified Mail with an electronic return receipt (certified_return_receipt), for letters up to 5 sheets.

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_id": "<document_id>",
      "document_token": "<document_token>"
    },
    "name": "quote_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo
duplexNo
certifiedNo
destinationNo
document_idYes
recipient_idNo
document_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / certified
      Added value: +{
      +  "enum": [
      +    "certified",
      +    "certified_return_receipt"
      +  ],
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • changedInput schema / properties / destination / properties / address_line1 / maxLength
      Previous value: -100New value: +64
    • changedInput schema / properties / destination / properties / address_line2 / maxLength
      Previous value: -100New value: +64
    • addedInput schema / properties / destination / properties / company
      Added value: +{
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • changedInput schema / properties / destination / properties / name / maxLength
      Previous value: -80New value: +40
    • addedInput schema / properties / recipient_id
      Added value: +{
      +  "maxLength": 80,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "document_id",
      -  "document_token",
      -  "destination"
      -]New value: +[
      +  "document_id",
      +  "document_token"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The description adds real behavior beyond the annotations: what the response contains, that the quote expires after 30 minutes, and the certified-mail options with a 5-sheet letter limit. The 30-minute expiry also explains why the tool is flagged non-idempotent and not read-only, since each call creates a time-limited quote resource. Auth requirements and what happens when address standardization fails are not covered.

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?

Four short sentences, front-loaded with the outcome, then the input interpretation, then the validity window, then the optional certified behavior. Nothing is redundant and every sentence contributes an actionable fact.

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?

With no output schema, the description usefully enumerates the return payload, which is a significant contribution. Against seven parameters at zero schema coverage plus a nested destination object, though, the unexplained document_id, document_token, color, and duplex leave the definition short of what an agent needs for a fully confident call.

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%, so the description must carry the parameter burden, and it partially does: it clarifies that destination may be a raw address or a recipient_id from the directory, and it enumerates the certified values with their meaning. However, color, duplex, document_id, and document_token receive no explanation, leaving more than half of the seven parameters undocumented in both places.

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 a specific verb and outcome: checks the destination and returns a fixed quote containing the price, the standardized address, and a PDF preview. That is clearly distinct from send_letter or create_order, but no sibling is named, so the agent must infer the routing rather than being told it.

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 implied rather than stated: the quote's 30-minute validity signals that this is the pricing step preceding an order, but the description never says when to call this instead of verify_address or create_order. No exclusions or prerequisites (auth, account state) are given.

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