Skip to main content
Glama

find_customer

Read-onlyIdempotent

Locate customer accounts by email or name, including partial or fuzzy matches, and return each account’s ID, order count, and net spend so admins can resolve ambiguous matches.

Instructions

Find customer accounts by email or name (substring or fuzzy). Returns each match with its id, order count and net spend. Several people can share a name: when more than one account matches, do not guess which one is meant; ask the admin (an email address settles it).

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": "find_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many matches to return.
queryYesAn email (full or partial) or a name, e.g. "maya@example.com".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/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 adds value beyond that by disclosing the return payload (id, order count, net spend) and the multi-match ambiguity behavior, which no structured field conveys.

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?

Three sentences, front-loaded with the lookup behavior, then the return shape, then the edge-case rule. Nothing is redundant and the most important constraint lands last as an actionable instruction.

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?

With only two parameters, full schema coverage, and no output schema, the description covers what an agent needs: matching modes, returned fields, and how to resolve ambiguity. Nothing material is missing for a read-only lookup.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds matching semantics the schema lacks: query accepts email or name and matches by substring or fuzzy logic. The limit parameter is left entirely to the schema, which is acceptable given its full description.

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 gives a specific verb and resource ("Find customer accounts") plus the matching modes (email or name, substring or fuzzy) and the fields returned. It never names get_customer, so an agent must infer that the id-based sibling is the alternative, which keeps this just short of a 5.

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?

It gives clear usage context for the ambiguous-match case: when several accounts match a name, do not guess, ask the admin and settle it with an email. It does not state when to prefer a sibling such as get_customer over this lookup, so the alternative-selection guidance is incomplete.

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