Skip to main content
Glama
rj9884
by rj9884

get_api_response

Send HTTP requests to a local dev server API and get the full response. Use it to test REST APIs, verify status codes, and inspect response shapes.

Instructions

Make an HTTP request to an API endpoint on a local dev server and return the full response. Supports all standard HTTP methods and an optional JSON request body. Useful for testing REST APIs, checking response shapes, and verifying status codes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoRequest body as a JSON string (used with POST, PUT, PATCH)
pathYesAPI endpoint path (e.g. /api/users, /health, /auth/login)
portYesThe localhost port the API server is running on
methodNoHTTP methodGET
custom_headersNoAdditional headers as a JSON string, e.g. '{"Authorization":"Bearer token"}'
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behaviors: making HTTP requests, returning 'the full response', supporting all standard methods, and allowing an optional JSON body. It also scopes to local dev servers. It doesn't detail error handling or side effects, but the core behavior is transparent enough.

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?

Two sentences, front-loaded with the core action, followed by use cases. Every word earns its place with no redundancy or filler.

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?

The description covers context (local dev server), HTTP methods, request body, and use cases. It states 'return the full response' as a high-level outcome, which is helpful given no output schema. There is slight ambiguity about what constitutes the 'full response' (headers, status code, etc.), but the description is otherwise complete for a dev testing tool.

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 each parameter having a clear description (e.g., method enum, path example, body format, headers example, port). The description adds no new parameter-level semantics beyond mentioning the optional JSON body and standard methods, so the baseline 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 clearly identifies the tool's function: 'Make an HTTP request to an API endpoint on a local dev server and return the full response.' It specifies the verb, resource (API endpoint), and scope (local dev server), which distinguishes it from sibling file/command/project tools.

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 states explicit use cases: 'Useful for testing REST APIs, checking response shapes, and verifying status codes.' This gives clear context for when to use the tool, though it does not explicitly mention alternatives or exclusions relative to sibling tools like run_command.

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/rj9884/universal-dev-mcp'

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