Skip to main content
Glama
scipq-mcp
by gdressino

dead_code

Read-onlyIdempotent

Finds Java definitions no code references, excluding overrides, framework members, main methods and reflection-reachable code. Returns candidates, not verdicts, for safe cleanup review.

Instructions

Candidates for dead code: definitions nobody references, leaving out overrides, framework-managed members (non-JDK annotations), main and serialization hooks, no-arg constructors, Lombok accessors in use and names found in string literals. Candidates, not verdicts: reflection can still reach them.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax items
scopeNoPackage (prefix or glob) or source path glob
offsetNoItems to skip
project_rootNoCheckout or worktree to query (any directory in it); default: where the server started
include_testsNoAlso test code
public_is_apiNoTreat public members as API used from outside

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description goes well beyond that by disclosing the exact filtering policy applied to candidates and warning about the reflection false-positive class. That is precisely the behavioral context an agent cannot get from the structured fields.

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?

The definition is front-loaded with the core definition and the exclusion list, closing on the caveat that reframes results as non-authoritative. The middle enumeration is dense and jargon-heavy (Lombok accessors, serialization hooks) but each item is load-bearing for a false-positive-sensitive tool.

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?

For a six-parameter read-only query with no output schema and no required parameters, the description covers the hard part — what counts as dead and what deliberately does not. It stops short of describing result contents or pagination behavior (limit/offset interplay), which the agent must get from the schema alone.

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 limit, scope, offset, project_root, include_tests and public_is_api are already documented in the schema. The description adds no syntax or semantics for any of them — notably it does not connect its exclusions to include_tests or public_is_api — so the baseline of 3 applies.

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 identifies the resource precisely (unreferenced definitions, i.e. dead-code candidates) and immediately bounds it with an explicit exclusion list (overrides, framework-managed members, main/serialization hooks, no-arg constructors, Lombok accessors, string-literal names). It never names a sibling tool, so an agent must infer how this differs from references or callers, but the scope itself is unambiguous.

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: the exclusions plus 'Candidates, not verdicts: reflection can still reach them' tell the agent this is a heuristic scan, and that caveat is genuinely useful for deciding how much to trust results. However, there is no explicit when-to-use / when-not-to-use guidance and no pointer to an alternative such as a references tool when the agent needs ground truth rather than candidates.

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