Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

code_docs

Read-onlyIdempotent

Extract JSDoc, Python docstrings, Rustdoc, Javadoc, and Go doc comments from code, or find undocumented public APIs. Filter results by symbol to review documentation coverage.

Instructions

Extract documentation from code: JSDoc, Python docstrings, Rustdoc, Javadoc, Go doc comments. Shows docs for symbols or finds undocumented APIs.

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": {
      "action": "<action>",
      "file": "<file>"
    },
    "name": "code_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFile to analyze
actionYesextract: get docs for a file, undocumented: find undocumented public APIs
symbolNoFilter to specific symbol name

Output Schema

NameRequiredDescriptionDefault
dataYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.5/5.0
Behavior3/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 safety and determinism are covered. The description contributes the multi-language parsing scope, but says nothing about output shape, large-file handling, or how 'public API' is determined for the undocumented mode.

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?

Two tight sentences, front-loaded with the core action and the supported languages. The second sentence largely echoes the action enum, so it earns slightly less than a perfect score.

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, return values need no explanation, and annotations cover the safety profile. For a read-only two-mode analysis tool the remaining description is close to sufficient, with only minor gaps around the undocumented-mode heuristics.

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%, so the enum and symbol filter are already fully documented in structured data. The description restates the two modes and the symbol filter but adds no syntax, format, or scope detail beyond the schema, which is the expected baseline.

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 names a specific verb ('Extract') and resource ('documentation from code'), and enumerates the concrete doc formats it parses (JSDoc, docstrings, Rustdoc, Javadoc, Go doc). That clearly separates it from siblings like search_code or code_metrics, though it never names an alternative directly.

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?

The two operating modes are stated ('Shows docs for symbols or finds undocumented APIs'), which implies when each is relevant, but the mapping to the action enum is left implicit and no when-not-to-use or alternative-tool guidance is given.

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