Skip to main content
Glama

browser_pdf

Saves the current page as a PDF for report archiving or evidence capture; available in headless mode.

Instructions

把当前页面保存为 PDF(用于报告存档、留证)。注意:仅在无头模式可用

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
formatNo纸张大小,默认 A4
filenameNo文件名,默认 page-时间戳.pdf

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add one genuinely valuable behavioral constraint — 仅在无头模式可用 — which prevents a known failure mode. What it omits is where the PDF lands and whether a path/URL is returned, which matters because there is no output schema.

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 compact sentences: the action and purpose come first, the headless-mode caveat second. Every clause carries information, with only minor overhead from the parenthetical.

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 two-optional-parameter export tool, the description covers the action, the purpose, and the headless restriction. With no output schema and no annotations, the missing piece is the result contract — returned path, download trigger, or file location — which the agent needs in order to use the artifact afterward.

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 coverage is 100%, and the schema itself documents both format (enum A4/A3/Letter with A4 default) and filename with its timestamp default. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 (保存当前页面为 PDF) and adds a purpose (报告存档、留证), so an agent can tell this is the page-to-PDF tool. It does not explicitly contrast with the sibling browser_screenshot or browser_download, but the PDF output plus archiving use case makes the distinction largely inferable.

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

Usage Guidelines3/5

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

The parenthetical (用于报告存档、留证) implies when to reach for this tool, which is more than nothing. However, it never names an alternative such as browser_screenshot for visual capture or browser_download for file retrieval, and it gives no explicit when-not guidance.

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