Skip to main content
Glama

update_finding

Idempotent

Modify a recorded finding by changing only the fields you supply—set status, add issue or PR links, fill teaching fields, or append evidence.

Instructions

Change a recorded finding; only the fields you pass are changed.

Use it to fill the teaching fields (why, fix_options, lesson), set status (candidate | confirmed | rejected | reported | fixed), add issue_url / pr_url, or append new evidence (evidence_command + evidence_output). fix_options replaces the list; each item is {"title", "description", "tradeoff", "recommended": bool} and at most one is recommended. Returns the updated finding.

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>",
      "finding_id": "<finding_id>"
    },
    "name": "update_finding"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNo
fileNo
lineNo
repoYes
whatNo
reproNo
titleNo
lessonNo
pr_urlNo
statusNo
test_idNo
functionNo
severityNo
issue_urlNo
confidenceNo
finding_idYes
fix_optionsNo
introduced_inNo
evidence_outputNo
evidence_commandNo
evidence_exit_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the description's real contribution is the patch semantics and the replace-vs-append distinction: 'fix_options replaces the list' versus 'append new evidence', plus the at-most-one-recommended constraint. That is genuinely useful behavior beyond the annotations. One mild tension goes unaddressed: repeated 'append new evidence' calls against an idempotentHint=true tool may or may not deduplicate, and missing-finding_id error behavior is never described.

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 the core mutation contract, then the use cases, then the two non-obvious field rules (fix_options replacement shape, evidence appending). Dense but waste-free, with no filler preamble. The fix_options inline object notation is terse to the point of being slightly hard to parse, but it earns its space.

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 21-parameter partial-update tool with no output schema, the description covers the mutation contract, the primary editing scenarios, the status enum, the structured fix_options shape, and states the return value ('Returns the updated finding'). What remains thin is the long tail of simple scalar fields and any error/permission behavior on an unknown finding_id, but nothing needed to invoke it correctly is missing.

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 0% across 21 parameters, so the description must compensate, and it only partly does. It gives real semantics for why, lesson, status (with the five allowed values, which the schema itself does not enumerate), issue_url, pr_url, evidence_command, evidence_output, and a full item shape for fix_options. The remaining parameters (repo, finding_id, file, line, what, repro, title, test_id, function, severity, confidence, introduced_in, evidence_exit_code) are left to self-descriptive titles alone.

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 states a specific verb and resource ('Change a recorded finding') and immediately clarifies the partial-update contract ('only the fields you pass are changed'), which is the key distinction from a full-record write like record_finding. It does not name the sibling tools (get_finding, record_finding) explicitly, so the differentiation is implied by verb semantics rather than stated.

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?

It enumerates the concrete situations the tool is for: filling teaching fields (why, fix_options, lesson), setting status, attaching issue_url/pr_url, and appending evidence. That is a clear when-to-use set. It stops short of exclusions or prerequisites — e.g. it never says to call get_finding first or that the finding must already exist — so the agent must infer the negative cases.

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