Skip to main content
Glama

Remove a file link

unlink_file

Detach a file link that was deleted, renamed or attached by mistake. Removes only the reference from the task, leaving nothing on disk touched.

Instructions

Remove a link whose file was deleted, renamed or attached by mistake. Nothing on disk is touched.

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": "unlink_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoYour model id, e.g. 'claude-opus-5'.
ref_idYesFrom the `files` of get_context or get_task. Removes the link, not the file.

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.8/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, and it does disclose the single most important trait: no disk mutation of the underlying file. It says nothing about permissions, reversibility, behavior when ref_id is unknown, or what the caller gets back, which leaves real gaps for an unannotated mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero waste; the purpose and the non-destructive guarantee are both front-loaded and immediately actionable.

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 2-parameter tool with fully documented schema, the description covers what it does and the key side-effect boundary. It omits error behavior and any undo path, which would matter for a tool that silently detaches a resource.

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% and ref_id's own description already says 'Removes the link, not the file', so the description adds no new parameter meaning. Baseline 3 applies since the schema does the heavy lifting for both model and ref_id.

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 specific verb and resource ('Remove a link') and clarifies scope with 'Nothing on disk is touched', which separates it from file-deletion semantics. It does not explicitly name a sibling such as link_files as the inverse operation, so differentiation is inferred from the name 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?

Gives concrete triggering conditions: the file was deleted, renamed, or attached by mistake. It stops short of an explicit when-not or a named alternative for cases where the user actually wants to delete the file.

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