Skip to main content
Glama

Create a contact

create_contact

Add a person to the CRM who has not called, chatted or filled in a form. Needs at least one of name, email or phone. IF THE EMAIL OR PHONE ALREADY BELONGS TO A CONTACT, NO NEW CONTACT IS CREATED: the existing one is returned with created=false. Whenever created is false, any identifier the existing contact was missing is filled in from what you sent, and so is a first or last name whose stored value is null; a name they already have is never overwritten, and their lifecycle stage is never touched. created is the ONLY field that tells you whether a person was added. matchedOn names the identifier this tool matched on when it can attribute the match, and is null otherwise — it is a hint, never the answer to "did this already exist". Worked examples: a new person gives created=true, matchedOn=null. An email that already belongs to someone gives created=false, matchedOn=email. Running it again with the same email or phone returns the same contact.

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

Input Schema

NameRequiredDescriptionDefault
emailNoEmail address
phoneNoPhone number, any format
last_nameNoLast name
first_nameNoFirst name
lifecycle_stageNoLifecycle stage; defaults to lead

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses dedup semantics (no new contact when email/phone matches), exactly what is and is not backfilled on the existing record, that a stored name is never overwritten and lifecycle stage is never touched, and that the operation is effectively idempotent on repeat calls. Annotations only say readOnlyHint=false and destructiveHint=false; the description supplies the mutation's real blast radius and safety guarantees.

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?

Front-loads purpose, then the dedup rule, then the return-field semantics, then worked examples — a logical progression with no filler. The ALL-CAPS emphasis and the redundant restatement that created is 'the ONLY field' make it slightly louder and longer than necessary.

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?

With no output schema, the description takes on the return-value burden and discharges it: created is the authoritative signal, matchedOn is explicitly labeled a hint, and worked examples cover both branches. Combined with the backfill rules, an agent has everything needed to call it and interpret the result.

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 adds a constraint the schema does not encode: at least one of name, email or phone is needed despite zero required parameters. It also clarifies that lifecycle_stage applies only to newly created contacts. It stops short of detailing formats beyond what the schema already says.

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 ('Add a person to the CRM') plus a narrowing scope ('who has not called, chatted or filled in a form'), which implicitly separates it from the lead-creation sibling. An agent can tell what this tool is for 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 Guidelines4/5

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

The scope clause ('has not called, chatted or filled in a form') gives a clear condition for choosing this tool over lead-oriented siblings, and the repeat-call note sets expectations for re-invocation. It never names an alternative tool or an explicit when-not-to-use rule, so it stops short of a 5.

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