Skip to main content
Glama

chrome_pdf

Generates a PDF of the current Chrome page via the DevTools Protocol, with optional landscape orientation and background printing for capturing web content.

Instructions

Generate PDF of the current page

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

Input Schema

NameRequiredDescriptionDefault
tabIdNo
landscapeNo
printBackgroundNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and does not meet it: it never says where the PDF goes (returned as base64/path, saved to disk, or downloaded), whether the operation blocks until rendering finishes, or whether it has side effects on the browser.

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 short sentence is front-loaded and free of waste, but its brevity is under-specification rather than efficiency — a bit more content on output destination and parameters would earn its place.

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

Completeness2/5

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

With no annotations, no output schema, and three undocumented parameters, the definition is incomplete for a tool whose main unknown is what happens to the generated PDF and how the print options affect it.

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 description coverage is 0% for all three parameters. The description only hints that a tab is implied by "current page" but never explains tabId (or its default), and says nothing about landscape or printBackground, both of which the agent must infer from property names alone.

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?

"Generate PDF of the current page" names a specific verb (generate) and artifact (PDF), so the agent knows the core action. It does not distinguish scope against siblings or clarify whether "current page" means the active tab or a supplied tabId, leaving a small ambiguity.

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, when-not-to-use, or prerequisite guidance — nothing about whether the page must be fully loaded, whether a print dialog or headless rendering applies, or which sibling to prefer for capturing page content instead (e.g., chrome_get_html).

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