Skip to main content
Glama

See what records share

get_relationships
Read-only

Groups records by the values they share in a column.

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

Input Schema

NameRequiredDescriptionDefault
field_idNo
collection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. Beyond that the description adds nothing: it does not say whether results are computed on the fly or read from previously saved relationships, how the optional field_id changes scope (all columns vs. one), or how results are shaped. That omission is significant given the presence of a save_relationships sibling.

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?

A single front-loaded sentence with no filler, which is structurally clean. But the terseness crosses into under-specification: one more clause naming the collection scope and the field_id default would cost little and remove most of the ambiguity.

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

Completeness2/5

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

With two undocumented parameters, no output schema, and a domain concept (shared-value grouping) that has a write counterpart in the sibling list, the description is too thin to call the tool correctly. It lacks the scope rule and result-format expectations an agent needs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does not. 'In a column' weakly gestures at field_id, but neither parameter is named, the required collection_id scope is never explained, and the behavior when field_id is omitted is left completely undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence 'Groups records by the values they share in a column' gives a verb and resource, so the general idea of value-based grouping comes across. However, it never states that this is a read/retrieval operation scoped to a collection, nor does it distinguish it from the sibling save_relationships, which is the obvious counterpart. An agent could confuse it with a mutation that computes and stores groupings.

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 when-to-use guidance, no mention of prerequisites, and no reference to any alternative such as save_relationships or filter_collection. The agent must infer from the name alone that this reads existing relationships while save_relationships writes them.

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.