Skip to main content
Glama

Create a customer

createCustomer

Add a new customer profile with contact details, address, and coordinates. Sync customers from your CRM or intake flow to book job requests against their account.

Instructions

Create a customer

Creates a customer record — the client/account profile a job request (work order) is booked against; use it to import or sync customers from your own CRM, website lead form or intake flow. Address (street, city, postal_code, ...) and coordinates (latitude/longitude) live under the nested address object. service_area_id must be a valid service area UUID belonging to this business.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidNoYour external reference for this customer (your own system's ID). Optional; max 32 chars.
tierNoLoyalty tier. Defaults to "regular" if omitted.
emailNoEmail address. Optional, but at least one of phone/email is required.
phoneNoPhone number. Optional, but at least one of phone/email is required; 10–20 chars.
addressNoPostal address and coordinates.
full_nameYesCustomer's full name. Required; max 255 chars.
sms_opt_inNoSMS consent: set true ONLY when the customer explicitly agreed to receive SMS (e.g. ticked a non-pre-checked consent box, or gave verbal/written consent you keep a record of). SMS notifications are suppressed while false.
idempotency_keyNoUnique key making retries safe: a repeat send with the same key replays the original response (header Idempotent-Replayed: true) instead of re-running the operation. Reusing a key with a different body returns 422 IDEMPOTENCY_KEY_REUSE. (sent as the Idempotency-Key header)
service_area_idNoUUID of the service area for this customer. Must belong to this business.
preferred_technician_idNoUUID of the technician this customer prefers. Must belong to this business.
Behavior4/5

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

Consistent with annotations (write operation, not destructive). Adds details about address nesting and service_area_id validity, going beyond what annotations provide.

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?

Concise at 4 sentences, no fluff. Could be slightly more streamlined but effectively communicates key points.

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?

Adequately covers purpose, address nesting, and constraints. Lacks return value info but no output schema expected. Idempotency key handled by schema.

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%, but description adds value by explaining address structure and service_area_id requirement, beyond the schema descriptions.

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?

Clearly states it creates a customer record, identifying the resource and action. Distinguished from siblings like updateCustomer and listCustomers through context.

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?

Explicitly says to use for importing or syncing from CRM, lead forms, etc. Provides clear context but doesn't explicitly state when not to use (e.g., for updates).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crisphive/crisphive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server