Skip to main content
Glama

aft_inspect

Inspect a codebase read-only to surface diagnostics, TODOs, metrics, dead code, unused exports, and duplicates for targeted cleanup.

Instructions

AFT codebase inspection (read-only). Diagnostics, TODOs, metrics, dead code, unused exports, duplicates.

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": "aft_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
topKNo
scopeNo
offsetNo
sectionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden; it does disclose the operation is read-only, which is the most important safety signal for a 4-parameter tool. It says nothing about cost, whether scans are whole-repo or scope-limited, or how results are shaped, so the disclosure is partial.

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 fragments with the read-only qualifier and the category inventory front-loaded; nothing is wasted. The brevity is close to under-specification, but every phrase carries information.

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?

For a tool with four undocumented parameters, no annotations, and no output schema, the definition is too thin. An agent cannot tell what a 'section' identifier looks like, what happens when sections is omitted, or how topK/offset interact with the results.

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 all four parameters (topK, scope, offset, sections) rely on the description, and it only implicitly maps the enumerated categories to the sections parameter. topK, offset, and scope receive no explanation at all, leaving truncation and pagination semantics undocumented.

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 resource (AFT codebase) plus a read-only inspection role, then enumerates concrete analysis categories (diagnostics, TODOs, metrics, dead code, unused exports, duplicates). That enumeration clearly separates it from retrieval siblings like aft_grep or aft_outline, 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 Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no routing to alternatives such as aft_search or aft_callgraph. An agent must infer from the category list alone that this is the aggregate health-check tool rather than a search tool.

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