Skip to main content
Glama

Get a metric's relationships

get_relationships
Read-onlyIdempotent

One node of the GASP relationship graph (a metric, entity or concept) with its description, category and level and its direct edges, each neighbour with its edge type and description: upstream (edges into it), the metrics that measure it, downstream (edges out of it) and, for a metric, the entities it measures. For an entity it also lists every metric whose formula reads the entity's datasets, with department and URL. Edge types: drives, reduces, predicts, component and measures (metric signal); owns, grants, parent_of and priced_by (structural); converts_to (lifecycle); submits and engages_via (behavioral); manages, sources, serves and represented_by (assignment); generates, produces, contributes_to, incurs and belongs_to (generative). Metric names resolve as in lookup_metric; a metric outside the graph says so and a miss lists every node. Use infer_drivers or explain_path to walk more than one hop.

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

Input Schema

NameRequiredDescriptionDefault
metricYesMetric name, abbreviation or graph id (e.g. 'NRR', 'arr'), entity (e.g. 'customer', 'subscription') or concept (e.g. 'revenue', 'bookings'). Entity and concept names win over a metric with the same name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly and idempotent annotations, the description discloses meaningful behavior: what a node returns, how upstream/downstream and measurement edges differ, and what happens when a metric is outside the graph or misses entirely. The edge-type taxonomy adds useful semantic context that annotations cannot convey.

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 front-loaded with what the tool returns and remains dense rather than repetitive. The long edge-type enumeration is useful but makes the paragraph harder to scan. It earns its space overall, though a more structured presentation would improve readability.

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?

For a complex graph-lookup tool with no output schema, the description is complete: it covers return contents, edge semantics, resolution behavior, miss behavior, and multi-hop alternatives. Nothing an agent needs to invoke this correctly appears to be missing.

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?

Schema coverage is 100%, and the schema already documents that the metric parameter accepts a metric name, abbreviation, graph id, entity, or concept, including the precedence rule. The description adds only the cross-reference that names resolve as in lookup_metric. With the schema doing the heavy lifting, this is an appropriate baseline.

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 resource and scope: one node of the GASP relationship graph, including its direct upstream and downstream edges. It clearly distinguishes this from multi-hop tools by naming infer_drivers and explain_path. An agent can tell what this returns without opening the schema.

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?

The description gives a clear usage boundary by directing agents to infer_drivers or explain_path for walks longer than one hop. It also notes that metric names resolve as in lookup_metric. It does not explicitly say when to prefer this over lookup_metric or get_formula, but the single-hop scope is clear.

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.