Skip to main content
Glama

util_curl_convert

Read-only

curl to code converter — Convert a curl command into ready-to-run JavaScript (fetch), Python (requests) and Go (net/http) code. Offline parser handles quotes, line continuations, -X, -H, -d/--data-raw/--data-urlencode, --json, -F forms and file uploads, -u basic auth, -G, -L, -k, --max-time, cookies, user agent and combined flags like -sSL. Returns the parsed request, code per language, ignored options, and a warning when the command contains credentials. Params: curl (required), lang (all|javascript|python|go, default all). Price: $0.002 USDC (Base, via x402).

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": {
      "curl": "<curl>"
    },
    "name": "util_curl_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
curlYescurl -X POST https://api.example.com/items -H Content-Type:application/json -d {name:widget}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, destructiveHint=false), the description discloses the parser is offline, enumerates the exact flag families handled, and describes the response contents: parsed request, per-language code, ignored options, and a credential warning. It also states the cost ('$0.002 USDC (Base, via x402)'), giving the agent price and payment-rail context that annotations do not carry.

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?

The definition is front-loaded with the core verb+resource and then packs flags, return shape, and pricing into a small number of dense sentences. It is long but nearly every clause carries information; only the closing pricing note sits outside the functional description.

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 one-parameter, no-output-schema tool this covers the essentials: what it parses, what it returns, and what it costs. The only real gap is the schema/description mismatch on the 'lang' parameter, which leaves the agent unsure how to select output languages.

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 coverage is 100% for the single 'curl' property, so the baseline is 3, and the description does add value by enumerating which curl constructs are understood. However, it advertises a 'lang (all|javascript|python|go)' parameter that does not exist in the input schema, which can mislead an agent into passing an unsupported argument.

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 opens with a specific verb and resource ('curl to code converter — Convert a curl command into ready-to-run JavaScript (fetch), Python (requests) and Go (net/http) code'), naming all three output targets. This clearly distinguishes it from generic converters like util_convert and from unrelated util_* helpers.

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 supported-flag list makes the applicable input scope obvious (any curl command using -X, -H, -d, -F, -u, -G, -L, -k, etc.), which implies when the tool will succeed. However, there is no explicit when-to-use/when-not guidance or routing between alternatives such as util_convert or util_url_clean, so usage must be inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources