Skip to main content
Glama

AI Phone Calls & AI Receptionist (OsmO)

Search Contacts

search_contacts
Read-only

Use this when someone the user wants to call or tag in a rule is not in the call history (find_contact found nobody), so their saved phone contacts are the next place to look. Searches the contacts synced from the user's phone by the start of a name (query) and returns up to limit matches (1 to 10, default 5), each with the name and the full number. No match returns an empty contacts list. The number found goes into place_call as phoneNumber, or into a rule's mentions.

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
limitNoHow many matches, 1 to 10; default 5.
queryYesThe start of the name, e.g. "Ravi".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"At most 10; default 5."New value: +"How many matches, 1 to 10; default 5."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses the data source, prefix matching, result limit/default, returned fields, and empty-result behavior. It also states downstream usage with place_call and rule mentions, which is useful behavioral 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?

The description is front-loaded with the usage condition, then moves cleanly into matching behavior, return shape, and downstream usage. It is appropriately sized with no filler.

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?

For a simple read-only search tool with no output schema, the description covers when to use it, how matching works, what is returned, what happens on no match, and how to use the result. No important gap remains.

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 coverage is 100%, and the schema already documents query as the start of a name and limit as 1 to 10 with default 5. The description reinforces these meanings but does not add substantial parameter detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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: it searches contacts synced from the user's phone by the start of a name. It also distinguishes the tool from find_contact and explains where the resulting number can be used.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this when find_contact found nobody and the user needs someone to call or tag. It names the alternative and the condition that selects it, leaving little to inference.

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.