Skip to main content
Glama

Check for an existing contact

check_contact_duplicate
Read-only

Call before create_contact. sure are contacts already holding this email, phone or LinkedIn — add to them instead of creating. possible share only a name and company: ask the user. A shared inbox (careers@, hr@) is never proof. Sales, managers and admins.

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": "check_contact_duplicate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWith companyId, finds same-name contacts there.
emailNoAn email to look for.
phoneNoA phone, any format; +92 300… and 0300… match.
linkedinNoA LinkedIn profile link.
companyIdNoThe company to look for the name at.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, non-mutating check, so the bar is lower. The description still adds real value: the `sure` vs `possible` confidence split and the shared-inbox caveat are behaviors not present in the annotations. It stops short of disclosing whether results are paginated or how many matches come back.

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?

Dense and front-loaded — the trigger condition comes first, then the branch semantics, then the caveat. The closing fragment 'Sales, managers and admins.' is dangling and its referent (audience? required roles?) is unclear, which is the only real structural weakness.

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 no output schema, the description carries the job of explaining return values and does so via the `sure`/`possible` taxonomy. For a 5-parameter, all-optional, read-only lookup tool that is largely sufficient; only the ambiguous trailing permissions fragment leaves a gap.

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 a 3 is the baseline, but the description goes further by mapping match keys to confidence tiers: email/phone/LinkedIn yield `sure`, while name plus company only yields `possible`. That tells the agent how to interpret name/companyId results in a way the schema alone does not.

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 concrete verb and resource ('check_contact_duplicate' semantics) and frames it against the sibling it must precede: 'Call before create_contact.' It also names the two result buckets (`sure` / `possible`), so the agent knows exactly what the tool produces and why it exists.

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?

Explicit sequencing rule ('Call before create_contact'), an explicit action for each branch ('add to them instead of creating' vs 'ask the user'), and an exclusion rule ('A shared inbox (careers@, hr@) is never proof'). This is close to a complete decision procedure.

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