Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Create hard link

create_hardlink
Idempotent

Create a hard link so an existing file appears under a second path on the same file system. Fails if the new name already exists; local disk, SFTP and NFS only.

Instructions

Create a hard link: a second name for an existing file. Use when: one file must appear under two paths. Instead: create_symlink for folders or across file systems; copy_file for a copy. Behavior: only adds. A repeat fails with 'File exists'. One file system; local disk, SFTP and NFS only. Refuses secret files. Time limit: 30 s. Returns: {ok: true}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_hardlink"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoThe existing file to link to; unlike symlink's target it is resolved like any path (absolute, or relative to the MCP root). Required unless target_b64 is given.
backendNoBackend id from list_backends; omit for the default.
link_pathNoThe new name; must not exist yet (absolute, or relative to the MCP root). Required unless link_path_b64 is given.
target_b64Notarget as base64 of its raw bytes, for non-UTF-8 names; replaces target.
link_path_b64Nolink_path as base64 of its raw bytes, for non-UTF-8 names; replaces link_path.

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context the annotations do not carry: the operation only adds, a repeat fails with "File exists," it is limited to a single filesystem on local disk/SFTP/NFS, it refuses secret files, and there is a 30 s time limit. The one tension is idempotentHint=true against "a repeat fails," which an agent could misread as retry-safe; the description's warning is actually the more useful signal, so this is a qualifications mismatch rather than a real contradiction.

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?

Extremely tight, label-fronted structure (Use when / Instead / Behavior / Returns) with no filler; the scope constraint and the alternative routing come before the behavioral detail.

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?

Covers everything an agent needs for a five-parameter mutation: when to use it, what not to use, side effects, filesystem and timeout limits, and a return shape. With annotations and an output schema already present, nothing material is missing.

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 target, link_path, backend and the _b64 variants are already explained in detail. The description adds nothing about parameter syntax or about the base64 alternatives, so it sits at the baseline where the schema does the work.

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 and resource ("Create a hard link") and immediately defines it as "a second name for an existing file," which distinguishes it from create_symlink and copy_file without requiring 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 an explicit when-to-use clause ("one file must appear under two paths") and names two alternatives with the conditions that select them (create_symlink for folders or cross-filesystem, copy_file for a copy). It stops short of a full decision table, e.g. it never mentions move_path or when an agent should prefer linking over moving, but the routing guidance is concrete and usable.

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