Skip to main content
Glama
@event4u/agent-config

@event4u/agent-config

Official

graph_dead

Read-onlyIdempotent

Identifies symbols with no accepted references and no declared entry points, refusing results when source is unreadable and never recommending deletion.

Instructions

Symbols no accepted reference and no declared entry point names. REFUSES while a source is unreadable: without recorded exportedness an exported-but-unimported symbol looks dead. Never a deletion recommendation.

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

Input Schema

NameRequiredDescriptionDefault
detailNostandard
projectNo
entry_pointsNoPath under this root: newline-separated ids or labels, `#` comments ok.
accept_missing_exportsNoAnswer anyway, accepting the gap. Never a default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv20.4.0
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "standard",
      +  "enum": [
      +    "minimal",
      +    "standard"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / entry_points / description
      Previous value: -"Path under this root to a newline-separated id/label list; `#` comments ok."New value: +"Path under this root: newline-separated ids or labels, `#` comments ok."
    • addedInput schema / properties / project
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv14.22.0

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already cover the safe-read profile (readOnly, idempotent, non-destructive, closed world), yet the description adds genuinely non-obvious behavior: the tool refuses when a source is unreadable, and it explains the false-positive mechanism (missing exportedness makes exported-but-unimported symbols look dead). The clause "Never a deletion recommendation" usefully frames how to interpret output, though the refusal's error signal and what partial results look like are not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short, and the refusal caveat is front-loaded rather than buried. However, the telegraphic, article-free phrasing ("Symbols no accepted reference...") forces re-parsing and reads more like a note than a specification.

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?

There is no output schema, and the description addresses the two things that matter most for a dead-code finder: why it can refuse, and that its result is not a deletion mandate. It still omits what the result set looks like (per-symbol list versus counts) and what the detail enum changes, which matters for a 4-parameter analysis 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?

Schema coverage is 50%, so the entry_points and accept_missing_exports parameters are already documented in-schema. The description touches these indirectly ("no declared entry point names", "REFUSES while a source is unreadable") but never names them, and the undocumented detail/project parameters get no added meaning.

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

Purpose3/5

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

The fragment "Symbols no accepted reference and no declared entry point names" conveys a dead-symbol/reachability report, but it is verb-less and telegraphic, so the agent must reconstruct that the tool *reports* such symbols rather than *removing* them. It gives no differentiation from siblings like graph_estate or graph_area, which can only be inferred from their names.

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 reach for this tool versus graph_estate, graph_impact or graph_query. The only conditional content is a refusal mode (unreadable source) rather than a use case, and no prerequisites such as needing entry points declared first are stated as guidance.

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