Skip to main content
Glama

Search customers

search_customers
Read-onlyIdempotent

Search the active brand's CRM by name, email or phone. Enter 2–100 characters; returns matching customer records.

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
limitNoNumber of matching customers to return, from 1 to 100.
queryYesCustomer name, email address, or phone number to find, from 2 to 100 characters.
brandIdNoBrand ID. Defaults to active brand.

Output Schema

NameRequiredDescriptionDefault
itemsYesThe rows returned by this list operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "items": {
      +      "description": "The rows returned by this list operation.",
      +      "items": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "first_name": {
      +                "description": "Customer first name."
      +              },
      +              "id": {
      +                "description": "Customer identifier."
      +              },
      +              "last_name": {
      +                "description": "Customer last name."
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": [
      +              "array",
      +              "string",
      +              "number",
      +              "boolean",
      +              "null"
      +            ]
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, non-destructive, closed-world search. The description adds the active-brand scoping and the 2–100 character input constraint, but does not add much beyond that, and the presence of an output schema removes the need to explain return values.

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 compact sentences, with the search scope front-loaded and the input constraint stated immediately after. There is no redundant or filler wording.

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 simple read-only search with full schema coverage, annotations and an output schema, the description supplies the essential scope and input constraint. It is nearly complete, with only explicit sibling-alternative guidance 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%, so the query, limit and brandId parameters are already fully documented in the input schema. The description restates the query range and lookup semantics but adds no meaning beyond what the schema provides, making the baseline 3 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?

The description names a specific verb (search) and resource (the active brand's CRM customer records), and states the lookup keys (name, email, phone). It is clear enough to distinguish a lookup search from a by-ID retrieval like get_customer, though it does not name that sibling explicitly.

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 context is implied: use it to find customers by name, email or phone within the active brand. There is no explicit when-not guidance and no mention of using get_customer instead when an exact ID is already known, leaving the agent to infer the boundary.

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