Skip to main content
Glama

Prepare Fax

prepare_fax
Idempotent

Prepare one PDF fax and return its price and Stripe checkout link. This stores the document but does not send or charge. Completing checkout authorizes sending to the displayed recipient. fax_number must be a US fax number: 10 digits (5155551234), optionally prefixed with 1 or +1 (E.164 such as +15155551234); common formatting such as (515) 555-1234 is accepted. Keep draft_token private and reuse it with identical inputs for retries.

Input Schema

NameRequiredDescriptionDefault
emailYesEmail address for delivery notifications.
filenameYesPDF filename without directory paths.
fax_numberYesUS destination fax number: 10 digits (5155551234), optionally prefixed with 1 or +1 (+15155551234). Common formatting such as (515) 555-1234 is accepted.
draft_tokenYesA secret, cryptographically random 64-character lowercase hex token. Reuse for retries and status checks.
document_base64YesStandard base64 of the PDF bytes, without a data URL prefix; maximum decoded size 10 MiB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only cover idempotentHint and destructiveHint; the description adds the real behavior an agent needs: the document is stored (a side effect), nothing is sent or charged yet, and checkout is the authorization step. The 'reuse draft_token with identical inputs for retries' guidance reinforces the idempotency hint rather than contradicting it, though it doesn't state a retry window or what happens on a mismatched-input reuse.

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?

Three tight sentences, front-loaded with the action and its non-effects before the format and secret-handling details. The fax_number formatting sentence is largely duplicated from the schema, which is dead weight but not enough to derail the structure.

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?

With no output schema, the description usefully names the return values (price, checkout link) and covers the payment/authorization model and input format. It omits the natural follow-up relationship with get_fax_status for status polling, which is the one gap for an agent orchestrating the full fax flow.

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 100%, so all five parameters are already documented, including the fax_number format and the 10 MiB base64 limit. The description restates the fax_number rules verbatim and adds only the 'keep draft_token private' caution, so it lands at the baseline rather than adding new semantic detail.

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?

States a specific verb and resource ('Prepare one PDF fax') plus the explicit return payload ('price and Stripe checkout link'), and draws a hard boundary against sending/charging. An agent can tell this apart from get_fax_status without opening either schema.

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?

Clearly frames the two-phase flow: this call stores the document but does not send or charge, and checkout is what authorizes sending to the displayed recipient. It also gives the retry condition ('reuse it with identical inputs'). It never names the sibling get_fax_status as the follow-up for checking delivery, so the routing guidance is incomplete.

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