Skip to main content
Glama

record_finding

Save a reproduced bug to a local evidence ledger with the exact command and output attached, so findings stay verifiable without GitHub calls.

Instructions

Save a bug to the local evidence ledger (no GitHub calls). Use after you have reproduced a bug.

Never record without a reproducing command: pass evidence_command (the exact command you ran) and evidence_output (its output). If you could not reproduce it, confidence MUST be "low". source: test | static | fuzz | flaky | manual. severity: low | medium | high | critical. file is repo-relative and must be given with line (1-based). The evidence is stamped with the repo HEAD commit and UTC time. Returns the stored finding, including its id (e.g. "F-001").

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": {
      "repo": "<repo>",
      "title": "<title>",
      "source": "<source>"
    },
    "name": "record_finding"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNo
fileNo
lineNo
repoYes
whatNo
reproNo
titleYes
sourceYes
test_idNo
functionNo
severityNomedium
confidenceNomedium
introduced_inNo
evidence_outputNo
evidence_commandNo
evidence_exit_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false, idempotent=false; the description adds real behavior the annotations cannot convey — writes go to a local ledger with no network calls, evidence is stamped with the repo HEAD commit and UTC time, and the call returns the stored finding with a generated id like 'F-001'. It still does not say what happens on duplicate or conflicting titles, which matters given idempotentHint=false.

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?

Front-loaded with purpose and the reproduction rule, then dense inline enum listings that replace long prose. Every sentence carries either a rule or an enum, though the packed enum fragments ('source: test | static | fuzz | flaky | manual') read as schema-dump rather than guidance.

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 16-parameter mutation tool with no output schema and no schema descriptions, the definition covers the evidence-integrity fields well but leaves roughly half the parameters unexplained for an agent. It does compensate partly by stating the return shape (stored finding plus id), which the missing output schema would otherwise leave dark.

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?

With 0% schema description coverage the description has to carry all parameter meaning, and it only partially does: it enumerates source and severity values, constrains confidence to 'low' in the unreproduced case, explains that file is repo-relative and must be paired with a 1-based line, and clarifies evidence_command/evidence_output. Nine parameters — repo, title, what, why, repro, function, test_id, introduced_in, evidence_exit_code — get no explanation at all, and the full confidence value set is never stated.

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 opening sentence names a specific verb and resource — save a bug to the local evidence ledger — and immediately scopes it with '(no GitHub calls)', which separates it from remote/PR-oriented siblings like check_pr_readiness or export_report. It also distinguishes itself from read/update siblings by describing this as the write step that happens after reproduction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use after you have reproduced a bug') plus a hard precondition ('Never record without a reproducing command') and a fallback rule for the failure case (confidence MUST be 'low'). It does not name a sibling alternative for the case where a finding already exists, which would have made this a 5.

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