Skip to main content
Glama

kb_path

Read-onlyIdempotent

How two documents are connected: the shortest chain of links between them (either direction; index and map pages are not used as stepping stones).

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "kb_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd: path or name
fromYesStart: path or name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description need not repeat safety. It does add genuine behavioral detail beyond annotations — traversal is bidirectional and index/map pages are excluded as intermediate hops — but it says nothing about the result when no path exists or about chain length limits.

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?

A single dense sentence that front-loads the core concept, with the parenthetical qualifiers placed after the main clause. Every element carries information, though the parenthetical pack could be split for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description is the only source of information about results, and it never states what a path result looks like (an ordered list of documents? edges?) or what is returned when no connection exists. For a two-argument path-query tool this is an adequate but incomplete definition.

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%, with 'from' and 'to' documented as 'Start: path or name' and 'End: path or name'. The description only reinforces that the two arguments are documents; it adds no extra semantics such as whether names are resolved case-insensitively or what happens with ambiguous names, so the baseline of 3 applies.

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?

The description names a specific resource and query — the shortest chain of links connecting two documents — which is concrete enough for an agent to distinguish from a general graph dump or a search tool. The verb is implicit ('how ... are connected') rather than an explicit 'find/return', but the meaning 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: call this when you need the relationship between exactly two documents. There is no explicit when-to-use, when-not-to-use, or pointer to a sibling such as kb_graph or kb_find for broader traversal or lookup, so the agent must infer the boundary itself.

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