Skip to main content
Glama

Search Contacts

search_contacts
Read-onlyIdempotent

Find contacts by name, email, phone, or role and return matching people with their customer or organization details. Use it to look up a person and confirm their associated account.

Instructions

Search for contacts by name, email, phone, or role. Returns matching contacts with their customer/organization info. Use this when someone asks about a person by name.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return
queryYesSearch text (searches first name, last name, email, phone, role)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.5/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 adds the return shape (contacts plus customer/organization info), which is valuable given there is no output schema, but silent on matching semantics (prefix vs substring), ordering, and what a truncated result looks like.

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?

Three short sentences, front-loaded with the verb and searchable fields, then the return value, then the usage cue. No filler, though the usage sentence could be folded into the first to tighten the block.

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 two-parameter read-only search with full annotation coverage and no output schema, the definition covers what it searches, what comes back, and when to reach for it. Remaining gaps (matching behavior, result ordering) are minor for a simple lookup.

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 both parameters are already documented, including the exact field list for query. The description's field list merely restates the schema and adds nothing about limit, default 10, or the 50 maximum. Baseline 3 applies.

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 (contacts) plus the fields searched, and notes that results carry customer/organization info, which distinguishes it from search_customers without naming that sibling. Clear enough to pick between them, though the customer-side sibling is never explicitly contrasted.

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?

"Use this when someone asks about a person by name" gives a concrete trigger, but no when-not guidance and no mention of the obvious alternatives (search_customers for companies, get_customer, add_contact). The trigger also narrows to names while the tool itself covers email, phone, and role.

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