Skip to main content
Glama

Excel to PDF API - spreadsheet or CSV to a clean PDF table

excel_to_pdf
Read-onlyIdempotent

Turn an .xlsx or .csv file into a printable PDF table with page orientation and light grid lines. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/excel-to-pdf.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileName": "table.csv",
      "fileContent": "SXRlbSxRdHksUHJpY2UKUGVuLDMsMS4yMApCb29rLDEsOS45MAo="
    },
    "name": "excel_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOr several files: [{fileName, fileContent (base64)}]
fileNameNoFile name with extension, e.g. report.pdf
gridLinesNoLight lines between rows
fileContentNoThe file as base64 (a data: URI is fine)
orientationNoauto, p (portrait) or l (landscape)auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover safety/idempotency; the description adds substantive context beyond them: server-side execution, immediate file deletion with nothing stored, a free tier of 5 calls/day per IP, and two paid auth paths (X-API-Key or x402). This is exactly the operational detail an agent needs before committing a request.

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?

Two sentences, front-loaded with what the tool does before pricing/auth detail. The long pricing and x402 URLs are dense but earn their place by telling the agent how to authenticate paid calls.

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?

For a conversion tool with no output schema, the description specifies the input formats, the artifact produced, privacy behavior, and auth/limits. The one meaningful gap is how the resulting PDF is delivered (base64 payload vs. download URL), which an invoker would want to know.

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 parameters are already well documented. The description adds feature-level meaning (orientation, grid lines) but no format or constraint detail beyond the schema, which is the expected baseline-3 case.

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+resource pair ('Turn an .xlsx or .csv file into a printable PDF table') and names the distinguishing output traits (page orientation, light grid lines). An agent can tell this apart from siblings like pdf_to_excel_word or images_to_pdf without opening any 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?

Input-type constraint ('an .xlsx or .csv file') gives clear context for when this tool applies versus the other converters in the catalog. It stops short of explicit when-not-to-use guidance or naming an alternative tool, so it lands at 4 rather than 5.

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