Skip to main content
Glama

palace_traverse

Discover related topics by walking outward from a room through shared-wing connections. Returns nearby rooms, hop distances, wings, and name suggestions if the starting room is missing.

Instructions

Explore related topics by walking outward from a room. Two rooms are connected when they share a wing; the walk goes breadth-first up to max_hops and returns up to 50 rooms with their wings, halls, drawer count, hop distance, and the wings they connect through. If the room does not exist it returns close name suggestions. Read-only. Use it to discover related areas; to find content use palace_search, and for explicit links you created use palace_follow_tunnels.

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": {
      "start_room": "<start_room>"
    },
    "name": "palace_traverse"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_hopsNoHow many connection steps to follow (default: 2)
start_roomYesExact room name to start from (see palace_list_rooms)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.20.7
    • changedInput schema / properties / max_hops / description
      Previous value: -"How many connections to follow (default: 2)"New value: +"How many connection steps to follow (default: 2)"
    • changedInput schema / properties / start_room / description
      Previous value: -"Room to start from"New value: +"Exact room name to start from (see palace_list_rooms)"
  2. First observedv0.20.5

TDQS

A4.7/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 declares read-only, names the traversal algorithm (breadth-first, up to max_hops), caps results at 50 rooms, and specifies the fallback behavior when the start room is missing (close name suggestions). It does not say what happens when the 50-room cap truncates a walk or whether results are ordered, which is the one meaningful gap for a traversal tool.

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 ordered purpose → mechanics/return → alternatives, with no filler. The routing sentence is last, which is the right place for it, and every clause (share a wing, BFS, 50 rooms, suggestions on miss) conveys something an agent needs.

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?

There is no output schema, and the description compensates by enumerating the returned fields (wings, halls, drawer count, hop distance, connecting wings) along with the result cap and error path. For a two-parameter read-only traversal, nothing essential to 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 schema already documents both parameters and the baseline is 3. The description adds meaning beyond it by framing max_hops as connection steps in a breadth-first walk and by pointing start_room at palace_list_rooms for exact names, which clarifies that the name must match exactly.

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 ("Explore related topics by walking outward from a room") and immediately defines the graph semantics — two rooms are connected when they share a wing. That is enough to distinguish it from palace_search (content lookup) and palace_follow_tunnels (explicit links) without opening either schema.

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 routes the agent: use this to discover related areas, use palace_search to find content, use palace_follow_tunnels for links you created. Each alternative is named with the condition that selects it, so no inference is required.

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