Skip to main content
Glama

Benchline

Convert a curl command to code

convert_curl
Read-onlyIdempotent

Parse a curl command and generate equivalent JavaScript fetch, Python requests, Go, PHP, or Rust code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNofetch
commandYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
bodyNo
methodYes
headersYes
snippetYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description adds nothing behavioral on top of the name/title — no note on invalid-command handling, input size limits, or which curl features are unsupported.

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 the action, input, and outputs. Zero waste, nothing to trim.

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 simple two-parameter converter with an output schema present, the description is close to sufficient: it says what is converted and to which languages. Minor gaps remain around edge cases and unsupported curl constructs, but nothing essential to calling it is missing.

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 0%, so the description carries some burden. It names all five target languages matching the enum, which helps confirm the 'target' parameter's meaning, and 'command' is transparently the curl string. However, it adds no syntax, format, or size-limit (20000 chars) detail beyond the schema.

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 ('Parse') and resource ('a curl command') with the concrete output forms ('JavaScript fetch, Python requests, Go, PHP, or Rust code'). This clearly distinguishes it from generic siblings like convert_data_format or analyze_har.

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 purpose implies when to use it (translating a curl command into code), but there is no explicit when/when-not guidance and no mention of sibling alternatives such as analyze_har or convert_data_format. Adequate but not instructive.

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