Skip to main content
Glama

find_by_phone

Read-only

Wer gehoert zu dieser Rufnummer? Der Alltagsfall ist nicht 'durchsuche Leads', sondern 'es hat jemand angerufen, wer war das'. Sucht ueber leads.phone/best_phone/fax, contacts, accounts und die Anrufhistorie — FORMAT-UNABHAENGIG: verglichen werden die letzten neun Ziffern, weshalb '+49 (0) 176 12345678', '0176 12345678' und '004917612345678' einander finden. list_leads({search}) kann das nicht, weil es gegen die gespeicherte Schreibweise vergleicht. Steht statt einer Nummer ein NAME da (keine Ziffer), sucht es nach dem Namen in Leads und Kontakten (confidence 'by_name') — fuer Namen ist list_leads({search}) aber der direktere Weg. GESTUFT, und die Stufe steht in der Antwort: 'certain' = dieselbe Nummer (exakt oder nur andere Vorwahlschreibweise), 'likely' = die Eingabe ist ein TEIL einer gespeicherten Nummer, 'suspicion' = unscharf, 'none' = geprueft und nicht gefunden. EIN 'suspicion'-TREFFER DARF NIE AUTOMATISCH VERWENDET WERDEN: bei Telefonnummern ist ein Unterschied von einer Ziffer normalerweise kein Tippfehler, sondern ein anderer Mensch — im Bestand liegen '0911 123-451' und '0911 123452' als zwei verschiedene Personen derselben Firma. Jeder unscharfe Treffer kommt deshalb mit stored_value und distance, damit ein Mensch hinsehen kann. Formuliere daraus 'koennte X sein, gespeichert ist …', niemals 'das war X'. fuzzy ist Opt-in und wird nur gebraucht, wenn die sichere Suche leer bleibt. Bei unbekannter Nummer sagt call_history, wie oft sie schon angerufen hat — eine Nummer, die zum sechsten Mal anruft, ist etwas anderes als eine, die zum ersten Mal anruft.

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": {
      "phone": "<phone>"
    },
    "name": "find_by_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
fuzzyNoStufe 4 zuschalten (Levenshtein). Default false. Liefert nur Verdachtsfaelle zur Sichtpruefung.
phoneYesDie Rufnummer in beliebiger Schreibweise, z. B. '0176 98765432' oder '+4917698765432'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Well beyond the readOnlyHint/openWorldHint annotations: it discloses last-nine-digit normalization, the four confidence tiers and what each means, that the tier appears in the response, that fuzzy hits carry stored_value and distance, and a strong operational warning never to auto-use a 'suspicion' hit. This is exactly the behavior an agent could not infer from annotations or schema.

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?

Long but front-loaded: the core question and the everyday scenario come first, then differentiation, then the confidence model, then the fuzzy caveat. Nearly every sentence carries decision-relevant information; the name-fallback passage is the only part that could be tightened without losing guidance.

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?

Without an output schema, the description still tells the agent what comes back (confidence tier, stored_value, distance) and how to phrase results to a human. Together with the staged-confidence rules and the call_history tie-in, nothing needed to invoke or interpret the tool correctly is missing.

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 already 100%, yet the description still adds meaning: phone is matched format-independently on the last nine digits (with concrete examples of equivalent spellings), and fuzzy is Levenshtein-based opt-in that returns only suspicion cases. It does not restate the schema but explains the matching semantics behind the arguments.

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?

Opens with the concrete question it answers ('Wer gehoert zu dieser Rufnummer?') and names the exact fields searched (leads.phone/best_phone/fax, contacts, accounts, Anrufhistorie). It explicitly separates itself from sibling list_leads({search}) and states why that tool cannot do this job.

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 the real-world trigger up front ('es hat jemand angerufen, wer war das'), names the alternative for names ('fuer Namen ist list_leads({search}) aber der direktere Weg'), and constrains fuzzy as opt-in to be used only when the safe search returns empty. When-to-use, when-not, and the alternative are all explicit.

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.