Skip to main content
Glama

List related records

list_related_records
Read-only

Retrieve records linked to an entity through a specific relation, such as a Product's categories or files, with filtering, field selection, sorting, and paging to explore connected data.

Instructions

List records linked to a record through a relation, e.g. a Product's categories or files.

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": {
      "entity": "<entity>",
      "id": "<id>",
      "relation": "<relation>"
    },
    "name": "list_related_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRecord ID
ascNoAscending sort (default false when sortBy is set)
limitNoPage size (1-100)
whereNoAtroCore filter conditions, ANDed. Each item: {type, attribute, value}. Types: equals, notEquals, like (use % wildcards), in, notIn, isNull, isNotNull, greaterThan, lessThan, between, linkedWith, isTrue, isFalse, or, and. Example: [{"type":"equals","attribute":"status","value":"ready"}]. Add "isAttribute":true to filter by attribute ID.
entityYesEntity type, e.g. Product, Category, Brand, File. Use list_entities to discover.
offsetNoRecords to skip; use next_offset from the previous page
selectNoFields to return. Defaults to a compact set; see describe_entity.
sortByNoField to sort by
relationYesRelation name from describe_entity, e.g. categories

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is fully covered. The description adds no behavior beyond a restatement of purpose: nothing about pagination behavior, default page size, sort defaults, or what a returned collection looks like when the relation is empty.

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?

One sentence, front-loaded with the action and resource, with an example appended only where it clarifies the word "related." Nothing is wasted and nothing is buried.

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?

With nine parameters (three required), no output schema, and 100% schema coverage, the structured fields do most of the work. The description is still thin for a traversal tool: it doesn't say the results are of the related entity type, nor point at the offset/limit paging pattern the schema documents.

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 description coverage is 100% and each parameter, including where-filter types and next_offset paging, is documented inline. The description adds no meaning beyond the schema, which meets the baseline-3 expectation when the schema carries the load.

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 description gives a specific verb and resource ("List records linked to a record through a relation") plus concrete examples ("a Product's categories or files"). That is enough to separate it from get_record or search_records in spirit, though it never names a sibling or states the contrast explicitly.

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

Usage Guidelines3/5

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

Usage is only implied through the example of traversing a relation from a Product. It never says when to prefer this over search_records or get_record, nor what prerequisites exist (e.g. that the relation name must first come from describe_entity, which only the schema hints at).

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