Skip to main content
Glama

read_relations

Read-only

Fetch both inbound and outbound relations for a Targetprocess card by ID, including each related card, to map dependencies and links.

Instructions

Relations of a card in both directions, with the related card.

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": {
      "id": "<id>"
    },
    "name": "read_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / id / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / id / type
      Added value: +"number"
  2. First observedv1.0.1

TDQS

B3.1/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, non-mutating call, so the description's main added value is the disclosure that results come from both directions and embed the related card object. It says nothing about pagination, ordering, permission scope, or what happens when a card has no relations, which a read tool with no output schema would ideally cover.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loaded with no filler, but it is a verbless sentence fragment whose phrasing ('with the related card') is slightly ambiguous about what is returned. Brevity is achieved partly by omitting information rather than by tight editing.

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?

For a single-parameter read tool with no output schema, the description covers the gist but leaves the return shape vague — it is unclear whether the result is a list of relations, what fields each relation carries, or how the embedded card is represented. An agent could call it, but could not predict the response structure.

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 one parameter at 0% schema coverage, the description must carry the burden, and 'Relations of a card' does establish that the id identifies a card rather than a relation. It stops short of stating the type, whether it is a numeric internal id or a key, or what happens with an invalid id, so ambiguity remains.

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 fragment 'Relations of a card in both directions, with the related card' names a specific resource (card relations) and its scope (both directions, related card included). It lacks an explicit verb, but an agent can tell this is the read path for relationship data rather than card content, comments, or history. It does not name or exclude a sibling explicitly, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to choose this tool over read_card, read_history, or other read_* siblings, and no prerequisites or exclusions. The only signal is the implicit 'if you want relations, use the relations tool' inference from the resource name.

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