Skip to main content
Glama

neighbors

Read-only

Map one wiki page's direct incoming and outgoing wikilinks in a single hop, returning linked slugs, direction, and relationship labels for knowledge graph traversal.

Instructions

Explore one wiki page's incoming and outgoing [[wikilinks]], one hop only. Returns a JSON array in text of {slug, direction, phrase}, sorted by neighbor slug: out means the input page links to that slug; in means that slug links to the input page. phrase is the stored relationship label, possibly empty. Use after discovering a page with search or list_pages; use search for content matches, list_pages for the full catalog, or read_page for one neighbor's body. No bodies, pagination, or result cap. Unknown or unlinked slugs return []; dangling links may be included, so read_page can report a missing target. Local index read only, no model call or writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesExact wiki slug from search/list_pages, e.g. climate-tech, not a title or path. The query includes links in both directions; it does not traverse multiple hops.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.2
    • addedInput schema / properties / slug / description
      Added value: +"Exact wiki slug from search/list_pages, e.g. climate-tech, not a title or path. The query includes links in both directions; it does not traverse multiple hops."
    • addedInput schema / properties / slug / minLength
      Added value: +1
  2. First observedv0.4.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply readOnlyHint and openWorldHint; the description adds substantial context beyond them: no bodies, no pagination, no result cap, unknown/unlinked slugs return [], dangling links may appear, and the whole thing is a local index read with no model call or writes. That is exactly the extra behavioral disclosure the annotations cannot carry.

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?

Dense but front-loaded: purpose and one-hop scope come first, then return shape, then routing, then edge cases. Each sentence carries distinct information, though the return-shape sentence is tightly packed and slightly heavy for a one-parameter tool.

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?

With no output schema, the description fully specifies the return contract: a JSON array of {slug, direction, phrase}, sort order by neighbor slug, the meaning of in/out, and that phrase may be empty. Edge cases (unknown slug, dangling links) and the absence of pagination or caps are also covered.

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 single parameter is fully documented in-schema (exact slug, example, both-direction query, no multi-hop). The description reinforces the slug semantics but adds no syntax or format detail the schema lacks, so the baseline 3 applies; the direction/phrase explanation is return-value information, not parameter information.

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 one wiki page's incoming and outgoing [[wikilinks]]') plus an explicit scope bound ('one hop only'). It is immediately distinguishable from search, list_pages, and read_page, which are named as alternatives.

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 sequencing ('Use after discovering a page with search or list_pages') and explicit routing rules for each sibling: search for content matches, list_pages for the full catalog, read_page for one neighbor's body. Both when-to-use and when-to-use-something-else are covered.

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