Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

api_contracts

Read-onlyIdempotent

Find every API endpoint in your codebase by parsing OpenAPI/Swagger, GraphQL, Express/Fastify, NestJS, and FastAPI definitions; returns methods, paths, parameters, and types.

Instructions

Find all API endpoints in the codebase. Parses OpenAPI/Swagger specs, GraphQL schemas, Express/Fastify routes, NestJS controllers, FastAPI decorators. Returns method, path, parameters, and types.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "api_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
sourcesYes
endpointsYes
totalEndpointsYes
scannedPatternsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description still earns credit by disclosing non-obvious mechanics beyond the annotations: that it statically parses five distinct spec/framework sources and what fields come back (method, path, parameters, types). It does not mention limits such as what happens when no spec exists or whether dynamic/computed routes are missed.

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?

Two sentences: the first states purpose, the second states supported sources and return shape. It is front-loaded, wastes no words, and has no filler or repetition of the name.

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?

With an output schema present, the description needn't explain return values in depth, and it doesn't have to document any parameters. What it provides — source coverage and returned fields — is nearly enough for correct invocation. The only shortfall is silent failure/coverage caveats (e.g. unrecognized frameworks or absent specs), which would matter for an agent interpreting empty results.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is 4. The description correctly implies the scan is repo-wide with no filtering, which is consistent with the empty input 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 opens with a specific verb+resource ('Find all API endpoints in the codebase') and enumerates the exact source formats it parses (OpenAPI/Swagger, GraphQL, Express/Fastify, NestJS, FastAPI). This makes the tool's scope unambiguous and clearly distinct in domain from siblings like db_schema or codebase_map, even though no sibling is named explicitly.

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 only implied by the domain: an agent can infer it should call this when it needs an endpoint inventory. There is no explicit when-to-use/when-not statement, no mention of prerequisites (e.g. that a spec file or route definitions must exist in the repo), and no routing toward alternatives such as db_schema for data models.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.