Skip to main content
Glama

DirectMailAmerica — Narrow

Quote Product

quote_product
Destructive

Hold a 36-hour expanded-product quote using a workspace key, print-ready PDF and 1–100 US recipients. Returns the exact expiration in expiresAt (UTC). Uploads artwork to DirectMailAmerica for live pricing; no charge or mailing. Each PDF page must match catalog dimensions; postcards require one landscape front artwork page. Two-sided postcard: pro_postcard_85x55, doubleSided:true, color:true, plus reverseMessage OR reverseArtworkBase64; the server assembles two pages. Maximum 25 MiB combined artwork. Staging quotes are demo estimates. If live pricing is unavailable and the product has a configured retail fallback, returns ready with pricingSource:fallback, fulfillmentPending:true and the fixed total. Disclose the fulfillment delay before approval. Otherwise returns a saved queued request with totalCents:null and a next-attempt time. Poll get_product_quote with the same ID; never recreate a queued request. A queue_held result needs review. Obtain approval of artwork, addresses and the final total after status becomes ready before sending.

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": {
      "productId": "<productId>",
      "pdfBase64": "<pdfBase64>",
      "from": "<from>",
      "recipients": "<recipients>"
    },
    "name": "quote_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYes
colorNo
paperNo
filenameNo
pdfBase64YesBase64 PDF, maximum 25 MiB decoded. Every page must match the selected product dimensions; postcards require one landscape front artwork page. For pro_postcard_85x55 with doubleSided:true, supply reverseMessage OR reverseArtworkBase64 separately; the server assembles two pages. No raw image files.
productIdYes
recipientsYes
doubleSidedNoTwo-sided postcards: productId pro_postcard_85x55, true, color:true, plus exactly one reverse input. Other postcard sizes remain single-sided.
returnEnvelopeNo
reverseMessageNoFor pro_postcard_85x55 with doubleSided:true only: plain text on the reverse left side, maximum 21 wrapped lines. Choose this OR reverseArtworkBase64. Unsupported glyphs and overflow are rejected.
reverseArtworkBase64NoFor pro_postcard_85x55 with doubleSided:true only: one unrotated PDF page, fitted into the 282 × 348 point reverse left area. No raw images, added bleed or crop marks. Choose this OR reverseMessage. Front and reverse together: maximum 25 MiB decoded.
electronicReturnReceiptNo

Output Schema

NameRequiredDescriptionDefault
idNo
demoNo
fromNo
errorNo
jobIdNo
queueNo
statusNo
optionsNo
quoteIdNo
currencyNo
expiresAtNo
operationYes
recipientsNo
totalCentsNoUSD cents. Null means not applicable or not known; never interpret null as zero.
pricingSourceNo
fulfillmentPendingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / fulfillmentPending
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / pricingSource
      Added value: +{
      +  "enum": [
      +    "live_quote",
      +    "fallback"
      +  ]
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / properties / queue
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / totalCents / description
      Added value: +"USD cents. Null means not applicable or not known; never interpret null as zero."
    • changedOutput schema / properties / totalCents / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses that artwork is uploaded to DirectMailAmerica for live pricing with no charge or mailing, that fallback pricing returns pricingSource:fallback and fulfillmentPending:true, and that queued requests return totalCents:null with a next-attempt time. It also warns that queue_held requires review and that fulfillment delay must be disclosed before approval — rich behavioral context consistent with destructiveHint=true and idempotentHint=false.

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?

The most important action and scope are front-loaded in the first sentence, and later sentences cover pricing and workflow behavior. It is dense but mostly purposeful, though some PDF rules repeat the schema's pdfBase64 description.

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

Completeness4/5

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

Given the tool's complexity — live pricing, staging/fallback states, queued requests, and approval workflow — the description covers the critical operational context well. An output schema exists, so return values need not be fully explained, though the description still helpfully names expiresAt and pricingSource.

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 only 33%, so the description must compensate; it explains the 36-hour hold, 1–100 US recipients, PDF dimension requirements, the two-sided pro_postcard_85x55 assembly rule, and the 25 MiB limit. However, it does not add meaning for parameters such as returnEnvelope, electronicReturnReceipt, paper, color, filename, or the address fields, leaving substantial gaps.

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 opens with a specific verb and resource: 'Hold a 36-hour expanded-product quote' using a workspace key, PDF and recipients. It distinguishes itself from siblings by naming get_product_quote for polling and send_product_quote for the eventual send, and by describing the quote lifecycle rather than sending or previewing.

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

Usage Guidelines4/5

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

It gives clear usage context: staging quotes are demo estimates, queued requests must be polled with get_product_quote and never recreated, queue_held needs review, and approval must happen after status becomes ready. It does not explicitly contrast with preview_product_quote or quote_letter, leaving some sibling-selection inference to the agent.

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