Skip to main content
Glama

Create a ProAbono customer (write)

create_customer

Create or update a ProAbono customer using your app's user reference. Provision at sign-up or first login to enable hosted pages and rights checks.

Instructions

WRITE. Creates a ProAbono customer in the configured Segment, keyed by the reference the merchant's application uses for the logged-in user. The endpoint is an upsert on that reference: if a customer with it already exists, this updates them instead of failing. Provisioning the customer early -- at sign-up or first login -- is the recommended path, because the hosted pages and the rights read both need the customer to exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoInternal name, shown in the BackOffice.
emailNoThe customer's email address.
languageNoISO 639 language code, e.g. "en".
metadataNoFree key/value pairs stored on the record. At most 5 keys, 450 characters per value.
customer_refYesShared reference, derived from the application's user identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It clearly marks the operation as a write and explains the upsert semantics, which is critical behavior. However, it doesn't address authorization requirements, reversibility, or what happens to existing fields on update, leaving some gaps.

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 description is efficiently structured, starting with a 'WRITE.' marker, then the core purpose, then the upsert detail, then the recommendation. Every sentence adds value and the key information is front-loaded. It is a bit longer than minimal but remains focused.

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 tool with 5 parameters, no output schema, and no annotations, the description covers the essential context: the upsert nature, the recommended usage timing, and the dependency on hosted pages. It doesn't describe the return value, but that's often not needed for calling. The description plus schema 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 coverage is 100%, with all parameters already described in the schema. The description adds context about the customer_ref being derived from the application's user identifier (already in schema) and mentions the Segment, but doesn't enhance parameter meaning 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 ('Creates'), resource ('ProAbono customer'), and context ('in the configured Segment, keyed by the reference'). It also distinguishes itself from update_customer by explicitly noting the upsert behavior, making the tool's role clear even without inspecting siblings.

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 provides a clear recommendation for when to use the tool ('at sign-up or first login') and explains why (hosted pages and rights read need the customer). It implies this is the primary write path by describing the upsert behavior, though it doesn't explicitly name alternatives like update_customer.

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