Skip to main content
Glama

search_crm

Read-only

Find people or organisations with a combinable filter over all fields. filter = { all: [conditions], any: [conditions] } — every 'all' condition must match, and at least one 'any' condition if given. Condition = { field, op, value }: field is a column (e.g. city, created_at, retention_review_at), 'label', 'custom.' or 'organisation' (people: name or id of any linked organisation). Ops by kind — text: eq, neq, contains, not_contains, starts_with, in, empty, not_empty; number: eq, neq, gt, gte, lt, lte, between [a,b]; date: eq, gt, gte, lt, lte, between, last_days N, older_than_days N, next_days N, overdue; boolean: is_true, is_false; list (label, multiselect, organisation): has, has_all, has_none. Or pass saved_filter_id. Returns { total, rows } (rows with labels and custom fields; limit default 50, max 500; offset; sort {field, desc}) or with ids_only=true { total, ids } (up to 20000) for recipient lists and exports.

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_crm"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort order
limitNoMaximum number of entries to return
entityYescontacts | accounts
filterNoFilter { all: [conditions], any: [conditions] }, each condition { field, op, value }
offsetNoNumber of entries to skip (for paging)
ids_onlyNoReturn only { total, ids } (up to 20000), e.g. for recipient lists and exports
saved_filter_idNoID of the saved filter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / filter / description
      Added value: +"Filter { all: [conditions], any: [conditions] }, each condition { field, op, value }"
    • addedInput schema / properties / ids_only / description
      Added value: +"Return only { total, ids } (up to 20000), e.g. for recipient lists and exports"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
    • addedInput schema / properties / offset / description
      Added value: +"Number of entries to skip (for paging)"
    • addedInput schema / properties / saved_filter_id / description
      Added value: +"ID of the saved filter"
    • addedInput schema / properties / sort / description
      Added value: +"Sort order"
    • addedInput schema / properties / sort / properties / desc / description
      Added value: +"Sort in descending order"
    • addedInput schema / properties / sort / properties / field / description
      Added value: +"Field to sort by"
  2. First observed

TDQS

A4.5/5.0
Behavior4/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 real behavioral detail beyond that — default limit 50, max 500, ids_only capped at 20000, and the exact response shapes for both modes. It stops short of noting permission or cost implications of large ids_only queries, so it adds strong but not complete context.

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 filter semantics before the long op enumeration, and every clause carries usable information. The single dense paragraph and the dash-separated op lists make it harder to scan than necessary; the content earns its length, but the formatting does not.

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?

For a 7-parameter nested-filter search with no output schema, the description supplies exactly what is missing: return shapes for both modes, pagination knobs (limit/offset/sort), and the filter grammar. Nothing an agent needs to construct a correct call is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds substantial meaning: the boolean semantics of all vs any, the permissible field kinds (column, 'label', 'custom.<key>', 'organisation'), and the full op vocabulary segmented by field type (text, number, date, boolean, list) including constructs like between [a,b], last_days N, and has_all. An agent could compose valid filters from the description alone.

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?

Opens with a specific verb and resource: 'Find people or organisations with a combinable filter over all fields.' It goes further by naming the entity kinds (people/organisations), the filter shape, and the two return modes, so an agent can distinguish this search from sibling tools 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 Guidelines4/5

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

Gives clear in-tool routing: use the inline filter object, 'or pass saved_filter_id', and choose ids_only=true 'for recipient lists and exports' versus the default { total, rows }. That covers the main branch points, but it never states when this tool is preferable to the sibling search_* tools or describe_crm_filter_fields, so cross-tool selection is left implicit.

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.