Skip to main content
Glama

Apply a run’s Edit set

apply_edit_set
Destructive

Apply a completed or held run’s Edit set: each edit becomes its string’s current text and a Reconciliation carries the edits through the run — Source checks judge edited Source strings again, edited strings are translated and QA-checked again, and the Outputs deliver again. That spends credits: refused INSUFFICIENT_CREDITS at the overdraft limit. It applies everyone’s edits, other members’ translation edits included, not only yours. Call it only after showing the user the Edit set (get_edit_set) and the user explicitly confirms; pass the ids of every edit you showed that has editedText — one still being generated (editedText null) stays in the Edit set. Refused EDIT_SET_CHANGED, applying nothing, unless those are exactly the edits it would apply: read get_edit_set again and confirm anew. Recorded as the acting user; refused FORBIDDEN without one. Poll get_workflow_run until its reconciliation is completed. Also refused EDIT_SET_RUN_NOT_COMPLETED (the run is neither completed nor held), RECONCILIATION_IN_PROGRESS (the last apply is still running) and EDIT_SET_EMPTY. 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>",
      "editIds": "<editIds>"
    },
    "name": "apply_edit_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesRun id, from get_workflow_run or list_workflow_runs
editIdsYesThe edits the user confirmed, from get_edit_set

Output Schema

NameRequiredDescriptionDefault
generatingYesAI-suggested edits still being generated, left in the Edit set
reconciliationYesThe Reconciliation the Apply started

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
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description still adds substantial context the annotations cannot carry: credit spend and the INSUFFICIENT_CREDITS overdraft refusal, that other members’ translation edits are included, the acting-user requirement with FORBIDDEN, and a full enumeration of refusal codes (RECONCILIATION_IN_PROGRESS, EDIT_SET_RUN_NOT_COMPLETED, EDIT_SET_EMPTY). This is strong disclosure beyond structured fields, though it does not describe the reconciliation object’s shape (left to the output schema).

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?

Purpose is front-loaded and nearly every clause carries operational payload (cost, scope, error codes, polling, auth). The single dense paragraph is hard to scan, and the trailing name/locale formatting instruction is a general UI convention rather than a fact about this call, so it is mild padding in an otherwise economical definition.

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, credit-spending batch mutation with an output schema, the definition covers the full lifecycle: prerequisite confirmation, exact id set selection, cost refusal, concurrency refusal, changed-set refusal, auth, and how to await completion. Return-value detail is correctly left to the output schema, so nothing an agent needs to call this 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?

With 100% schema coverage the baseline is 3, and the description earns above that by constraining editIds in ways the schema does not: the ids must be exactly the edits the user was shown, must include every edit with non-null editedText, and edits still generating stay in the set. runId semantics are left to the schema, so not a 5.

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?

Opens with a specific verb and resource: 'Apply a completed or held run’s Edit set,' and immediately explains the downstream consequence ('each edit becomes its string’s current text and a Reconciliation carries the edits through the run'). This distinguishes it cleanly from get_edit_set, edit_source_string, and discard_edit, which inspect or mutate single edits rather than committing the whole set.

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

Usage Guidelines5/5

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

Gives an explicit precondition chain: call only after showing the user the Edit set via get_edit_set and obtaining explicit confirmation, then pass ids of every shown edit that has editedText. It also states the failure/retry path (EDIT_SET_CHANGED, re-read and confirm anew) and the follow-up action (poll get_workflow_run until reconciliation is completed), leaving essentially nothing to inference.

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.