Skip to main content
Glama

Edit a Finding’s Source string

edit_source_string
Destructive

Put your own wording of the Source string an open Finding is on into the run’s Edit set, as a Source string edit: it changes only the wording (placeholders and markup stay), replaces an edit of that string already there, and removes the string’s unapplied translation edits. Nothing changes until the Edit set is applied. Text equal to a Finding’s suggested rewrite accepts it, as accept_finding_rewrites does. Refused FINDING_NOT_FOUND, FINDING_NOT_OPEN, RUN_EDIT_UNCHANGED (the text is the current one), SOURCE_EDIT_STRUCTURE_CHANGED, SOURCE_EDIT_UNSUPPORTED or JOB_NOT_EDITABLE (the run takes no Source string edit now). 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>",
      "findingId": "<findingId>",
      "text": "<text>"
    },
    "name": "edit_source_string"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe string’s new source-language wording
runIdYesRun id, from get_workflow_run or list_workflow_runs
findingIdYesAn open Finding on the string, from list_run_findings

Output Schema

NameRequiredDescriptionDefault
editIdYesThe edit in the Edit set: what discard_edit takes
removedTargetEditsYesThe string’s unapplied translation edits it removed, whose text it replaces

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/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes further by naming exactly what is lost (unapplied translation edits on that string) and that existing edits to the string are replaced. That is real added value, but the ordering and idempotence details are left to the Edit-set workflow, and the specific error names largely restate failure surface rather than explain consequences.

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 core behavior and its side effects are front-loaded in the first sentence and the remainder is dense with useful constraints. The closing sentence about naming projects/locales instead of UUIDs is a general presentation rule that adds length without helping someone invoke this specific tool.

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 mutation with three required parameters, the definition covers what changes, what is destroyed, what state the run must be in, and which error conditions block the call; an output schema exists so return values need no explanation.

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 100%, so the schema already documents all three parameters. The description reinforces that 'text' is source-language wording whose placeholders and markup must survive and whose value must differ from the current text (RUN_EDIT_UNCHANGED), but adds no format or syntax detail beyond that, so the baseline 3 holds.

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 ('Put your own wording of the Source string ... into the run's Edit set, as a Source string edit') and implicitly separates itself from edit_translation (translation) and accept_finding_rewrites (accepting a suggestion). An agent can identify the operation and its scope from the first clause.

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 clearly says when the tool is applicable (an open Finding on the string) and notes that text equal to a Finding's suggested rewrite acts like accept_finding_rewrites, which gives an alternative path. It stops short of stating explicit when-not conditions, e.g. use edit_translation for target-language changes.

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.