Skip to main content
Glama
curl-mcp-server

curl-mcp-server

by j0zack

execute_curl

Executes curl command strings to send HTTP requests with custom methods, headers, authentication, and bodies, then returns the full response with status, headers, and body.

Instructions

Parse and execute a curl command string. Supports common curl options including -X (method), -H (headers), -d/--data (body), -u/--user (basic auth). Returns the full HTTP response including status, headers, and body.

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": {
      "curlCommand": "<curlCommand>"
    },
    "name": "execute_curl"
  }
}

Input Schema

NameRequiredDescriptionDefault
curlCommandYesThe curl command to execute (e.g., curl -X POST https://api.example.com/data -H "Content-Type: application/json" -d '{"key":"value"}')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden and leaves major traits undisclosed. It never states that this performs arbitrary outbound network calls (a notable security/SSRF consideration), nor does it cover timeouts, redirect following, credential handling for -u, error behavior on parse failure, or which curl options are unsupported despite saying "common curl options".

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 action and immediately followed by capability scope and return shape. Every clause adds information with no filler or redundancy.

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?

The return shape (status, headers, body) is well covered despite there being no output schema, and the supported-flags list helps. But for a tool that executes arbitrary HTTP calls with zero annotations, the absence of safety, timeout, authentication, and failure-mode detail leaves meaningful gaps.

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% and there is a single documented parameter with an example, so the baseline is already high. The description still adds real meaning by enumerating the specific curl flags the parser understands (-X, -H, -d/--data, -u/--user), which tells the agent what to put in the string beyond the schema's generic example — though it does not say what happens with unrecognized flags.

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?

"Parse and execute a curl command string" gives a specific verb (parse, execute) and resource (curl command string), which is unambiguous about what the tool does. It does not, however, differentiate itself from the sibling http_request, so an agent with both tools must infer when a curl string is preferable to structured request parameters.

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?

Usage is only implied: the agent is expected to conclude it should call this when it already holds a curl command string. There is no explicit when-to-use statement, no when-not-to-use, and no mention of the closely related http_request sibling as the alternative for structured requests.

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