Skip to main content
Glama

code

Idempotent

Composer les outils Plugtrip avec une fonction JavaScript async () => {...}. Sandbox sans fichiers ni réseau libre. Découverte gratuite ; recherche 1 centime EUR, fiche 2 centimes, seulement avec une clé prépayée et un plafond explicite. Quatre appels maximum. Même code, request_id et paramètres lors des reprises. API : codemode.discover_plugtrip(): Promise; codemode.search_stations({latitude:number,longitude:number,radius_km?:number,limit?:number}): Promise; codemode.station_context({station_id:string}): Promise;

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

Input Schema

NameRequiredDescriptionDefault
codeYes
request_idYes
max_cost_centsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) the description discloses the sandbox constraints (no filesystem, no unrestricted network), the monetary cost per call type, the prepaid-key and ceiling requirement, a hard four-call budget, and the idempotency contract via request_id on retries. These are exactly the behavioral facts an agent needs before invoking a billing-capable code runner and are not derivable from the structured fields.

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?

Purpose is front-loaded in the first sentence, followed by constraints, then the API signatures — a sensible order with no filler sentences. The density is high but each clause (sandbox limits, pricing, call cap, retry rule) carries distinct information, so little could be cut without losing signal.

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 code-execution tool with no output schema and zero parameter documentation coverage, the description supplies the sandbox boundary, cost model, call budget, retry semantics and the full API surface an agent needs to write valid code. The remaining gap is the shape of the returned object(s), which is not described and no output schema exists to cover it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the meaning, and it largely does: code is a JS async function body, request_id is the stable key reused with identical code and parameters on retries, and max_cost_cents is the 'plafond explicite' tied to the stated per-call prices. It stops short of noting the 8-cent hard maximum and the request_id length bounds, which remain discoverable only in the schema.

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?

The description states a specific verb and resource: compose Plugtrip tools by writing an async JavaScript function, and it enumerates the three callable API methods (discover_plugtrip, search_stations, station_context). That makes the tool's identity unmistakable, but there is no explicit differentiation from alternatives (none exist in the sibling list, so the gap is minor).

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?

Clear operational context: discovery is free, paid calls cost 1 or 2 euro cents and require a prepaid key plus an explicit ceiling, and at most four calls are allowed. Retry guidance is explicit too (same code, request_id and parameters on resume). What is missing is any explicit recommended sequencing (e.g., discover first, then pay), which is only implied by 'Découverte gratuite'.

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