Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

find_empty_catches

Read-onlyIdempotent

Locate empty catch blocks and swallowed exceptions across files or a subdirectory, filtered by glob pattern, to surface hidden error-handling gaps.

Instructions

Find empty catch blocks and swallowed exceptions.

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_empty_catches"
  }
}

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.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered, but the description adds nothing beyond the name-level purpose. It does not say what gets reported per match, whether the whole repo is scanned by default, or which languages/patterns are recognized.

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 short sentence with zero filler, and the core purpose is front-loaded. Nothing is redundant or padded.

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

Completeness3/5

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

The tool is simple, parameters are fully documented in the schema, annotations cover safety, and an output schema exists so return values need not be explained. Still, the description leaves open default scan scope and what counts as a 'swallowed exception', which would matter for correct invocation.

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 description coverage is 100%, so 'directory' and 'file_glob' are already documented in the schema. The description neither mentions these filters nor explains default scope, so it adds no meaning beyond the structured fields and the baseline 3 applies.

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

Purpose5/5

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

The description names a specific verb ('Find') and two concrete resources ('empty catch blocks' and 'swallowed exceptions'), which is precise enough to separate it from siblings like find_dead_code or find_secrets. An agent can tell exactly what class of defect this tool surfaces without opening the schema.

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 guidance on when to reach for this tool versus alternatives, no prerequisites, and no exclusions. The usage context (a code-quality scan of a directory) is only inferable from the sibling list, not stated in the definition.

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