Skip to main content
Glama

Send an HTTP request

http_request

Send HTTP requests with configurable method, headers, body, and timeout. Returns status, headers, timing, and parsed JSON response. Redirects are followed and private addresses blocked.

Instructions

Sends an HTTP request and returns the status, headers, timing, and body, parsing the body as JSON when the content type says so. Redirects are followed manually so each hop can be re-checked. Responses are capped at 256 KB. Requests to private and loopback addresses are refused unless DEVKIT_ALLOW_PRIVATE_HOSTS=1 is set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe absolute http or https URL to request.
bodyNoRequest body. Ignored for GET and HEAD.
methodNoHTTP method.GET
headersNoRequest headers as a name-to-value object.
timeoutMsNoAbort the request after this many milliseconds.
followRedirectsNoFollow 3xx responses. Every hop is re-checked against the host policy.
Behavior5/5

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

The description discloses key behaviors: JSON parsing based on content type, manual redirect following (allowing re-check), 256 KB response cap, and refusal to private/loopback addresses unless env var set. Annotations provide readOnlyHint=false and openWorldHint=true, which are consistent and the description adds significant value beyond them.

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 three sentences, front-loaded with purpose, then technical details. Every sentence adds value with no wasted words.

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

Completeness4/5

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

Given the tool's complexity (6 params, no output schema, nested objects), the description covers return format, JSON parsing, redirect behavior, size limit, and host restrictions. It could mention error handling or what happens when response exceeds the cap, but overall quite complete.

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 description coverage is 100%, so the schema already documents all parameters. The description adds minimal extra parameter detail (e.g., mentioning JSON parsing but not linking to a specific param). Baseline score of 3 is appropriate.

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 uses a specific verb ('Sends') and resource ('HTTP request'), and clearly states what is returned (status, headers, timing, body). It implicitly distinguishes from sibling tools which are unrelated (text/crypto utilities).

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 implies usage for making HTTP requests via the web, and siblings are clearly different tools, so context is clear. However, it does not explicitly state when to use or not use this tool versus alternatives.

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/lllNuggetslll/devkit-mcp'

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