Skip to main content
Glama

Add a contact

create_contact
Destructive

Add a customer or lead by phone number. If someone with that number already exists, their name, email, and details are updated instead. This does not message them. Ask the user to confirm before calling this tool.

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_number": "<phone_number>"
    },
    "name": "create_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFull name
emailNoEmail address
sms_consentNotrue only if the person agreed to receive texts, for example on a web form
phone_numberYesContact's phone number, E.164 (+14155550123)
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.
sms_consent_sourceNoWhere they agreed, for example "website_form"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already disclose readOnlyHint=false, destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the write/one-way nature is structured data. The description nonetheless earns credit by adding the overwrite semantics of existing name/email/details, the confirmation requirement, and the fact that no message is sent. Those are real additions, but the return format and whether the callback reports an update versus a create are unstated.

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

Conciseness5/5

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

Three short sentences, front-loaded with the primary action, then the upsert caveat, then the safety instruction. No sentence is filler and the ordering matches how an agent would need the information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, side effects, and the confirmation requirement for a 6-parameter write tool with no output schema. It does not describe what the agent gets back or how to tell whether a contact was created or updated, which matters for a destructive-marked upsert.

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 description coverage is 100%, so the baseline is 3. The description adds the one piece of meaning the schema only implies: phone_number is the dedupe key that decides insert versus update. The other five parameters (sms_consent, workspace_id, etc.) get no treatment in the prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb and resource ("Add a customer or lead by phone number") plus the upsert rule ("If someone with that number already exists, their name, email, and details are updated instead") makes the scope unambiguous. It never names sibling tools like get_contact or update_contact, so the agent must infer the boundary from the upsert sentence rather than being told directly.

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?

Gives a clear precondition ("Ask the user to confirm before calling this tool") and a negative guarantee ("This does not message them") that shapes safe use. It still leaves implicit the choice between this tool and update_contact when the contact is already known to exist.

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