Skip to main content
Glama

henosis

get_relationships

Read-only

Fetch the entities related to entity_id through its declared relationships. Omit relationship to fetch all of them. direction: "outbound" (default, live from the source), "inbound" (who points at this entity — resolved from the graph index, "as of last sync"; the result's synced_at reports the freshness bound), or "both". An entity's own EntityType is inferred from entity_id's prefix, so no separate type parameter is needed. format (json|tsv|md, default json) applies to this list result only: tsv/md return the related entities as a compact table.

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": {
      "entity_id": "<entity_id>"
    },
    "name": "get_relationships"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNo
formatNojson
filtersNo
directionNooutbound
entity_idYes
target_typeNo
relationshipNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond `readOnlyHint: true`, it discloses genuinely load-bearing behavior: inbound results are resolved from the graph index "as of last sync", and `synced_at` bounds freshness. That is the kind of staleness caveat an agent cannot get from annotations or schema. It doesn't mention pagination limits or result caps, which is the remaining gap.

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?

Front-loaded with the core action, then defaults, then the direction semantics, which is the right priority order. The `format` clause is slightly redundant (enum values are already in schema) but it earns its place by noting the format applies to this list result only.

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?

An output schema exists, so return values need not be described, and the direction/freshness semantics are well covered. The omission of `filters`, `fields`, and `target_type` leaves an agent unable to know whether filtering is possible at all, which is a real gap for a 7-parameter tool.

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?

With 0% schema description coverage, the description must carry the burden, and it does explain `relationship`, `direction`, `format`, and that `entity_id`'s prefix infers EntityType. However, `fields`, `filters`, and `target_type` — three of seven parameters — are never mentioned, leaving their semantics and any interaction with `direction` unknown.

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?

It states a specific verb and resource: fetch the entities related to `entity_id` through its declared relationships. The mechanism is clear enough to distinguish it from `get_entity` (single entity) and to suggest how it differs from a generic `traverse`. It stops short of naming or contrasting any sibling, so the differentiator must be inferred.

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?

"Omit `relationship` to fetch all of them" gives an explicit default behavior, and each `direction` value is tied to a concrete situation (outbound = live from source, inbound = who points at this entity). It lacks exclusion guidance — e.g., when to prefer `traverse` or `search_entities` over this — so the agent gets clear context but no negative routing.

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.