Skip to main content
Glama

create_customer_charge_credit

Add a charge or credit to a customer's account. Required inputs: amount in cents, type, currency ID, and category. Supports physical and digital items.

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?

No annotations are provided, so the description bears the full burden of disclosure. It explains that amount is in cents and weight is required for physical items, but it does not discuss side effects, authentication needs, rate limits, or return value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the action and endpoint. Every sentence provides essential information without 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 of 10 parameters and no output schema or annotations, the description is adequate but incomplete. It covers creation purpose and parameter details but misses return value, error handling, and idempotency.

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%, so the baseline is 3. The description adds value by emphasizing that amount is in integer cents and that weight is conditionally required, along with noting default values like qty=1.

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 tool creates a charge or credit for a customer, using the verb 'Create' and specifying the resource. It distinguishes from sibling tools like create_invoice or charge_invoice by its focus on customer-specific charges/credits.

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 lists required and optional parameters and notes that weight is required when category is physical, but it does not explicitly state when to use this tool versus alternatives such as charge_invoice or create_credit.

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