Skip to main content
Glama

Traverse the Agent Reliability knowledge graph

get_related
Read-onlyIdempotent

Graph neighbours of an object: outgoing and incoming relations, each with its relation type. PAGED: 25 relations by default, 200 at most, and a response budget of about 64 KB per call — a page over budget comes back shorter WITH a next_cursor, never truncated. One cursor walks both directions, outgoing first; its absence means you have the last page. Use this after get_entity to widen an answer with adjacent objects. It walks one hop from an id you already have — use search when you have a question and no starting object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe knowledge object to walk out from, by id.
limitNoHow many relations to return, across both directions. Defaults to 25.
cursorNoContinue from a previous call: pass the next_cursor it returned. Opaque; do not construct one.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
foundYes
totalNoHow many relations this object has in both directions, before paging.
incomingNo
outgoingNo
recoveryNo
returnedNo
next_cursorNoPass to the next call to continue. ABSENT means this was the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Continue from a previous call: pass the next_cursor it returned. Opaque; do not construct one.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "How many relations to return, across both directions. Defaults to 25.",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / next_cursor
      Added value: +{
      +  "description": "Pass to the next call to continue. ABSENT means this was the last page.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / returned
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "description": "How many relations this object has in both directions, before paging.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / incoming / items / properties / entity / properties / x
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "description": "Indexed instance-specific attributes, grouped by namespace — the same fields api/index.json publishes. Absent when the instance declares none.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / outgoing / items / properties / entity / properties / x
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "description": "Indexed instance-specific attributes, grouped by namespace — the same fields api/index.json publishes. Absent when the instance declares none.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The knowledge object to walk out from, by id."
  4. Changed1 schema field changed
    • addedOutput schema / properties / recovery
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "available": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "available_count": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "available_truncated": {
      +      "type": "boolean"
      +    },
      +    "did_you_mean": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "hint": {
      +      "type": "string"
      +    },
      +    "next_tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "available_count",
      +    "available",
      +    "next_tool",
      +    "hint"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds crucial behavioral details beyond annotations: pagination limits (25 default, 200 max), response budget (64 KB), and the semantics of the cursor (one cursor for both directions, outgoing first, absence means last page). It also notes the 'never truncated' guarantee. This is rich, non-redundant context that helps the agent anticipate behavior.

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?

The description is four sentences, each informative. It front-loads the core purpose and then explains pagination and usage. While not as terse as some two-sentence examples, every sentence earns its place; there is no fluff. Slightly longer than necessary but still well-structured and easy to parse.

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?

The tool has an output schema (not shown here but flagged as present), so the description does not need to explain return fields. It covers the main invocation flow: start with an id from get_entity, understand pagination via cursors, and know when to switch to search. It also addresses the edge case of over-budget pages. For a graph traversal tool, this is complete and actionable.

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 description coverage is 100%, so the schema already documents each parameter well (id, limit, cursor). The description adds extra meaning about cursor behavior ('One cursor walks both directions, outgoing first; its absence means you have the last page') and the default limit, which goes beyond the schema's static descriptions. This adds value, though not a huge jump over the schema, so a 4 is appropriate.

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?

The description states a specific verb ('traverse') and resource ('knowledge graph'), then details the behavior: returning outgoing and incoming relations with relation types. It also distinguishes itself from siblings by explicitly saying 'Use this after get_entity' and 'use search when you have a question and no starting object', making the purpose unmistakable.

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?

The description provides explicit when-to-use and when-not-to-use guidance: 'Use this after get_entity to widen an answer' and 'use search when you have a question and no starting object'. It names the alternative (search) and the condition that selects it, leaving no ambiguity for the agent.

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.