Skip to main content
Glama

Link a file

link_file
Idempotent

Change the tasks and notes linked to a file without uploading its content again: the next version reuses the current one's content.

expected_version: the version read with get_file. linked_tasks, linked_notes, when given, replace the list (tasks and notes of the file's space); omitted, they are kept.

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": {
      "file_id": "<file_id>",
      "expected_version": "<expected_version>"
    },
    "name": "link_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
linked_notesNo
linked_tasksNo
expected_versionYes

Output Schema

NameRequiredDescriptionDefault
idYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / linked_notes / anyOf
      Previous value: -[
      -  {
      -    "description": "Ids de notes de l'espace.",
      -    "items": {
      -      "format": "uuid",
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Ids of notes in the space.",
      +    "items": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / linked_tasks / anyOf
      Previous value: -[
      -  {
      -    "description": "Ids de tâches de l'espace.",
      -    "items": {
      -      "format": "uuid",
      -      "type": "string"
      -    },
      -    "maxItems": 50,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Ids of tasks in the space.",
      +    "items": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, idempotent=true, destructive=false), the description discloses that the operation creates a new version reusing existing content and that linked lists are replaced wholesale rather than appended. The expected_version parameter is explained as the version read with get_file, which implies optimistic concurrency, though the failure behavior on a version mismatch is not stated.

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?

Two tight sentences plus a compact parameter note; the core behavior (relink without re-upload, version reuse) is front-loaded. The parenthetical '(tasks and notes of the file's space)' is slightly awkward but earns its place by scoping the valid IDs.

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 4-parameter mutation tool with an output schema (so return values need not be described), the description covers the important semantics: version reuse, list replacement, and omission defaults. The main residual gap is what happens when expected_version does not match the current version.

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 description coverage is 0%, so the description carries the burden and largely does: it defines expected_version's provenance (the version read via get_file) and the replace-vs-keep semantics of linked_tasks and linked_notes, including the default of keeping existing links when omitted. file_id is left unexplained and the 50-item cap is only in the schema, keeping this short of a 5.

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?

The description gives a specific verb and resource: change the tasks and notes linked to a file, and adds the key qualifier that content is not re-uploaded and the next version reuses the current content. That distinguishes it in spirit from save_file, but no sibling is named explicitly, so differentiation is inferred 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 Guidelines3/5

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

Usage context is clear: this is for re-linking tasks/notes without re-uploading content, implying a content-upload tool is the alternative. However, no alternative tool is named and there is no explicit when-not guidance (for example, what to do if the file must be replaced rather than relinked).

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.

Resources