Skip to main content
Glama

Accept Findings’ suggested rewrites

accept_finding_rewrites
Destructive

Put open Findings’ suggested rewrites into the run’s Edit set, each as a Source string edit of its string — it replaces an edit of that string already there, and removes the string’s unapplied translation edits. Nothing changes until the Edit set is applied; the Findings stay open until then. Read the result with get_edit_set. All or nothing: refused FINDING_NOT_FOUND, FINDING_NOT_OPEN, FINDING_NO_REWRITE (none was suggested), FINDING_REWRITE_CONFLICT (two on one string), or any refusal of the edit itself. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

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": {
      "runId": "<runId>",
      "findingIds": "<findingIds>"
    },
    "name": "accept_finding_rewrites"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesRun id, from get_workflow_run or list_workflow_runs
findingIdsYesFindings with a rewrite, from list_run_findings

Output Schema

NameRequiredDescriptionDefault
acceptedYesRewrites put into the Edit set

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations flag destructiveHint=true, and the description earns that by naming exactly what is destroyed: an existing edit of the same string is replaced and the string's unapplied translation edits are removed. It further discloses deferred effect (no change until the Edit set is applied), that Findings remain open, atomic all-or-nothing semantics, and the concrete refusal codes — context well beyond what the annotations provide.

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 effect, the deferred-apply caveat, the follow-up tool, and the failure modes are front-loaded and tightly worded with no filler. The closing instruction about using project/language names instead of UUIDs in user-facing replies is a general style rule that is only marginally tied to this tool and dilutes the focus.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, atomic mutation with an output schema, the description covers effect, side effects, atomicity, error conditions, and the follow-up read. Nothing an agent needs to invoke it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: findingIds must reference open Findings that actually carry a suggested rewrite, which is a validity constraint the schema only hints at. runId semantics are left entirely to the schema.

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?

States a specific verb and resource — putting open Findings' suggested rewrites into the run's Edit set as Source string edits — and specifies the exact effect on the target (replaces an existing edit of that string, drops unapplied translation edits). An agent can distinguish this from dismiss_findings or edit_source_string without opening any schema.

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?

Implies the precondition (Findings must be open and have a rewrite) and gives the next-step handoff explicitly: 'Read the result with get_edit_set,' plus the fact that nothing changes until the Edit set is applied. It does not explicitly contrast with dismiss_findings or explain what to do instead when no rewrite exists, so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.