Skip to main content
Glama

Get price quote

get_price_quote
Read-onlyIdempotent

Quotes the total price (postage, service fee, VAT) and delivery dates of a letter by destination, pages and registered mail, per delivery option ('self_print' only for senders in Germany). Use it when the user asks about cost or delivery time before creating a letter; after submitting, the submit tools return the exact price. pages sets the format (1–3 standard, 4–8 compact, 9–40 large letter); include_products adds all postage products with their codes. Unknown country codes return an error naming the valid format.

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": {
      "country": "<country>"
    },
    "name": "get_price_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNoNumber of A4 pages of the letter, printed single-sided (1 to 40). Default 1.
countryYesDestination country as two-letter ISO code, e.g. DE, AT, FR, US, JP.
registeredNoRegistered mail (Einschreiben) with tracking and proof of delivery.
return_receiptNoRegistered mail with return receipt; within Germany only.
sender_countryNoSender's country (ISO code), e.g. US. Printing yourself is offered only for senders in Germany.
include_productsNoAlso list all postage products this service can use, with their product_code for create_letter. Only needed for special requests; postage is otherwise chosen automatically.

Output Schema

NameRequiredDescriptionDefault
noteNoWhat the prices include.
pagesNoPages the quote is for.
optionsNoPrice and delivery per delivery option.
productNoPostage product chosen for these pages.
productsNoWith include_products: all postage products this service can use.
registeredNoQuote for registered mail.
destinationNoDestination country code.
product_codeNoCode of that product.
return_receiptNoQuote with return receipt.
destination_nameNoDestination country name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / include_products
      Added value: +{
      +  "default": false,
      +  "description": "Also list all postage products this service can use, with their product_code for create_letter. Only needed for special requests; postage is otherwise chosen automatically.",
      +  "title": "Include Products",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / sender_country / description
      Previous value: -"Sender's country (ISO code). Printing yourself is offered only for senders in Germany."New value: +"Sender's country (ISO code), e.g. US. Printing yourself is offered only for senders in Germany."
    • addedOutput schema / properties
      Added value: +{
      +  "destination": {
      +    "description": "Destination country code.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "destination_name": {
      +    "description": "Destination country name.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "note": {
      +    "description": "What the prices include.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "options": {
      +    "description": "Price and delivery per delivery option.",
      +    "items": {
      +      "additionalProperties": true,
      +      "description": "One delivery option.",
      +      "properties": {
      +        "delivery": {
      +          "description": "'automatic' or 'self_print'.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "delivery_estimate": {
      +          "additionalProperties": true,
      +          "description": "Expected delivery, without guarantee.",
      +          "properties": {
      +            "deadline_warning": {
      +              "description": "Set when the given deadline cannot be met safely.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "delivered_95_percent_by": {
      +              "description": "Germany: date by which 95 % of letters arrive.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "delivered_99_percent_by": {
      +              "description": "Germany: date by which 99 % of letters arrive.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "delivered_earliest": {
      +              "description": "Abroad: earliest expected delivery date.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "delivered_latest": {
      +              "description": "Abroad: latest expected delivery date.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "note": {
      +              "description": "Transit note from Deutsche Post.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "posted_from": {
      +              "description": "Earliest posting date, YYYY-MM-DD.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "postage_cent": {
      +          "description": "Deutsche Post postage in cents.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "price": {
      +          "description": "Total price, e.g. '€6.49'.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "price_cent": {
      +          "description": "Total price in cents.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "service_fee_cent": {
      +          "description": "Service fee in cents.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": [
      +      "array",
      +      "null"
      +    ]
      +  },
      +  "pages": {
      +    "description": "Pages the quote is for.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "product": {
      +    "description": "Postage product chosen for these pages.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "product_code": {
      +    "description": "Code of that product.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "products": {
      +    "description": "With include_products: all postage products this service can use.",
      +    "items": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "destination": {
      +          "description": "domestic or international.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "price_cent": {
      +          "description": "Postage in cents.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "product": {
      +          "description": "Product name.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "product_code": {
      +          "description": "Code for create_letter's product_code.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": [
      +      "array",
      +      "null"
      +    ]
      +  },
      +  "registered": {
      +    "description": "Quote for registered mail.",
      +    "type": [
      +      "boolean",
      +      "null"
      +    ]
      +  },
      +  "return_receipt": {
      +    "description": "Quote with return receipt.",
      +    "type": [
      +      "boolean",
      +      "null"
      +    ]
      +  }
      +}
    • removedOutput schema / title
      Removed value: -"get_price_quoteDictOutput"
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive operation. The description adds meaningful context beyond them: it reports the 'self_print' Germany-only restriction and states that unknown country codes produce an error naming the valid format, though it does not elaborate on response structure, which is covered by the output schema.

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?

The description is compact and front-loaded: it leads with what is quoted, then gives usage guidance, then parameter-specific details. Every sentence contributes information about behavior, selection, or parameters without redundant restatement.

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?

The tool has six parameters with full schema descriptions and an output schema, so return value details need not be repeated. The description covers purpose, alternatives, delivery-option constraints, page-format mapping, include_products behavior, and error handling, which is complete for this complexity.

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 coverage is 100%, so the baseline is 3, but the description adds value by mapping pages ranges to letter formats (1–3 standard, 4–8 compact, 9–40 large letter) and explaining that include_products adds postage products with their codes. It also clarifies the country error behavior, going beyond the schema text.

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 states a specific verb and resource: quoting total price (postage, service fee, VAT) and delivery dates for a letter. It distinguishes the tool from the submit/create tools by framing it as a pre-submission estimate, so an agent can identify its role without inspecting schemas.

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 explicitly says to use this when the user asks about cost or delivery time before creating a letter, and names the alternative behavior after submission: submit tools return the exact price. This gives both when-to-use and when-not-to-use guidance.

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