Skip to main content
Glama

contacts_discover

Read-onlyIdempotent

Search for a contact on a live channel (Telegram, WhatsApp, etc.) before adding them. Use this to look up a person by username or phone number before calling contacts.sync. This is the right tool when asked to add or find a specific person by @username or phone (use contacts.sync afterwards to actually add them) — not group_discovery. On cvent it searches the attendees of the account's event by name or company ('*' for everyone, up to 100; narrow the query for more) and contacts.sync is not needed: each result's identifier is the recipient for messages.send. On viber, query is a phone number (+380...): it tells whether the number has Viber, without writing to it (one result if it does, none if not); the result's identifier is the recipient for messages.send.

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>",
      "channel": "<channel>"
    },
    "name": "contacts_discover"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesUsername, phone, or name to search for
channelYesChannel name: telegram, whatsapp, etc.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
from_account_idNoWhich of the workspace's accounts on this channel runs the search (channels.list gives the ids). OMIT and the platform picks one. The answer's account_id names the account actually used. An account outside this workspace is refused, never swapped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / from_account_id
      Added value: +{
      +  "description": "Which of the workspace's accounts on this channel runs the search (channels.list gives the ids). OMIT and the platform picks one. The answer's account_id names the account actually used. An account outside this workspace is refused, never swapped.",
      +  "type": "integer"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered; the description adds behavior beyond that: viber lookups do not write to the number and return one result or none, cvent caps results at 100 with a narrowing hint, and the returned identifier is the recipient for messages.send. These are concrete, channel-specific behavioral traits an agent could not derive from the annotations.

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?

Purpose and the sibling exclusion are front-loaded, and every channel branch carries information. There is mild redundancy between the opening sentence and the later "This is the right tool when asked to add or find a specific person by @username or phone," and the dense em-dash branching takes effort to parse, but no sentence is filler.

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 four parameters, no output schema, and annotations carrying the safety profile, the description covers the important ground: what is searched, what happens next, and how results are used. It only partially characterizes the returned object's fields beyond the identifier, which is the main remaining gap for a tool with no output schema.

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 goes further by defining what `query` means per channel: a username or phone, a name/company on cvent where '*' matches everyone, and a phone in +380 format on viber. The workspace and account parameters are left entirely to the schema, which already documents them thoroughly.

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 opens with a specific verb and resource ("Search for a contact on a live channel") and immediately bounds scope with "before adding them." It explicitly distinguishes itself from two siblings, group_discovery and contacts.sync, and spells out per-channel semantics (cvent attendee search, viber phone lookup), so an agent can identify the tool without opening the schema.

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 gives explicit sequencing guidance (use before contacts.sync to look up, then contacts.sync to add) and an explicit exception where the follow-up is unnecessary (cvent results are already message-ready recipients). It also names the tool it is not ("not group_discovery"), 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.