Skip to main content
Glama

sendHttpRequest

Send HTTP/HTTPS requests and retrieve response status, headers, and body. Supports common methods, custom headers, body, timeout, and redirect following.

Instructions

HTTP/HTTPS request → status, headers, body. Body truncated at maxResponseBytes (default 50 KB).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYesHTTP method
urlYesFull URL (http:// or https://)
headersNoOptional request headers as key/value pairs
bodyNoRequest body. JSON: pass serialized string + Content-Type: application/json. Ignored for GET/HEAD.
timeoutMsNoTimeout in ms (default: 30000, max: 120000)
maxResponseBytesNoBody cap in bytes (default: 51200, max: 1048576).
followRedirectsNoFollow HTTP redirects (max 10 hops, default: true)
Behavior4/5

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

Beyond the openWorldHint annotation, the description discloses that the body is truncated at maxResponseBytes (default 50 KB). This adds valuable behavioral context not captured by annotations.

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?

Single sentence front-loading the output (status, headers, body) and key constraint (truncation). No wasted words, efficient and clear.

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 is minimal; it lacks details on return format structure, error handling, or how headers/body are represented. Given 7 parameters and no output schema, more context would be beneficial but the schema descriptions partially compensate.

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%, so baseline is 3. The description adds value by explaining truncation behavior and default for maxResponseBytes, enhancing understanding beyond the schema.

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 sends HTTP/HTTPS requests and returns status, headers, and body. This differentiates it from specialized fetch tools like fetchGithubIssue, though it does not explicitly contrast them.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., specialized fetchers or parseHttpFile). The description only states what it does, not when it is appropriate.

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/Oolab-labs/patchwork-os'

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