Skip to main content
Glama

related_rows

Read-onlyIdempotent

Follow a relation from a source table to the rows it links to. Given a column on table_slug that participates in a relation and a value (usually a cell from a source row), returns the matching rows in the linked table. Works in both directions. Each linked table includes source_document when it came from an uploaded document, and each row includes source_page (or null). Cite the filename and page; do not invent a page.

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": {
      "table_slug": "<table_slug>",
      "column": "<column>",
      "value": "<value>"
    },
    "name": "related_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe value to match across the relation.
columnYesA column on table_slug that participates in a relation.
table_slugYesSlug of the source table (from list_tables).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / table_slug / description
      Added value: +"Slug of the source table (from list_tables)."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), but the description adds genuine output-value context: linked tables carry source_document for uploaded documents and rows carry source_page or null, plus an anti-fabrication instruction ('do not invent a page'). It stops short of stating result limits, truncation, or ordering behavior, which matters for a traversal tool with no output schema.

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

Conciseness5/5

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

Four tight sentences, front-loaded with purpose, then directionality, then return fields, then the citation instruction. No filler and nothing repeated from the schema or annotations.

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

Completeness4/5

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

With no output schema and a small three-parameter surface, the description does the necessary work by explaining the meaning of returned source_document/source_page fields and how to cite them. Missing only result-size/ordering expectations and a pointer to relation discovery for agents that don't yet know a valid column.

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 coverage is 100%, so a baseline of 3 applies, and the description earns above that by clarifying that the column must participate in a relation and that the value is typically a cell from a source row. It still leaves the expected value format (ID vs. display text) and relation-direction semantics implicit.

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+resource pair: 'Follow a relation from a source table to the rows it links to.' It then sharpens the scope with 'returns the matching rows in the linked table' and 'Works in both directions,' which cleanly separates it from list_relations (discovery) and query_table (direct querying).

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?

Explains the input condition well: a column that 'participates in a relation' plus a value that is 'usually a cell from a source row,' plus bidirectional operation. It does not, however, name an alternative or say when not to use it (e.g. when the relation is unknown, discover it with list_relations first).

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