Skip to main content
Glama
Euraxluo

Browser-MCP Server

by Euraxluo

generate_pdf

Create PDF files from web pages, URLs, or HTML content with customizable layout settings for document generation.

Instructions

Generate PDF from current page, URL, or HTML content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
urlNo
html_contentNo
output_filenameNo
print_backgroundNo
margin_topNo
margin_bottomNo
margin_leftNo
margin_rightNo
paper_widthNo
paper_heightNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
size_kbYesFile size in KB
successYesWhether PDF generation was successful
file_nameYesPDF filename
file_pathYesGenerated PDF file path
page_countYesNumber of pages
source_urlYesSource URL if applicable
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but provides minimal information. It states what the tool does but doesn't describe important behavioral aspects: whether it requires specific permissions, how it handles errors, what the output looks like (though there's an output schema), whether it's resource-intensive, or any rate limits. The description is functional but lacks operational context needed for safe and effective use.

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

Conciseness5/5

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

The description is extremely concise at just 8 words, front-loading the core functionality with zero wasted language. Every word earns its place by specifying both the action and the three input sources. The structure is optimal for quick comprehension while conveying essential information.

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?

Given the complexity (11 parameters, 0% schema coverage, no annotations) and the presence of an output schema, the description is insufficiently complete. While the output schema may cover return values, the description doesn't address critical aspects: how to choose between the three input sources, what 'current page' means in relation to session_id, default behaviors, error conditions, or performance characteristics. For a tool with this many configuration options, more guidance is needed.

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?

With 0% schema description coverage for 11 parameters, the description fails to compensate for this significant gap. It mentions three input sources (current page, URL, HTML content) which map to some parameters, but doesn't explain the relationship between session_id and 'current page', doesn't mention the numerous formatting parameters (margins, paper size, background printing), and provides no guidance on parameter interactions or requirements beyond what's obvious from the schema structure.

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 clearly states the tool's function as 'Generate PDF from current page, URL, or HTML content', specifying both the action (generate PDF) and the sources (current page, URL, HTML content). It distinguishes itself from sibling tools like 'take_screenshot' or 'download_file' by focusing specifically on PDF generation from web content. However, it doesn't explicitly differentiate from potential PDF-related siblings that might not exist in this list.

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 description implies usage context by listing three input sources (current page, URL, or HTML content), suggesting when this tool is appropriate versus alternatives. However, it doesn't provide explicit guidance on when to choose between these sources or when to use this versus other output tools like 'take_screenshot' or 'download_file'. No exclusions or prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Euraxluo/browser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server