Skip to main content
Glama

save_page_pdf

Saves the current page as a PDF in the sandbox directory for headless browsing workflows; specify a URL or path to capture and store page content.

Instructions

Save the current page as a PDF (headless only). Saved under the sandbox 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": "save_page_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the write-to-disk, web-touching nature is covered structurally. The description adds two useful behavioral facts — headless-only operation and that output lands in the sandbox dir — but says nothing about whether an existing file is overwritten, what the return value is, or failure modes.

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 short sentences, front-loaded with the action and format, with the constraint and destination following. No filler, though the telegraphic phrasing leaves it feeling slightly under-written rather than deliberately tight.

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?

For a tool with two undocumented optional parameters, no output schema, and file-writing side effects, the description should clarify parameter behavior and where the resulting file path is returned. Neither is addressed, leaving an agent to guess how to invoke it correctly.

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%, so the description must carry the meaning of url and path. It only obliquely implies that the page is the "current" one (suggesting url defaults to the active tab) and that path is relative to the sandbox dir; it never explains what url does when supplied or whether path is a filename or directory.

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?

"Save the current page as a PDF" gives a specific verb (save), resource (current page) and output format (PDF), which is enough to distinguish it from a sibling like screenshot_page. It stops short of naming any sibling or clarifying how it differs from a screenshot capture.

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 "(headless only)" is a real eligibility condition and is useful, but there is no guidance on when to prefer this over screenshot_page or get_page_html, and no mention of prerequisites such as an active tab. Usage is implied rather than stated.

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