Skip to main content
Glama

Highland Intel APIs

curl to code

curl-to-code
Read-only

Converts a curl command into JavaScript fetch, Python requests, Go net/http or PHP code. Returns { language, request: { url, method, headers, data }, code } Price: 2 credits (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.

Input Schema

NameRequiredDescriptionDefault
curlYesA curl command line.
languageNoTarget language, default javascript.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds real value beyond them by disclosing the billing model (2 credits per successful call) and that schema-invalid input is rejected before billing. It stops short of describing behavior for input that is schema-valid but not a parseable curl command, which is the main remaining ambiguity.

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?

Three compact sentences: capability first, return shape second, cost/validation caveat last. Nothing is padded and no sentence repeats the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter, single-purpose converter with no output schema, the description covers inputs, outputs, and billing consequences, which is everything an agent needs before invoking it. Return-shape detail is given inline precisely because no output schema exists.

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% and both parameters are already documented, including the enum of target languages and the javascript default. The description restates the language list and adds nothing about curl input format, quoting, or multiline handling beyond 'a curl command line'.

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 both sides of the transformation (curl command -> JavaScript fetch, Python requests, Go net/http, PHP), and names the exact return shape. No sibling in the list performs curl conversion, so the tool is unambiguous in the catalog.

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 implied rather than stated: an agent infers it should call this when it has a curl command and wants equivalent code. There is no explicit when-not guidance or named alternative, though the pricing sentence at least signals that calls should be deliberate.

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