Skip to main content
Glama

Add Customer

add_customer

Create a new customer record for an organization or individual, with duplicate detection that returns conflict options and lets you bypass the check on retry.

Instructions

Create a new customer record. Customers are organizations or individuals that your business works with or is pursuing. If similar customers already exist, a conflict response is returned with options to use an existing record or create a new one. Pass skip_duplicate_check=true to bypass this on retry.

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": {
      "organization_name": "<organization_name>"
    },
    "name": "add_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoZIP code
cityNoCity
tagsNoTags for categorization, e.g. ['saas', 'enterprise']
notesNoGeneral notes about this customer
stateNo2-letter state code
websiteNoWebsite URL
address_line1NoStreet address
address_line2NoSuite, building, etc.
customer_typeNoType of customerother
customer_phaseNoLifecycle phase: prospect, lead, opportunity, customer, renewal, churned, or inactiveprospect
organization_nameYesName of the company, organization, or individual
skip_duplicate_checkNoSet true after conflict resolution to skip duplicate detection and create the customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare the generic write profile (not read-only, not idempotent, not destructive); the description adds the genuinely non-obvious fact that duplicate detection runs and can return a `conflict` payload with resolution options. It does not describe the successful return shape, but that is a modest gap for a create tool.

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?

Three short sentences, front-loaded with the action, then domain framing, then the edge-case behavior. The middle sentence defining customers is mild padding but supplies useful domain context; nothing else is wasted.

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 12-parameter mutation with no output schema, the description covers what is created and the one surprising response path (conflict + bypass). The remaining incompleteness is the success-response shape and where the new record's identifier comes from, which the agent cannot infer without an output schema.

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 schema already documents all 12 fields including skip_duplicate_check. The description restates that flag's purpose in the retry context but adds no other field-level meaning, so baseline 3 applies.

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?

Names a specific verb and resource ('Create a new customer record') and defines what a customer is, so the agent knows exactly what entity is produced. It does not explicitly differentiate itself from siblings like update_customer or add_contact, but the create semantics are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Provides conditional guidance for the duplicate-conflict path ('If similar customers already exist...') and the retry procedure via skip_duplicate_check. It stops short of telling the agent when to reach for search_customers or update_customer instead, leaving the create-vs-update choice implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools