Skip to main content
Glama

Accept a changed file as still correct

accept_file_change

Clears the stale warning on a linked file after you have read the change and confirmed the note still holds. Report the current hash first, then accept.

Instructions

Clear the stale warning on a linked file once you have read the change and the note still holds (report its current hash first; hosted, via report_file_hashes). If the note no longer holds, fix the note instead.

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": {
      "ref_id": "<ref_id>"
    },
    "name": "accept_file_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoYour model id, e.g. 'claude-opus-5'.
ref_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.8
    • addedInput schema / properties / ref_id / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\d{1,15}$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / ref_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / ref_id / minimum
      Removed value: --9007199254740991
    • removedInput schema / properties / ref_id / type
      Removed value: -"integer"
  2. First observedv0.1.4

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the scope of the mutation (it clears a stale warning rather than editing the note content) and the hash prerequisite, which is real behavioral context. However, it says nothing about what happens if the reported hash is stale, whether the operation is idempotent, or what permissions are needed, leaving meaningful gaps for a write operation.

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?

A single tight sentence with the primary action front-loaded, followed by the precondition and the fallback action. The parenthetical about report_file_hashes is slightly awkward but carries necessary ordering information. No filler sentences.

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 simple two-parameter tool with no output schema, the definition covers purpose, precondition, prerequisite call, and the alternative path. The remaining gap is the meaning and provenance of ref_id, which is the one thing an agent could get wrong on first invocation.

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

Parameters2/5

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

Schema coverage is only 50%: 'model' is documented in the schema, but 'ref_id' — the sole required parameter — has no description anywhere. The description's phrase 'a linked file' faintly implies ref_id identifies that file, but it never says whether it is a file id, a link id, or a note id, nor how to obtain it. That ambiguity is exactly what the description should resolve.

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?

States a concrete verb and effect on a concrete resource: 'Clear the stale warning on a linked file'. The title reinforces it, and the conditional clause ('once you have read the change and the note still holds') makes the intent unambiguous. It does not name a sibling tool by name, but 'fix the note instead' points clearly at a different action, so the differentiation is implied rather than explicit.

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 both the when-to-use condition (after reading the change, and only if the note still holds) and the when-not alternative ('If the note no longer holds, fix the note instead'). It also states a sequencing prerequisite — report the current hash first via report_file_hashes — which is exactly the kind of ordering guidance an agent needs before invoking a state-mutating tool.

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