Skip to main content
Glama

Delete document link

delete-document-link
DestructiveIdempotent

Removes a link between two documents. Both documents stay as they are; only the recorded relationship between them goes.

Use this tool when:

  • A link was made in error, e.g. the wrong contract was marked as the one renewed, or the relationship type was wrong (remove it, then create the right one with create-document-link)

  • The user says two documents no longer belong together

Take link_uuid from the linked_documents section of get-document-info for document_uuid.

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": {
      "document_uuid": "<document_uuid>",
      "link_uuid": "<link_uuid>"
    },
    "name": "delete-document-link"
  }
}

Input Schema

NameRequiredDescriptionDefault
link_uuidYesThe uuid of the link to remove, from the linked_documents section of get-document-info. Not the uuid of either document.
document_uuidYesUUID of either of the two linked documents. If you don't already have the document's UUID, use the list-documents tool to find it.

Output Schema

NameRequiredDescriptionDefault
documentNoThe document given as document_uuid, from whose side removed_link is presented
removed_linkNoThe link that was removed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is carried by structured data. The description's genuine addition is the blast radius – documents themselves survive, only the link record is removed – which is exactly the concern for a destructive tool. It says nothing about error behavior if the link is already gone, permissions required, or reversibility, so it adds moderate rather than rich context.

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 the effect, then a scannable bulleted when-to-use block, then the parameter pointer. The closing sentence duplicates guidance already in the schema's link_uuid description, which is the only real redundancy; everything else earns its place.

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?

An output schema exists so return values need no explanation, and the two required parameters are fully covered by the schema. For a destructive, idempotent unlink operation the definition covers effect and sourcing; it stops short of stating permanence/undo and permission requirements, which would fully close the loop.

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 the schema descriptions already state that link_uuid comes from the linked_documents section of get-document-info and is not a document UUID. The description's final sentence restates that same sourcing guidance with the added hint that it must come from the entry for document_uuid, but this is mostly a repeat of structured fields rather than new semantics.

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 ('Removes a link between two documents') and immediately scopes it: 'Both documents stay as they are; only the recorded relationship between them goes.' That negative scoping separates it from document-deletion siblings like archive-document or delete-document-user without any inference required.

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?

Explicit 'Use this tool when:' block with two concrete triggers (link created in error, wrong relationship type, or user says documents no longer belong together) and it names the follow-up alternative create-document-link for recreating the correct link. When-to-use, when-adjacent, and the sibling to use next are all present.

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