Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

generate_curl

Read-onlyIdempotent

Generate a curl command from request parameters. Supports GET/POST/PUT/DELETE, custom headers, JSON body, and form data. Useful for documentation, sharing, and debugging API calls.

Input Schema

NameRequiredDescriptionDefault
urlYesRequest URL (must be http/https)
bodyNoRaw request body string
methodNoHTTP method (default: GET)
headersNoRequest headers as key-value object
verboseNoAdd -v for verbose output (default: false)
body_jsonNoJSON body (auto-adds Content-Type: application/json)
follow_redirectsNoFollow redirects with -L flag (default: true)

Output Schema

NameRequiredDescriptionDefault
urlNo
curlNo
methodNo
header_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "method": "DELETE",
      +    "url": "https://x.com"
      +  }
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "curl": {
      +    "type": "string"
      +  },
      +  "header_count": {
      +    "type": "number"
      +  },
      +  "method": {},
      +  "url": {}
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / body_json / additionalProperties
      Added value: +true
    • addedInput schema / properties / headers / additionalProperties
      Added value: +true
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive and openWorldHint=false, so the safety profile is covered; the description adds that it only synthesizes a command string for the listed methods rather than executing anything. It still doesn't explicitly say no request is sent, which is the one assumption an agent might get wrong.

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?

Three front-loaded sentences with zero filler: purpose, capabilities, then use cases. Slightly more efficient than needed but nothing is wasted.

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?

With an output schema present, the description rightly does not explain the returned curl string. All required elements are covered; only the 'form data' claim and the no-execution guarantee would need tightening for a top score.

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%, so values, defaults, and flags (verbose, follow_redirects) are already documented. The description adds little beyond the schema and even mentions 'form data', which has no corresponding documented parameter — body/body_json cover raw and JSON payloads. Baseline 3 applies.

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?

States a specific verb and concrete artifact: 'Generate a curl command from request parameters.' No sibling tool offers the same output, and the description immediately names the supported surface (methods, headers, body, form data), so an agent can tell what it produces.

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?

Gives clear scenarios where this applies ('documentation, sharing, and debugging API calls') but does not say when not to use it or point at an alternative (e.g., cors_test, http_status_lookup). For a fairly unique tool the lack of exclusions is a minor gap.

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.