Skip to main content
Glama

Search records

search_records
Read-only

Find records of one resource in a source's backup, whatever the system, highest source ID first, or largest first by order_by (ascending: true for smallest or oldest; empty values last). query matches a source ID as a prefix or a name holding every word; filters and order_by take the columns describe_resources lists. Answers the total that match and, when more remain, next_before_id to pass back as before_id (with order_by, raise limit instead). Each result's id is what get_record takes. For totals and counts use summarize_records instead of paging.

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": {
      "resource": "<resource>"
    },
    "name": "search_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 25, at most 200.
queryNo
filtersNoColumn filters, from the columns describe_resources lists for the resource: {"<column>": "value"}, {"<column>": ["one", "another"]}, {"<column>": {"contains": "acme"}}, {"<date column>": {"gte": "2026-04-01", "lte": "2026-06-30"}}, or "data.<Key>" for a top-level key of the record's document. Operators: eq, ne, in, not_in, gte, lte, contains, null.
order_byNoA number or date column describe_resources lists, to rank by.
resourceYesA resource key from describe_resources, e.g. invoices.
ascendingNo
before_idNoThe next_before_id a previous page answered.
connection_idNoOmit when only one of the company's sources holds the resource; list_connections names them.
modified_sinceNoISO 8601 time; only records the source changed since then.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / filters / properties
      Added value: +{}
  2. Changed1 schema field changed
    • changedInput schema / properties / filters / description
      Previous value: -"Column filters, from the columns describe_resources lists for the resource: {\"<column>\": \"value\"}, {\"<column>\": [\"one\", \"another\"]}, {\"<column>\": {\"contains\": \"acme\"}}, {\"<date column>\": {\"gte\": \"2026-04-01\", \"lte\": \"2026-06-30\"}}. Operators: eq, ne, in, not_in, gte, lte, contains, null."New value: +"Column filters, from the columns describe_resources lists for the resource: {\"<column>\": \"value\"}, {\"<column>\": [\"one\", \"another\"]}, {\"<column>\": {\"contains\": \"acme\"}}, {\"<date column>\": {\"gte\": \"2026-04-01\", \"lte\": \"2026-06-30\"}}, or \"data.<Key>\" for a top-level key of the record's document. Operators: eq, ne, in, not_in, gte, lte, contains, null."
  3. Changed2 schema fields changed
    • removedInput schema / properties / build_id
      Removed value: -{
      -  "description": "Omit when only one of the company's builds holds the resource; list_connections names them.",
      -  "type": "integer"
      -}
    • addedInput schema / properties / connection_id
      Added value: +{
      +  "description": "Omit when only one of the company's sources holds the resource; list_connections names them.",
      +  "type": "integer"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only cover safety (readOnly, non-destructive, non-idempotent, closed-world); the description adds real behavior: default ordering by source ID, order_by ranking with empty values last, and pagination mechanics via next_before_id/before_id or raising limit when order_by is used. It does not mention permissions, rate limits, or result size behavior beyond the limit default, so it stops short of full transparency.

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?

Front-loaded with purpose and ordering, then query semantics, then paging, then alternatives — a sensible priority order with no filler. It is a single dense run-on paragraph, though, and the parenthetical about empty values and the paging clause take a second read to parse.

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, the description still discloses the return shape (total matched, next_before_id, per-record id) and the paging contract for a 9-parameter tool with a nested filters object. What remains thin is the filters object itself, whose operator semantics are left entirely to the schema.

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 78%, and the description fills the notable gap: the undocumented `query` parameter is explained as an ID prefix match or a name containing every word, and `ascending` is given concrete meaning (smallest/oldest). It also explains the order_by/limit interaction, which the schema does not state; remaining params (modified_since, before_id) are already well documented in the schema.

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 opening clause names a specific verb and resource ('Find records of one resource in a source's backup') and immediately fixes the scope ('whatever the system'), which separates it from get_record (single record) and summarize_records (aggregates). An agent can tell what it does 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 Guidelines5/5

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

It routes the agent explicitly: 'For totals and counts use summarize_records instead of paging', 'Each result's id is what get_record takes', columns come from describe_resources, and connection_id is omitted when list_connections shows a single source. Both when-to-use and when-to-use-something-else are stated.

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