Skip to main content
Glama

create_customer_charge_credit

Add charges or credits to customer accounts for subscription billing. Specify amount in cents, type (charge/credit), currency, and category (physical/digital) to process billing adjustments.

Instructions

Create a charge or credit for a customer. POST /customers/{customerId}/charges_credits. IMPORTANT: amount is in CENTS (e.g. 10000 = $100.00). Required: amount (integer, in cents), type (charge or credit), companyCurrencyId, category (physical or digital). Optional: description, qty (default 1), isFreeShipping, taxable, weight (required by API when category is physical).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerIdYesCustomer ID (required)
amountYesAmount in CENTS (required). Example: 1000 = $10.00, 500 = $5.00. Must be a positive integer.
descriptionNoDescription (max 200 chars)
typeYesType (required): charge or credit
companyCurrencyIdYesCompany currency ID (required, must be > 0)
categoryYesCategory (required): physical or digital
qtyNoQuantity (default 1)
isFreeShippingNoFree shipping
taxableNoWhether the line is taxable
weightNoWeight (required by API when category is physical)
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: the tool performs a write operation ('Create'), specifies the HTTP method (POST), and notes important constraints like amount in cents and weight requirements for physical categories. However, it does not mention permissions, rate limits, or error handling, leaving gaps for a mutation 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?

The description is front-loaded with the core purpose and key details (amount in cents, required parameters), followed by optional parameters. It avoids redundancy but includes some API-specific details (POST endpoint) that may not be essential for tool selection. Overall, it is efficient with minimal waste.

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

Completeness3/5

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

Given the complexity (10 parameters, mutation tool) and no annotations or output schema, the description is moderately complete. It covers the action, key constraints, and parameter roles, but lacks information on return values, error cases, or integration with sibling tools. This is adequate but has clear gaps for effective agent use.

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 parameters thoroughly. The description adds minimal value beyond the schema, such as emphasizing the amount in cents and noting default values (e.g., qty default 1). It does not provide additional syntax or format details, aligning with the baseline for high schema coverage.

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 clearly states the specific action ('Create a charge or credit for a customer'), identifies the resource ('customer'), and distinguishes it from siblings like 'charge_invoice' or 'list_customer_charges_credits' by focusing on creation rather than listing or invoicing. It explicitly mentions the HTTP method and endpoint, reinforcing the action.

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?

The description implies usage by specifying required and optional parameters, but does not explicitly state when to use this tool versus alternatives like 'charge_invoice' or 'create_invoice'. It provides context on parameter constraints (e.g., amount in cents, weight required for physical category) but lacks explicit guidance on scenarios or prerequisites.

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/rhinosaas/rebillia-mcp-server'

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