Skip to main content
Glama

http_request

Send HTTP requests to REST APIs and webhooks with configurable methods, headers, and JSON or raw bodies, then inspect status, final URL, response headers, and body.

Instructions

任意の HTTP リクエストを送る汎用クライアント(stdlib urllib)。GET/POST/PUT/DELETE/PATCH、任意ヘッダ、body(生文字列)または json(dict を JSON 本文化)に対応。返り値はステータス・最終URL・主要ヘッダ・本文(長い場合は先頭を返し総バイト数を明記)。REST API や webhook を叩く時の基礎。

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": {
      "url": "<url>"
    },
    "name": "http_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesリクエスト先 URL(http/https)。
bodyNo生の本文文字列。任意。
jsonNoJSON 本文にする dict(Content-Type 自動)。任意。
methodNoGET/POST/PUT/DELETE/PATCH。省略時 GET。
headersNo追加ヘッダの dict。任意。
timeoutNo秒。省略時 30。
max_bytesNo本文の取得上限バイト。省略時 200000。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose useful behavior: the implementation (stdlib urllib), the return payload (status, final URL, main headers, body), and body truncation with total byte count reported. It omits error semantics — whether non-2xx responses raise or are returned, redirect handling beyond the phrase '最終URL', and any warning that POST/PUT/DELETE are state-changing with 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?

Three dense sentences with the core capability front-loaded, followed by supported methods/inputs and then return behavior. The final sentence is a light usage hint that borders on filler but still earns a place by signaling intent.

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?

For a 7-parameter generic HTTP client with no output schema and no annotations, the description covers what the schema cannot: the response shape and truncation semantics, which the agent needs to interpret results. The main gap is the absence of any safety or error-behavior statement for destructive methods.

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 the baseline is 3, but the description adds real meaning: it clarifies that body and json are alternatives (raw string vs. dict serialized to JSON with automatic Content-Type) and ties max_bytes to the truncation behavior described in the return section. The remaining parameters (headers, timeout, method defaults) are left to 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 states a specific verb and resource — a generic HTTP client built on stdlib urllib — and enumerates supported methods, header/body handling, and the shape of the response. It is clear what the tool does, though it never explicitly names a sibling such as url_healthcheck to contrast the 'arbitrary request' scope with a fixed health check.

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 closing line 'REST API や webhook を叩く時の基礎' implies the intended context, and the 'generic/arbitrary' framing implicitly separates it from narrow siblings. There is no explicit when-not guidance, no mention of which sibling to prefer for simple reachability checks, and no stated prerequisites such as auth or allowed hosts.

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