Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

find_debug_logs

Read-onlyIdempotent

Locate debug and log statements such as console.log, print, println, and Debug.Log across a codebase; filter by subdirectory or file pattern to find stray logging before release.

Instructions

Find debug/log statements: console.log, print, println, Debug.Log, etc.

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

Input Schema

NameRequiredDescriptionDefault
directoryNoSubdirectory to search
file_globNoFilter by file pattern

Output Schema

NameRequiredDescriptionDefault
checkYes
totalYes
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

B3.4/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 the safety profile is covered. The description's added value is limited to the pattern examples showing multi-language breadth; it says nothing about scan scope, result limits, or skip rules (e.g. whether node_modules is excluded), which would be genuinely useful context.

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?

A single compact sentence that front-loads the verb and resource and spends its remaining words on concrete pattern examples. Nothing is redundant or padding.

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 need not explain return values, and annotations carry the safety profile; the schema covers both optional parameters. The remaining gap is guidance on when to reach for this scan, which is a modest omission for a simple two-parameter search tool.

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?

Both parameters (directory, file_glob) are fully documented in the schema at 100% coverage, so the description is not obligated to repeat them. It adds no meaning beyond the schema — no example glob syntax or clarification of whether directory is recursive.

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 ('Find') and resource ('debug/log statements') and enumerates concrete patterns (console.log, print, println, Debug.Log), so an agent knows exactly what is being searched for. It does not explicitly differentiate itself from adjacent find_* siblings like find_todos or find_secrets, but the resource is distinctive enough to be unambiguous.

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 statement of when to use this tool versus alternatives, no precondition such as 'before committing' or 'in a specific directory', and no note about what happens when nothing matches. Usage is only inferable from the tool name and examples.

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