Skip to main content
Glama

generate_api_client

Generate typed API client for frontend from backend routes

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": {
      "backendPath": "<backendPath>",
      "outputPath": "<outputPath>",
      "clientType": "<clientType>"
    },
    "name": "generate_api_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientTypeYes
outputPathYes
backendPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and does not meet it. It never says what is written to disk, whether existing files at outputPath are overwritten, whether generation is deterministic/idempotent, or what the caller gets back; "generate" implies file-system mutation but that is only inferred from the parameter names.

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?

A single tight sentence with the artifact and source front-loaded and no filler. It is efficient, though at this length it is arguably under-specified rather than genuinely concise.

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?

The tool is a small generator with three required scalars, no nested objects, no output schema, and no annotations, so a one-line purpose statement covers a fair share of what an agent needs. Still, the absence of any note on what the input paths point at or what gets produced leaves a real gap for a write-producing tool.

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

Parameters2/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 compensate and largely does not. "backend routes" loosely maps to backendPath and "frontend" hints at outputPath, but nothing explains whether backendPath is a directory, a route manifest, or a spec file, and the four clientType values (fetch/axios/react-query/swr) are only visible in the enum, uninterpreted in prose.

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?

States a specific verb ("Generate") plus a concrete artifact ("typed API client for frontend") and its source ("backend routes"), which is far more informative than the name alone. It does not, however, distinguish itself from near-neighbour generators such as generate_api_endpoint or api_test_generator, so the agent gets no explicit routing signal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when this tool should be chosen over generating an endpoint, a gateway route, or a test client. No prerequisites (e.g. whether the backend must exist or be introspectable) and no exclusions are stated, leaving usage entirely to inference.

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.