Skip to main content
Glama

test_api_endpoint

Send an HTTP request to verify an API endpoint's response status, data, and timing, optionally assert an expected status code.

Instructions

Execute an API request and test an endpoint with optional validation. Returns response status, data, timing, and validation results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesFull URL to test
bodyNoOptional request body (for POST, PUT, PATCH)
methodYesHTTP method
paramsNoOptional query parameters
headersNoOptional HTTP headers
timeoutNoRequest timeout in milliseconds (default: 30000)
expectedStatusNoExpected HTTP status code for validation

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, the description carries the full behavioral burden. It usefully discloses the return shape (status, data, timing, validation results), which compensates for the missing output schema, but it never warns that non-idempotent methods (POST/PUT/DELETE) execute real requests with side effects, nor mentions auth or rate limits.

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 tight sentences, front-loaded with the action and followed by the return summary. No filler, though the return-value sentence could be trimmed since it is generic to any HTTP client.

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?

For a 7-parameter tool with nested objects, no annotations, and no output schema, the description covers the return values adequately but omits security/permission context and side-effect warnings that an agent invoking DELETE or POST against a live endpoint would need.

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 every parameter is already documented, setting the baseline at 3. The description only adds the loose 'optional validation' hint tied to expectedStatus and does not clarify body/method interactions beyond what the schema states.

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?

States a specific verb and resource ('Execute an API request and test an endpoint'), which is clear and actionable. However, it does not differentiate itself from close siblings like batch_test_endpoints or validate_api_response, leaving the agent to infer the single-call scope.

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?

The phrase 'optional validation' hints that expectedStatus drives validation, but there is no explicit when-to-use guidance, no prerequisite information (auth, credentials), and no routing toward the sibling tools for batch or response-only validation scenarios.

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