Skip to main content
Glama

crud_search

Read-only

Searches or lists objects of one type in the current domain. Inputs: object_type, optional filters / filter, sort, limit, offset, tenant. Returns matching rows. System types: project, tenant, user_account, api_key, connector, audit_log, schema_registry, client_sdk, connector_execution, connector_plugin; domain types vary per domain (schema_list shows them).

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": {
      "object_type": "<object_type>"
    },
    "name": "crud_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOptional sort: a field name ('amount', or '-amount' for descending), {"field": "amount", "order": "desc"}, or a list of those.
limitNoMax results (default: 100, max 1000)
filterNoOptional boolean filter tree for and/or/not logic, e.g. {"op": "or", "conditions": [{"status": "open"}, {"amount": {"gt": 500}}]}. Use `filters` for simple AND-ed conditions.
offsetNoSkip N results for pagination
tenantNoOptional tenant name to scope the search to (multi-tenant apps: verify a specific named tenant's data). Omit for single-tenant apps — the session/API-key tenant is used.
filtersNoFilter criteria keyed by field. A plain value is equality (e.g. {"status": "active"}); an object of operators compares (e.g. {"amount": {"gte": 10, "lt": 100}}). Operators: eq, ne, gt, gte, lt, lte, in, not_in, between, contains, starts_with, ends_with, regex, exists.
object_typeYesThe object type to search (e.g. 'customer', 'project', 'tenant', 'connector')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / detail
      Removed value: -{
      -  "description": "Include full object data (default: true)",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / filter
      Added value: +{
      +  "description": "Optional boolean filter tree for and/or/not logic, e.g. {\"op\": \"or\", \"conditions\": [{\"status\": \"open\"}, {\"amount\": {\"gt\": 500}}]}. Use `filters` for simple AND-ed conditions.",
      +  "type": "object"
      +}
    • changedInput schema / properties / filters / description
      Previous value: -"Filter criteria as key-value pairs (e.g. {\"status\": \"active\"})"New value: +"Filter criteria keyed by field. A plain value is equality (e.g. {\"status\": \"active\"}); an object of operators compares (e.g. {\"amount\": {\"gte\": 10, \"lt\": 100}}). Operators: eq, ne, gt, gte, lt, lte, in, not_in, between, contains, starts_with, ends_with, regex, exists."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default: 100)"New value: +"Max results (default: 100, max 1000)"
    • addedInput schema / properties / sort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "object"
      +    },
      +    {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Optional sort: a field name ('amount', or '-amount' for descending), {\"field\": \"amount\", \"order\": \"desc\"}, or a list of those."
      +}
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds the domain-scoping context (system types vs. per-domain types) and states it returns matching rows, but says nothing about pagination defaults, result ordering, or what happens on an unknown object_type beyond what the schema already lists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose statement is front-loaded and the whole text is short. However, the 'Inputs: ...' sentence largely restates parameter names already fully documented in the schema and earns little space, and the type enumeration is a run-on list appended without structure.

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 seven parameters, nested filter objects and no output schema, the description is adequate but thin: the 'returns matching rows' line is the only return information, and the interplay between 'filters' and 'filter' is left entirely to the schema. The pointer to schema_list for domain types is the strongest completeness contribution.

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 already carries its own documentation including operator lists, sort formats and limit bounds. The description merely enumerates the parameter names ('object_type, optional filters / filter, sort, limit, offset, tenant') without adding any syntax or precedence guidance, so it does not exceed the baseline.

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 opens with a specific verb and resource: 'Searches or lists objects of one type in the current domain.' An agent can immediately tell this is the generic read/list tool for a given object type. It does not, however, explicitly distinguish itself from crud_get or schema_list, so sibling selection still requires inference.

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 implied by 'searches or lists ... of one type', and the pointer that domain types vary per domain and that schema_list shows them gives a useful adjacent step. There is no explicit when-to-use-this-vs-crud_get statement and no exclusion guidance for the alternatives in the toolset.

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.