Skip to main content
Glama

palace_create_tunnel

Creates an explicit tunnel between rooms in different wings so follow-tunnel queries can jump between related areas when automatic relationship discovery cannot infer the link.

Instructions

Store an explicit link (tunnel) between a room in one wing and a room in another, so palace_follow_tunnels can jump between related areas, e.g. an API repo's 'auth' room and a frontend repo's 'login' room. Wing names are normalised to slugs. The tunnel id is derived from its endpoints and kind, so creating the same tunnel twice is a no-op that returns the same id. Use it when the user points out a relationship palace_find_tunnels cannot infer.

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": {
      "wing_a": "<wing_a>",
      "room_a": "<room_a>",
      "wing_b": "<wing_b>",
      "room_b": "<room_b>"
    },
    "name": "palace_create_tunnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoFree-form label for the relationship, e.g. depends_on (default: explicit)
room_aYesRoom of the first endpoint
room_bYesRoom of the second endpoint
wing_aYesWing of the first endpoint
wing_bYesWing of the second endpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.20.7
    • addedInput schema / properties / kind / description
      Added value: +"Free-form label for the relationship, e.g. depends_on (default: explicit)"
    • addedInput schema / properties / room_a / description
      Added value: +"Room of the first endpoint"
    • addedInput schema / properties / room_b / description
      Added value: +"Room of the second endpoint"
    • addedInput schema / properties / wing_a / description
      Added value: +"Wing of the first endpoint"
    • addedInput schema / properties / wing_b / description
      Added value: +"Wing of the second endpoint"
  2. First observedv0.20.5

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses idempotency ('creating the same tunnel twice is a no-op that returns the same id'), how the id is derived, and that wing names are slug-normalised. It does not mention persistence, permissions, or whether the relation is bidirectional, leaving some behavior unstated.

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?

Three sentences, front-loaded with the core action, then behavior (idempotency, slug handling), then usage guidance. Every sentence carries distinct information with no filler.

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 5-parameter creation tool with no annotations and no output schema, the description covers action, identity semantics, normalisation, and return value (same id on repeat). Minor gaps remain around permissions and whether the link is directional, but nothing critical for correct invocation is missing.

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 baseline is 3; the description adds meaning beyond the schema by explaining that wing names are normalised to slugs and that the tunnel id is deterministically derived from endpoints and kind, which changes how an agent should reason about the 'kind' parameter and duplicates.

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 ('Store an explicit link (tunnel)') plus its scope ('between a room in one wing and a room in another'), names the consumer (palace_follow_tunnels), and gives a concrete example. An agent can distinguish this from palace_find_tunnels and palace_follow_tunnels immediately.

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?

Explicitly says when to use it — 'when the user points out a relationship palace_find_tunnels cannot infer' — which contrasts it with the discovery sibling. It lacks an explicit when-not or a pointer to palace_delete_tunnel for removal, but the positive trigger condition is clear.

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