Skip to main content
Glama

Record Anti-Loop Dead-End or Architectural Constraint

record_dead_end

Records failed debugging attempts and architectural constraints so future sessions avoid repeating the same dead-end. Captures the error pattern, tried solution, and root cause.

Instructions

Record a failed debugging attempt or intentional architectural constraint so future turns and sessions never repeat the same dead-end.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_path": "<project_path>",
      "error_pattern": "<error_pattern>",
      "attempted_solution": "<attempted_solution>",
      "root_cause": "<root_cause>"
    },
    "name": "record_dead_end"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoTaxonomy kind: 'error_loop' for code/test bug, 'architectural' for intentional trade-off / rejected approacherror_loop
filesNoWorkspace-relative file paths involved
root_causeYesWhy the approach failed or constraint discovered
constraintsNoActive constraints or invariants that forbid this approach
project_pathYesAbsolute path to the project workspace root
error_patternYesCompiler error, test failure, or symptom encountered
attempted_solutionYesWhat fix or approach was tried and failed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already disclose this is a non-read-only, non-destructive, non-idempotent, closed-world write, so the safety profile is covered. The description adds the persistence rationale (cross-turn, cross-session memory) but omits what matters for a non-idempotent write: that repeated calls likely create duplicate entries, and whether records are project-scoped versus global. That gap is meaningful but not contradicting the annotations.

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 sentence with zero filler, front-loading the verb and resource before the rationale. Every clause earns its place and nothing is repeated from the schema or annotations.

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?

For a seven-parameter mutation tool with four required fields and no output schema, the description covers the what and the why but not the operational essentials: no indication of what is returned (e.g., a record identifier), and no guidance on duplicate avoidance for a non-idempotent write. It is minimally adequate given the rich schema, but not complete.

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 all seven parameters, including the kind enum and its two values, are already documented in the schema; the baseline of 3 applies. The description's mention of 'architectural constraint' loosely reinforces the kind='architectural' branch but adds no syntax, format, or path conventions beyond the schema.

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 uses a specific verb and resource ('Record a failed debugging attempt or intentional architectural constraint') and conveys the two record kinds, so an agent can distinguish this write tool from read-oriented siblings like check_dead_ends. It stops short of explicitly naming or contrasting any sibling tool, which keeps it below a 5.

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?

The phrasing 'so future turns and sessions never repeat the same dead-end' implies the usage context (after a failed fix, or when discovering an intentional trade-off), but there is no explicit when-to-use/when-not guidance. It never says to consult check_dead_ends first or to use reopen_dead_end instead when a prior dead-end is retried, so the agent must infer routing.

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