Skip to main content
Glama

Search contacts

search_contacts
Read-onlyIdempotent

Finds people in the phone address book. name and number are separate filters. Set either one, or both. A contact matches every filter that is set. Omit both to match every contact. A number matches saved numbers, including a national form of the same number. Returns names and phone numbers for one page. limit and offset are the page that was applied, and total is the full match count. include_shared_chats is optional. Set it to include each shared chat name and the last message.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional. Saved contact name, or part of a name. Omit it to leave the name filter off.
limitNoRows in this page. Default 10, maximum 25.
numberNoOptional. One phone number. Matches saved numbers, including a national form of the same number. Omit it to leave the number filter off.
offsetNoRows to skip before this page. The following page starts at offset plus count.
include_unverifiedNoDefault true. Set false to omit contacts that have no dialable number. Contacts with no dialable number and a number-only name sort last.
include_shared_chatsNoOptional. When true, each contact includes the shared chats on this seat, with the chat name and the last message. Omit it to return names and numbers only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_shared_chats
      Added value: +{
      +  "description": "Optional. When true, each contact includes the shared chats on this seat, with the chat name and the last message. Omit it to return names and numbers only.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / include_unverified
      Added value: +{
      +  "description": "Default true. Set false to omit contacts that have no dialable number. Contacts with no dialable number and a number-only name sort last.",
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Optional. Saved contact name, or part of a name. Omit it to leave the name filter off.",
      +  "type": "string"
      +}
    • addedInput schema / properties / number
      Added value: +{
      +  "description": "Optional. One phone number. Matches saved numbers, including a national form of the same number. Omit it to leave the number filter off.",
      +  "type": "string"
      +}
    • removedInput schema / properties / query
      Removed value: -{
      -  "description": "Optional. Name, part of a name, or one phone number. Omit it or leave it blank to match every contact.",
      -  "type": "string"
      -}
  4. Changed2 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Name, part of a name, or one phone number. Blank matches every contact."New value: +"Optional. Name, part of a name, or one phone number. Omit it or leave it blank to match every contact."
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
  5. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Rows in this page. Default 10, maximum 25."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Rows to skip before this page. The following page starts at offset plus count.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / query / description
      Added value: +"Name, part of a name, or one phone number. Blank matches every contact."
  6. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavior: national-form number matching, the pagination contract, and what include_shared_chats returns. It does not mention include_unverified, which affects which contacts appear, so a 3 reflects partial but not full behavioral disclosure.

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?

The purpose is front-loaded, and the short declarative sentences are easy to scan. The structure is slightly choppy, and the pagination sentence could be tighter, but no sentence is clearly wasted.

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?

There is no output schema, so the description must describe the return value; it does so by naming the returned fields, the page, and the total. The only gap is the omitted include_unverified behavior, which the schema covers, so the description is nearly complete for a six-parameter search tool.

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. The description still adds meaning beyond the schema by stating that filters combine with AND semantics and by explaining how limit and offset relate to the returned page and total. That is semantic value the schema does not supply on its own.

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 opens with a concrete verb and resource: 'Finds people in the phone address book.' That is unambiguous. It doesn't distinguish this tool from nearby siblings such as search_numbers or search_shared_chats, but the resource is specific enough that an agent can identify the right tool.

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 operating rules: set name, number, or both; every set filter must match; omit both to match everything. That is real usage guidance for the filter model. It stops short of naming alternatives or when-not-to-use cases, so it does not reach a 5.

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.