Skip to main content
Glama

link

Destructive

Create a hard link to an existing file without copying data. Use dry-run to preview and overwrite protection to prevent accidental replacement.

Instructions

Create hard links to existing files with dry-run and overwrite protection. Destructive: creates new directory entries pointing to the same inode. Hard links cannot span filesystems. Use --dry_run to preview. Overwrite protection enabled by default. Returns JSON with link path and status. Use to create additional names for the same file content without copying data. Not for symbolic links — use 'ln --symbolic'. Not for copying content — use 'cp'. See also 'ln', 'cp'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allow_overwriteNoAllow replacing an existing destination.
destinationYesHard link path to create.
dry_runNoReport operation without changing files.
parentsNoCreate missing parent directories.
sourceYesExisting source file.
Behavior5/5

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

Disclosure openly confirms destructive nature ('creates new directory entries pointing to same inode'), aligns with destructiveHint annotation. Adds key behaviors: cannot span filesystems, dry-run, overwrite protection. No contradiction.

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?

Front-loaded with key actions and warnings. A bit longer than minimal but every sentence adds value. Could be tighter but remains clear.

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?

For a tool with 5 params, no output schema, and only destructiveHint annotation, the description covers purpose, usage, behavior, alternatives, and return format. Fully adequate for agent decision-making.

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 coverage is 100%, so baseline is 3. Description adds behavioral context for dry-run and overwrite protection, linking to parameters, and mentions hard-link constraints. Slightly above baseline but not meticulously describing each parameter.

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?

The description clearly states it creates hard links to existing files, using specific verb and resource. It distinguishes from symbolic links and copying, making purpose unambiguous.

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?

Explicitly states when to use (create additional names for content without copy) and when not to (not for symbolic links or copying). Names alternatives 'ln --symbolic' and 'cp', and mentions dry-run and overwrite protection for preview.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/caseSHY/AI-CLI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server