Skip to main content
Glama

http_request

Destructive

Fetch authenticated URLs using browser session cookies, returning text inline or saving binary files like PDFs to a path.

Instructions

HTTP request sent from the browser, so it carries the session cookies of the logged-in user: fetches URLs a plain server-side request would get a login page for (invoices, authenticated JSON, CSV exports). Text bodies are returned inline (capped by max_length); with save_to the bytes are written to that path instead, which is how you read a PDF — Chrome renders PDFs in a viewer no content script can reach, so read_page returns nothing on a PDF tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute URL. Cookies are sent for its origin
bodyNoRequest body (POST/PUT/PATCH)
methodNoHEAD fetches headers only, without the bodyGET
headersNoExtra request headers
save_toNoAbsolute path: write the response bytes here instead of returning them (PDF, images, archives)
max_lengthNoMax chars of body returned inline
Behavior4/5

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

Annotations indicate destructiveHint true and readOnlyHint false, but the description adds critical context: the request carries browser cookies, text bodies are capped by max_length, and save_to writes bytes to a path. It explains why read_page fails on PDFs. No contradictions with annotations.

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?

The description is a single paragraph that front-loads the key feature (carries session cookies) and provides necessary details without redundancy. Every sentence adds value, though it could be slightly more structured for readability.

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?

The description addresses authentication and binary content handling effectively, but lacks details on response structure (e.g., status codes, headers) and error behavior. Given the tool's complexity and no output schema, more context on return types and possible failures would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for all 6 parameters. The description adds semantic value by explaining how max_length and save_to interact (text vs. binary) and the effect of method HEAD as noted in schema. This goes beyond the schema's attribute descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool makes HTTP requests from the browser, carrying session cookies, which distinguishes it from server-side requests. It explicitly mentions fetching authenticated content like invoices and JSON, and explains the use of save_to for binary files such as PDFs, differentiating from read_page.

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

Usage Guidelines4/5

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

The description clearly explains that the tool carries session cookies, making it suitable for authenticated content. It provides explicit guidance on using save_to for binary content like PDFs instead of read_page. However, it does not explicitly list when to avoid using this tool or compare with other tools beyond the PDF scenario.

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/frsorrentino/chrome-bridge'

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