Skip to main content
Glama

Send a document

send_document

Sends a document to be translated (PDF, image or Office file, up to 25 MB): a file the user attached in chat as document, a public https url, or content_base64 with its filename when you hold the bytes yourself. It is measured the way the order form measures an upload; the response carries the billable pages and a file_token to pass to get_quote and create_order, valid for 24 hours and one order. If none of these is possible, create the order from the customer's page count and they upload the document at the status_url after paying.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "send_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA public https URL of the document, ending in its extension, e.g. https://files.example.com/birth-certificate.pdf. Omit when sending document or content_base64.
documentNoA file the user attached in the chat, passed as the host provides it. Use this for attachments; omit url and content_base64.
filenameNoThe document's filename with its extension, e.g. birth-certificate.pdf; required with content_base64.
content_base64NoThe document's bytes encoded as base64, when you hold the file rather than a URL or an attachment. Send filename with it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/destructive annotations: it discloses that the document is measured the same way the order form measures an upload, that the response carries billable pages and a file_token, and that the token is valid for 24 hours and a single order. These are exactly the side-effect and lifecycle facts an agent needs before committing a file.

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 verb and resource are front-loaded and the three input modes are enumerated in a single readable sentence, with the fallback path last. The prose is dense rather than padded, though the 'measured the way the order form measures an upload' phrasing and the long parentheticals could be tightened slightly.

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?

There is no output schema, and the description steps in by naming what the response carries (billable pages, file_token) and how long that token lives, which is the critical missing piece. A handoff to a tool with four sibling dependencies is well covered; only the exact response shape and error conditions remain implicit.

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 already 100%, so baseline would be 3; the description adds real value on top by stating the 25 MB/file-type constraints, the filename-required-with-content_base64 pairing, and the 'omit url when sending document' exclusivity that the schema only states per-field. It does not add syntax detail for the nested document object beyond what the schema documents.

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 ('Sends a document to be translated') plus the accepted formats and 25 MB limit, then enumerates the three mutually exclusive input modes (chat attachment, public https url, content_base64+filename). It also positions itself in the workflow by naming get_quote, create_order and the fallback of creating an order directly when no upload path exists.

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?

Explicitly says which input path to use ('a file the user attached in chat as document, a public https url, or content_base64 with its filename'), what the resulting token feeds into (get_quote, create_order), and gives an explicit when-not branch: if none of the three is possible, create the order from the customer's page count and let them upload at the status_url.

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