Skip to main content
Glama

browser_pdf

Idempotent

Render a selected Chrome tab to a PDF file in the current or temporary directory, with an optional output path. Use it to capture a page as a PDF.

Instructions

Render tab to a PDF file inside cwd or temp dir.

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": "browser_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab index string (e.g. '0'), targetId, or URL/title substring.
pathNoOutput .pdf path inside cwd or temp dir (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=true, and openWorld=false. The description adds one genuinely useful behavioral constraint beyond them: the output file must live inside cwd or the temp dir. It does not say whether an existing file is overwritten, whether it waits for full page load before rendering, or whether the render is headless.

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?

A single tight sentence with the action front-loaded and the location constraint following it. No wasted words, though the extreme brevity comes at the cost of the missing guidance noted elsewhere.

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?

For a 2-parameter tool with full annotation coverage this is close to adequate, but with no output schema the description should say what is returned (file path? confirmation?) and what tab is used when the optional tab argument is omitted. Those are the remaining gaps an agent would hit.

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 both parameters are already documented in the schema. The description only reinforces the path sandbox rule; it adds nothing about tab resolution precedence or what happens when the optional tab is omitted.

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?

States a specific verb and resource: 'Render tab to a PDF file', plus the location constraint ('inside cwd or temp dir'). It is clearly distinct from most siblings, though it does not explicitly distinguish itself from browser_screenshot, which is the nearest alternative for capturing page output.

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 when-to-use guidance, no mention of when to prefer browser_screenshot or browser_snapshot instead, and no statement of prerequisites (e.g., that a tab must be open or loaded). The agent must infer all of this.

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