Skip to main content
Glama

add_subscription_rate_plan_charge

Add a rate plan charge to a subscription, defining pricing tiers, charge model, billing cycle, and charge type for recurring, one-time, or usage fees.

Instructions

Add a rate plan charge to a subscription rate plan. POST .../rateplan-charges. Required: subscriptionId, ratePlanId, quantity, name, category (physical|digital), chargeModel (flatFeePricing|perUnitPricing|tieredPricing|volumePricing), billCycleType (chargeTriggerDay|defaultFromCustomer|specificDayOfMonth|specificDayOfWeek|specificMonthOfYear|subscriptionStartDay|subscriptionFreeTrial), chargeTier array (each: currency, price required; optional startingUnit, endingUnit, priceFormat, tier), chargeType (oneTime|recurring|usage), endDateCondition (subscriptionEnd|fixedPeriod), taxable (boolean), weight. When chargeType is recurring, billingPeriodAlignment and specificBillingPeriod are also required. Optional: productRatePlanChargeId, billingPeriod, billingTiming.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subscriptionIdYesSubscription ID (required)
ratePlanIdYesSubscription rate plan ID (required)
quantityYesQuantity (required)
nameYesCharge name (required)
categoryYesRequired. physical or digital
chargeModelYesRequired. flatFeePricing|perUnitPricing|tieredPricing|volumePricing
billCycleTypeYesRequired. chargeTriggerDay|defaultFromCustomer|specificDayOfMonth|specificDayOfWeek|specificMonthOfYear|subscriptionStartDay|subscriptionFreeTrial
chargeTierYesRequired. Array of tiers: currency (required), price (required, e.g. cents), optional startingUnit, endingUnit, priceFormat, tier
chargeTypeYesRequired. oneTime|recurring|usage
endDateConditionYesRequired. subscriptionEnd or fixedPeriod
taxableYesRequired. Whether the charge is taxable
weightYesRequired. Weight or null. Numeric values are converted to integer by multiplying by 100 (e.g. 32.75 -> 3275).
productRatePlanChargeIdNoProduct rate plan charge ID to reference
billingPeriodNoday, week, month, year
billingTimingNoinAdvance, inArrears
billingPeriodAlignmentNoRequired when chargeType is recurring. Valid values: alignToCharge, alignToSubscriptionStart, alignToTermStart
specificBillingPeriodNoRequired when chargeType is recurring
Behavior4/5

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

With no annotations, the description carries the burden of disclosing behavior. It indicates the operation is a POST (mutation), lists required and conditional fields, and notes a specific transformation (weight multiplied by 100). It does not mention side effects, authorization, or rate limits, but covers essential behavioral aspects adequately.

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 moderately long but efficiently organized: action, endpoint, required fields, conditional rules. It is front-loaded with the purpose. A slight improvement could be grouping fields or providing an example, but it remains clear and to-the-point.

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 17 parameters, the description covers required and conditional fields. However, it does not explain the return value (e.g., the created charge object) or provide examples. For a complex creation tool, mentioning response format or expected outcome would improve completeness.

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 description coverage is 100%, so baseline is 3. The description adds: weight conversion detail, conditional requirement for billingPeriodAlignment and specificBillingPeriod when chargeType is recurring, and inline enumeration of valid values. This exceeds baseline by providing extra meaning.

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 action ('Add a rate plan charge to a subscription rate plan') and includes the endpoint. It distinguishes this tool from siblings like add_subscription_rate_plan and remove_subscription_rate_plan_charge by specifying it adds a charge, not a plan or other entity.

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 fields and conditional requirements (e.g., when chargeType is recurring). However, it does not explicitly state when to use this tool versus alternatives like update or remove, nor does it provide exclusions or prerequisites beyond parameters.

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