Skip to main content
Glama
rush-db

RushDB MCP Server

Official
by rush-db

findRelationships

Read-only

Discover and traverse relationships between records in RushDB to trace multi-hop paths or filter relationship edges by type, labels, and properties. Use for graph queries; use record search for metrics.

Instructions

Discover and traverse relationships between records. Use this tool in two scenarios: (1) Multi-hop path discovery — fetch a sample record ID, then call findRelationships with source.where or target.where containing that ID to reveal adjacent labels; repeat to trace the full path before building a nested findRecords where clause. (2) Edge filtering — where applies to relationship type/properties; use source/target for endpoint record predicates. Does NOT support select or groupBy — use findRecords for metrics/analytics across related labels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skipNoNumber of relationships to skip
limitNoMaximum number of relationships to return
whereNoRelationship-edge predicates. `type` filters the relationship type; other fields filter relationship properties.
sourceNoOptional source endpoint filter: labels and/or record-scoped where predicates.
targetNoOptional target endpoint filter: labels and/or record-scoped where predicates.
orderByNoSorting configuration: key = field, value = asc|desc

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
relationshipsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.1

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds real behavioral context beyond that: where applies to relationship edges while source/target scope endpoint records, and the no-select/groupBy limitation. It stops short of describing result shape or pagination semantics, hence a 4 rather than 5.

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 operation is front-loaded ('Discover and traverse relationships between records') before the two scenarios, and each clause carries actionable content rather than filler. It is dense and slightly long but no sentence is redundant.

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?

With an output schema present, the description is not obligated to explain return values, and the schema covers all six parameters. What remains — when to use this versus findRecords, how to chain it for multi-hop traversal, and the select/groupBy exclusion — is precisely what the structured fields cannot express, and it is all present.

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 description coverage is 100% with defaults on skip/limit, so the structured fields already carry most semantics. The description still adds value by disambiguating the edge-level 'where' from the endpoint-level source.where/target.where and by showing how source.where is used with a sample record ID in practice, which the schema does not convey.

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 ('Discover and traverse relationships between records') and immediately frames the two modes of operation. It also names the sibling it is not (findRecords) so an agent can separate this from the analytics/query tools without opening a schema.

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

Usage Guidelines5/5

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

Explicitly enumerates two scenarios (multi-hop path discovery and edge filtering), gives the procedure for the first (fetch a sample ID, filter source.where/target.where, repeat, then build a nested findRecords clause), and states a negative constraint: no select/groupBy, use findRecords for metrics. This is explicit when/when-not/alternative guidance.

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