Skip to main content
Glama

Search Contacts

contacts_search
Read-onlyIdempotent

Search contacts by name, email, phone number, or organization to find a specific person's contact details.

Instructions

Search contacts by name, email, phone number, or organization. Use when: finding a specific person's contact details by name or email

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return
queryYesSearch term
scopeNoWhere to search: all, name, email, phone, organizationall
offsetNoNumber of results to skip for pagination
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable textjson

Output Schema

NameRequiredDescriptionDefault
countYes
itemsYes
totalYes
offsetYes
has_moreYes
next_offsetNo
truncation_messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds nothing behavioral beyond that — no note on matching semantics (prefix vs substring), result ordering, or pagination behavior with limit/offset. With annotations doing all the work, the description contributes almost no extra context.

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 sentences, front-loaded with the searchable fields followed by the usage trigger; no filler or redundant restatement. Every clause carries information.

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?

With a full output schema, complete parameter descriptions, and annotations covering the safety profile, the definition supplies enough for correct invocation. The remaining gap is search semantics and sibling disambiguation (fuzzy search vs contacts_get/contacts_list), which an agent would have to guess.

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 every parameter including the scope enum and response_format is already documented in the schema. The description's mention of name/email/phone/organization loosely mirrors the scope enum but adds no syntax, matching, or pagination detail beyond what the schema provides. 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?

The description gives a specific verb and resource ("Search contacts") plus the fields searched (name, email, phone, organization), which is far more informative than a tautology. It doesn't explicitly contrast with siblings like contacts_get or contacts_list, so an agent must infer that this is the fuzzy-lookup tool versus the ID lookup or enumeration tools.

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?

"Use when: finding a specific person's contact details by name or email" gives a clear positive trigger. It lacks exclusions or alternatives — it never says to use contacts_get when you already have an ID, or contacts_list to browse all contacts — so the routing guidance is contextual but incomplete.

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