Skip to main content
Glama

pdf

Exports a browser tab to a PDF file saved at a local path, with optional landscape orientation, so you can archive or share page content.

Instructions

Exporta la página a PDF.

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": {
      "savePath": "<savePath>"
    },
    "name": "pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoPestaña objetivo. Por defecto la pestaña actual del agente.
savePathYesRuta local donde guardar el archivo.
landscapeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose whether the file is written to disk, what happens if savePath already exists, whether the call blocks until rendering completes, or what is returned — significant gaps for a file-writing operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, but it is terse to the point of under-specification rather than genuinely concise; there is room for one clarifying clause without bloat.

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

Completeness3/5

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

A three-parameter tool with no annotations and no output schema warrants more than one sentence, especially around file output and overwrite behavior. Relative to its moderate complexity, the definition is thinner than ideal but not wholly inadequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 67%, and the description adds nothing about any parameter. In particular, the 'landscape' option has no schema description and is never explained, leaving a behaviorally meaningful flag undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it exports the page to PDF. It is unambiguous what the tool produces, but it does not distinguish itself from the screenshot sibling or clarify which page or tab is exported.

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

Usage Guidelines2/5

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

There is no guidance on when to use PDF export vs. alternatives like screenshot, no prerequisites (e.g., whether the page must be loaded first), and no exclusions. The agent is left to infer usage entirely.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.