Skip to main content
Glama

create_customer

Creates a customer, checks VAT or organisation number against existing records to avoid duplicates, and returns matching accounts unless duplicates are allowed.

Instructions

Create a customer. Checks VAT / org number against every existing customer first and returns the existing account(s) instead, unless allow_duplicate=true. email = the customer's main e-mail address. EU companies: give the VAT number (drives reverse-charge VAT).

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": {
      "name": "<name>",
      "country_code": "<country_code>"
    },
    "name": "create_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
nameYes
emailNo
phoneNo
dry_runNo
address1No
address2No
currencyNo
zip_codeNo
vat_numberNo
country_codeYes
extra_fieldsNo
customer_typeNo
allow_duplicateNo
organisation_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It discloses a genuinely non-obvious side effect — the dedup check can return existing accounts instead of creating — plus the reverse-charge VAT implication, which is valuable. But it omits what dry_run does, whether creation is reversible/deletable, what permissions or validations apply, and what a failure or duplicate return looks like.

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 with the highest-value information (creation, dedup behavior, opt-out flag) front-loaded, and no filler. The VAT/email sentences are slightly fragmentary but each earns its place.

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

Completeness2/5

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

For a 15-parameter mutation tool with no annotations and no output schema, the description is thin: 12 parameters are undocumented and there is no statement about return values, error behavior, or the meaning of dry_run. The dedup disclosure is the strongest element but does not cover the tool's surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 15 parameters, so the description must compensate and largely does not. It explains only email, vat_number (motivated by reverse-charge VAT), and allow_duplicate; dry_run, customer_type, organisation_number, currency, country_code, extra_fields, and the address fields carry no meaning anywhere in the definition.

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?

Opens with a specific verb and resource ("Create a customer") and immediately adds the distinguishing behavior: VAT/org-number deduplication against all existing customers. It is clearly separable from get_customer/update_customer by verb alone, though it never names a sibling.

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?

Gives conditional guidance for one parameter ("unless allow_duplicate=true") and one scenario ("EU companies: give the VAT number"), which is real when-to guidance. It does not say when an agent should prefer update_customer over creating a duplicate, nor when dry_run should be used first, so usage is only partially covered.

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