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.

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. Added
  4. Removed
  5. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety and idempotency are covered by structured data. The description adds the useful fact that the search hits a live external channel and that the result is intended as a precursor to a write. It says nothing about what happens when zero or multiple matches come back, or about rate limits on live lookups.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, but the contacts.sync handoff is stated twice ('before calling contacts.sync' and 'use contacts.sync afterwards to actually add them'), and the add-before framing is repeated in the opening sentence. Tightening would remove roughly a third of the text without losing meaning.

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 four-parameter read-only lookup with no output schema and rich annotations, the description covers purpose, ordering relative to contacts.sync, and the main sibling confusion. Remaining gap is the result behavior (single match vs. multiple candidates), which an agent would want when the lookup returns several people with the same name.

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 each parameter already has a description, so the baseline is 3. The description only echoes the query kinds (username, phone) already listed in the schema and adds no new semantics for channel, in_workspace, or from_account_id.

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?

States a specific verb and resource ('Search for a contact on a live channel') plus the scoping constraint that it is a lookup, not a write. It explicitly distinguishes itself from two alternatives, contacts.sync (the add step) and group_discovery, so an agent can route 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?

Gives an explicit trigger (asking to add or find a specific person by @username or phone) and an explicit sequencing rule (run this, then contacts.sync to actually add). It also names a non-target ('not group_discovery'), which is the exclusion most likely to be confused with this tool.

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.

Resources