Skip to main content
Glama

Promote to customer

crm_promote_to_customer
Destructive

Create the core customer from a won account — the bridge from pursuit to trading. Won accounts only, at most once (CRM-8): a second customer for the same account would be a reconciliation problem wearing a convenience. Creation goes through core's API — one logged act marking where this area's job ends and order-to-cash begins. The account keeps its whole pursuit history; the customer starts clean. Effects: core customer created; account.customer_id linked.

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": {
      "account_id": "<account_id>"
    },
    "name": "crm_promote_to_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoBilling email.
termsNoPayment terms for the new customer: immediate, or netN for N days (net7, net15, net30, net60).
account_idYesThe won account. An existing account id.
credit_limitNoOpening credit limit. 0 (or omitted) means prepay only — a real position, not a missing value. In cents (integer minor units) — 1250 means $12.50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the one-time invariant, the reconciliation consequence of a second customer, that creation happens through core's API, and the resulting account.customer_id link. It does not explicitly discuss failure modes or reinforce the destructiveHint, but the key behavioral constraints are clear.

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?

The purpose is front-loaded, followed by the key constraint and effects. Some phrasing is more literary than operational, such as the reconciliation metaphor, but the structure remains clear.

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 four-parameter mutation tool with rich schema descriptions and annotations, the description covers purpose, precondition, uniqueness, API path, and side effects. It could say more about the response or failure behavior, but it is sufficient for correct invocation.

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 parameters are already well documented. The description reinforces that account_id must be a won account, but adds no meaning for email, terms, or credit_limit beyond the schema.

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?

The description states a specific verb and resource: create the core customer from a won account. It distinguishes this from a generic customer creation by framing it as the bridge from pursuit to trading and by naming the won-account precondition.

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?

It gives explicit usage constraints: won accounts only and at most once. It does not name a specific alternative tool for creating customers outside the won-account path, so it stops short of full when-to-use routing.

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.