Skip to main content
Glama

execute_request

Execute HTTP requests to API endpoints and extract specific data using JSONPath to reduce token usage.

Instructions

Execute HTTP requests to API endpoints. Returns compact response by default (no headers, no server_context). Use include_headers/include_server_context for full details. Full unfiltered response is always cached — use replay_response to re-inspect without re-executing. PREFERRED: If you know or can predict the response structure, always pass a jsonpath param to extract only the needed fields — this saves tokens and avoids re-execution. e.g. jsonpath='$.data.access_token' to get a token, '$.results' for a list. Root $ = response body directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAPI path, use exactly as listed in the spec (e.g., '/api/v1/users/')
methodYesHTTP method
path_paramsNoPath parameters
query_paramsNoQuery parameters
headersNoRequest headers
bodyNoRequest body — JSON object {} or array [] depending on the endpoint
include_headersNoInclude response headers (default: false)
include_server_contextNoInclude server context in response (default: false)
jsonpathNoJSONPath to filter the response body directly. Root $ = body root. e.g. '$.data.access_token' not '$.body.data.access_token'
max_body_lengthNoMax characters for response body. Truncates with ...[truncated] if exceeded.
Behavior5/5

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

Discloses default compact response, full caching, truncation behavior, and ability to use jsonpath for extraction. No annotations provided, so description carries full burden.

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?

Somewhat lengthy but front-loaded with core function. Each sentence adds value, though minor redundancy exists.

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?

Covers default response, caching, and filtering. Lacks explicit mention of response format when jsonpath is used, but still comprehensive given no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds significant meaning beyond schema: explains jsonpath usage with examples, defaults for include_headers/server_context, and truncation via max_body_length.

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?

Clearly states 'Execute HTTP requests to API endpoints' and distinguishes from sibling 'replay_response', which re-inspects cached responses.

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

Usage Guidelines5/5

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

Explicitly advises using jsonpath to save tokens, mentions replay_response to avoid re-execution, and explains when to include headers/server context.

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/fellowabhi/ControlAPI-openapi-to-mcp'

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