Skip to main content
Glama

link_files

Record a connection between two files you can read, possibly in different workspaces (e.g. an old project's solution and a new project's requirement). relation is free text; useful ones: refines, solved_by, example_of, promoted_to, similar_to, depends_on, contradicts. note = your reasoning. Leave versions empty to link whole files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoYour reasoning for the link. Optional.
to_pathYesThe file the link points to.
relationYesHow they're connected, free text, e.g. solved_by, refines, example_of, similar_to.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
from_pathYesThe file the link starts from.
to_versionNoLink a specific version of the to-file. Omit for the whole file.
from_versionNoLink a specific version of the from-file. Omit for the whole file.
to_workspace_idYesThe workspace of the file the link points to.
from_workspace_idYesThe workspace of the file the link starts from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / from_path / description
      Added value: +"The file the link starts from."
    • addedInput schema / properties / from_version / description
      Added value: +"Link a specific version of the from-file. Omit for the whole file."
    • addedInput schema / properties / from_workspace_id / description
      Added value: +"The workspace of the file the link starts from."
    • addedInput schema / properties / note / description
      Added value: +"Your reasoning for the link. Optional."
    • addedInput schema / properties / relation / description
      Added value: +"How they're connected, free text, e.g. solved_by, refines, example_of, similar_to."
    • addedInput schema / properties / to_path / description
      Added value: +"The file the link points to."
    • addedInput schema / properties / to_version / description
      Added value: +"Link a specific version of the to-file. Omit for the whole file."
    • addedInput schema / properties / to_workspace_id / description
      Added value: +"The workspace of the file the link points to."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive mutation, so the description does not need to restate safety. It adds real behavioral context beyond the schema: relation is free text with a curated list of useful values, note carries the caller's reasoning, and empty versions link whole files rather than a specific version. It still doesn't say whether duplicate links error or how to undo one.

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?

Four tight sentences with the purpose front-loaded, followed by relation guidance and the version convention. Slightly duplicative of schema text, but nothing gratuitous.

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 9-parameter mutation with no output schema, the description covers purpose, the key relation/note conventions, and the version-vs-whole-file choice. Remaining gaps (duplicate handling, return value, permission requirements beyond 'files you can read') are minor given the annotation safety profile.

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 description coverage is 100%, so the baseline is 3. The description reinforces relation (free text, suggested values) and the empty-version convention, but that information is largely already in the property descriptions, so it adds little beyond the schema.

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 (record) and resource (a connection between two files) with scope: across workspaces, files you can read. An agent can immediately distinguish this from sibling unlink_files and get_file_link without opening the schema.

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 clear context for use with a concrete example (old project's solution vs new project's requirement) and a readability precondition ('files you can read'). It stops short of naming when not to use it or pointing at the sibling unlink_files/get_file_link for retrieval, so it is not a full 5.

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