Skip to main content
Glama

Http Request

http_request

Send a single HTTP request to REST endpoints and return status and body, enabling real-time API exploration, debugging, and validation without writing test code.

Instructions

Make a single HTTP request. Returns status and body only by default.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>",
      "url": "<url>"
    },
    "name": "http_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget URL
bodyNoRequest body
methodYesHTTP method (GET, POST, PUT, PATCH, DELETE, HEAD)
paramsNoQuery parameters
headersNoHTTP headers
timeoutNoTimeout in seconds
include_headersNoInclude response headers in output

Output Schema

NameRequiredDescriptionDefault
bodyNoResponse body
statusYesHTTP status code
headersNoResponse headers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose one real behavioral trait: the default return is status and body only, with headers excluded unless include_headers is set. However, it says nothing about error semantics (non-2xx responses, timeouts/retries), redirect following, or authentication, which are the highest-risk unknowns for a tool that can issue POST/DELETE side effects.

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 with no filler, and the output-default statement is front-loaded where it matters. It is efficient but so terse that nothing about structure or priority is conveyed beyond the bare facts.

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?

An output schema exists, so return values need no explanation, and the seven parameters are fully documented in schema. For an unrestricted outbound HTTP tool with mutation potential and no annotations, the definition is still thin on the safety and failure-mode context an agent needs.

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%, with every parameter individually documented including the method enum list and timeout units, so the description adds no parameter meaning of its own. Baseline 3 is appropriate since the schema does all the work.

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?

"Make a single HTTP request" states a concrete verb and resource, and "single" implicitly separates it from the http_batch_request sibling. It does not name the sibling or say what distinguishes the two beyond that adjective, so it falls short of a 5.

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?

There is no explicit when-to-use guidance, no mention of when to prefer http_batch_request, and no prerequisites such as auth, allowed hosts, or redirect handling. The only usage signal is the word "single", which an agent must interpret on its own.

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

Deploy Server

Other Tools