Skip to main content
Glama

Search Customers

search_customers
Read-onlyIdempotent

Find customers by name, notes, city, state, tags, customer type, or lifecycle phase, returning matching summary info. Filter CRM records to locate accounts, leads, prospects, or partners.

Instructions

Search customers by name, notes, city, state, or tags. Returns matching customers with summary info.

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": {
      "query": "<query>"
    },
    "name": "search_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoConvenience filter for a single tag. Use `tags` for multiple.
tagsNoFilter to items carrying these tags. Combined per `tag_match` (default 'all': the item must carry every listed tag).
limitNoMax results to return
queryYesSearch text (searches organization name, notes, city, state)
tag_matchNoHow to combine `tags`: 'all' (item has every tag, default) or 'any' (item has at least one of them).
customer_typeNoFilter by customer type
customer_phaseNoFilter by lifecycle phase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description's one addition is that it returns 'summary info' rather than full records, hinting at get_customer for detail, but it says nothing about result caps, truncation, or what happens when no matches are found.

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 short sentences, front-loaded with the search surface and followed by the return shape. No filler wording to trim.

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 7-parameter read-only search tool with full schema coverage, complete annotations, and no output schema, the description covers purpose and rough return shape adequately. It is slightly thin on pagination and on the type/phase filters, but nothing essential to invoking it correctly is missing.

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%, including enum values and tag_match semantics, so the schema carries parameters fully. The description only restates the query field's searchable surface and adds no meaning beyond it for tag, limit, customer_type, or customer_phase. Baseline 3 is appropriate.

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?

States a specific verb (search) and resource (customers) plus the searchable fields (name, notes, city, state, tags), which is enough to distinguish it from get_customer or add_customer. It stops short of naming list_customers as the unfiltered alternative, so the boundary with that sibling is left implicit.

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 the word 'search' and the enumerated matchable fields, so an agent can infer this is the lookup-by-text tool. There is no explicit when-to-use vs. list_customers/search_contacts guidance and no statement of exclusions or prerequisites.

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

Deploy Server

Other Tools