Skip to main content
Glama

export_as_curl

Convert a saved API request into a curl command with environment variables resolved for reuse or sharing.

Instructions

Export a stored request as a curl command with environment variables resolved

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": {
      "request_id": "<request_id>"
    },
    "name": "export_as_curl"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYes
environment_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. The note that environment variables are 'resolved' is genuinely useful (it tells the agent the output contains substituted values, which matters for secret leakage), but permission requirements, failure modes for a bad request_id, and whether the export is read-only are all undisclosed.

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?

A single front-loaded sentence with no filler; the most decision-relevant detail (the curl format) is not buried. Nothing could be removed without losing information.

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 two-parameter read-style utility with no output schema and no annotations, the description is adequate but leaves the agent guessing on parameter meaning and error behavior. One more clause about what environment_id does when omitted would close the gap.

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 0%, so both parameters are undocumented in the schema, and the description leaves request_id entirely unexplained. The phrase 'environment variables resolved' does imply what environment_id controls, which is real added meaning, but it is a hint rather than a definition of either parameter.

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?

Concrete verb 'export' with the resource ('a stored request') and the target format ('a curl command'), which implicitly separates it from sibling exporters such as export_postman or export_openapi. It never names those siblings or states the boundary explicitly, so it falls short of a 5.

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 reader infers you call this when you want a reproducible curl invocation rather than a Postman/OpenAPI export. There is no statement of when not to use it, no prerequisites, and no mention of what happens if the request cannot be rendered as curl.

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