Skip to main content
Glama

api_test_generator

Generate API tests for endpoints

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": {
      "endpoint": "<endpoint>",
      "method": "<method>",
      "testFramework": "<testFramework>"
    },
    "name": "api_test_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYes
endpointYes
includeAuthNo
testFrameworkYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the whole behavioral burden and does not meet it. It never says whether the tool writes files to disk or returns code as a string, whether it overwrites existing tests, what permissions or project context are needed, or how failures/missing endpoints are handled. For a code-generation tool this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with zero filler, which is structurally clean. However, the brevity reflects under-specification rather than economy, so it earns only a middle score.

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

Completeness2/5

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

With no annotations, no output schema, and zero parameter documentation, an agent cannot tell what it will receive back (code text? file paths?) or how to call it safely. Given the tool's four parameters and code-generation nature, the description leaves too much unknown.

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% for four parameters, and the description adds no meaning to any of them. The two enums (method, testFramework) are self-explanatory, but endpoint and especially includeAuth get no explanation of expected format or default behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Generate API tests for endpoints" gives a verb (generate) and a resource (API tests) with a scope (endpoints), so the basic action is clear. But in a sibling space crowded with specific generators (generate_api_integration_test, generate_jest_test, generate_mocha_test, generate_cypress_test), it never says what kind of API test this produces or how it differs from those namesakes.

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?

The description gives no when-to-use guidance, no prerequisites (e.g. does the project need an existing test runner?), and no alternatives or exclusions. An agent must guess whether this or generate_api_integration_test is the right pick.

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.