Skip to main content
Glama

Remove link

remove_link
DestructiveIdempotent

Removes an existing network link by device and port, clearing the port’s current connection so each port maps to at most one link.

Instructions

Remove the link that uses the given device port (a port belongs to at most one link).

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": {
      "device": "<device>",
      "port": "<port>"
    },
    "name": "remove_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYesInterface name, e.g. GigabitEthernet0/0, FastEthernet0/1, FastEthernet0 (abbreviations such as Gi0/0 are expanded).
deviceYesDevice name, e.g. R1, S1, PC1 (case-insensitive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructive=true, idempotent=true, and readOnly=false, so the safety profile is covered externally. The description adds the useful structural fact that a port belongs to at most one link, but it is silent on what happens when the port has no link (error vs no-op) and on any returned confirmation.

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?

One front-loaded sentence with a parenthetical that earns its place by clarifying the key semantics. No filler or redundant restatement of the title.

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 two-parameter destructive tool with complete schema descriptions and full annotation coverage, this is nearly sufficient. The remaining gap is failure behavior when no link exists at the given port, plus return-value expectations with no output schema.

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 the per-parameter examples are already handled by the schema. The parenthetical nonetheless adds real meaning: it explains why port alone uniquely identifies the link, justifying the absence of a link-id parameter.

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?

States a specific verb (remove) and resource (the link), plus the identifying key (device port). It does not name the sibling inverse add_link, so the agent must infer the pairing from the name, but the purpose itself is unambiguous.

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 is implied rather than stated: the agent learns that a link is addressed by its port, which is the practical 'how', but there is no explicit when-to-use/when-not guidance or reference to alternatives like remove_device for tearing down topology.

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