Skip to main content
Glama

Search records

search_records
Read-only

Search records of a specific entity by keyword and filters, returning a paginated compact list with deep links for discovering matching items before fetching full details.

Instructions

Search records of one entity by keyword and/or filters. Returns a page of compact records with deepLinks. Use get_record for full details.

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

Input Schema

NameRequiredDescriptionDefault
ascNoAscending sort (default false when sortBy is set)
limitNoPage size (1-100)
queryNoKeywords matched (contains) against the entity text-search fields
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
languageNoLocale for multilingual fields, e.g. de_DE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful return-shape context ("a page of compact records with deepLinks"), which matters because there is no output schema, but it says nothing about pagination mechanics, result caps, or permission requirements.

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?

Two sentences, front-loaded with the core purpose, followed immediately by the pointer to get_record. Nothing is redundant or padded.

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?

For a nine-parameter search tool with no output schema, the description covers what comes back (compact records plus deepLinks) and where to go for full data. Remaining gaps around pagination behavior are mitigated by the schema's next_offset hint on the offset parameter.

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%, so every parameter (entity pattern, where filter types, select, limit/offset, sortBy, language) is already documented in the schema. The description adds no syntax or formatting detail beyond that, so the baseline 3 applies.

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 and resource ("Search records"), scopes it to "one entity", and specifies the two input modes (keyword and/or filters). The phrase "one entity" implicitly separates it from global_search, and naming get_record makes the boundary explicit.

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?

Explicitly routes the agent to get_record when full record details are needed, which is the key when-to-use decision for a compact search result. It does not spell out when to prefer global_search over this tool, but the single-entity scoping gives enough context to infer the split.

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