Skip to main content
Glama

Create a fax

create_fax

Prepare a fax for a person to send with PayPerFax, the pay-per-fax service: no account, no subscription, one payment for one fax. A common use is a letter or a form for the IRS, a doctor, a court, an insurer or a landlord.

The tool does not send the fax and does not charge. It returns a link for the person. The person opens the link, sees the preview and the price, and pays in the browser. Then the fax is sent.

Rules:

  1. Email: ask the person for their email address. Do not guess it. The confirmation and the receipt go there.

  2. A document that the person has as a file (a PDF, a scan, a signed form): do not retype it as text. A typed copy of a signed form is not the form. Set file_expected to true, and tell the person that they add the file on the page of the link.

  3. The fax number of an agency or a company: take it from its official website (for the IRS: irs.gov), and show the person the source. A number from memory can send private papers to a stranger.

  4. A letter that you write goes in markdown. With no cover page, the letter must have its own date, names and address block. With a cover page, keep cover_message short: a long message is cut off.

  5. Limits: the markdown text can be at most 100 KB. Headings, lists, bold text and tables are printed. An image is printed as its alt text, a link as its text, and raw HTML as text.

  6. If you can run shell commands and the document is a local file, send it with the HTTP call: curl -F "to=+14155550101" -F "email=person@example.com" -F "documents[]=@/path/to/file.pdf" https://fax.payperfax.com/api/fax

  7. After the call, give the person the link, and say that nothing is sent and nothing is charged before they pay. The confirmation email comes after the payment. If the status of the fax is later "failed", the person is not charged, and can send the fax again.

Input Schema

NameRequiredDescriptionDefault
toYesThe fax number in international format: "+", the country code, the number. Example: +14155550101.
emailNoThe person's email address, for the confirmation and the receipt. Ask the person; do not guess. Required when you send markdown or a cover page.
countryNoThe person's country as a two-letter code (ISO 3166-1 alpha-2), for example US, DE, GB or JP. It sets the currency of the price, and the date format on the cover page and in the emails. Without it, the price is in US dollars, and the dates have the US format.
languageNoThe language of the pages that the person sees, and of the emails. The default is en.
markdownNoThe document as Markdown text that you wrote, for example a letter. Leave it out when the person has the document as a file.
timezoneNoThe person's time zone as an IANA name, for example America/New_York. Without it, times are shown in UTC.
cover_pageNotrue to put a cover page before the document. The default is no cover page.
sender_nameNoThe sender's name on the cover page. Only with cover_page. At most 100 characters.
cover_messageNoA short note on the cover page, as plain text, at most 5000 characters. Only with cover_page.
file_expectedNotrue when the person must still add a file (a PDF, a scan, a signed form). Then the link opens a form with what you sent, and the person adds the file there.
recipient_nameNoThe recipient's name on the cover page. Only with cover_page. At most 100 characters.
recipient_companyNoThe recipient's company or agency on the cover page. Only with cover_page. At most 100 characters.
show_sender_emailNotrue to show the person's email address on the cover page, so the recipient can reply. Only with cover_page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / show_sender_email
      Added value: +{
      +  "description": "true to show the person's email address on the cover page, so the recipient can reply. Only with cover_page.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / language / enum
      Previous value: -[
      -  "en",
      -  "es",
      -  "de",
      -  "ja",
      -  "ko",
      -  "fr"
      -]New value: +[
      +  "en",
      +  "es",
      +  "de",
      +  "ja",
      +  "ko",
      +  "fr",
      +  "it"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The description carries far more than the annotations (readOnlyHint=false, destructiveHint=false) convey: no charge at creation time, payment happens in the browser, email confirmation only arrives after payment, a "failed" status means no charge and a retry is possible, and markdown text is capped at 100 KB with images reduced to alt text and raw HTML to plain text. The only gap is the exact shape of the returned link/response beyond "a link".

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 opening paragraph front-loads the what and the what-not, and the numbered rules make it scannable. It runs long, though, and rule 7 restates the "nothing is sent and nothing is charged before they pay" point already made up top, plus the embedded curl recipe is arguably documentation for a different call than this tool.

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?

With no output schema, the description takes on the burden of explaining the return value — a link for the person — and then describes the full downstream flow (preview, price, payment, sending, failure handling). For a 13-parameter tool with only one required field, it gives an agent everything needed to call it and to instruct the person afterwards.

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 real meaning on top: rule 2 explains the operational purpose of file_expected (the person adds the file on the link page), rule 4 warns that a long cover_message is cut off, and rule 5 explains how markdown is rendered into print. The remaining parameters (country, timezone, language, cover_page, sender_name) are only covered by the schema.

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 a fax") and immediately delimits scope: it does not send and does not charge, it returns a link the person uses to pay and send. That framing cleanly separates it from get_fax_status (which reports on an already-created fax) without needing to name the sibling.

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?

Seven numbered rules give explicit when-and-how guidance: ask for email rather than guessing, use file_expected for documents the person already has instead of retyping, take fax numbers from official sources and show the person, use markdown for letters you write, and fall back to a raw curl call when a local file exists and shell commands are available. Nothing about selection or prerequisites is left to inference.

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.