Skip to main content
Glama

add_subscription_rate_plan_charge

Add a rate plan charge to a subscription, specifying pricing model, billing cycle, tax status, and charge tiers for one-time, recurring, or usage charges.

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 discloses key behaviors: it is a POST (creating), notes required fields, highlights conditional requirements for billingPeriodAlignment/specificBillingPeriod when chargeType is recurring, and explains special handling of the weight parameter (multiplied by 100). Missing side effects or error conditions, but covers substantial behavioral details.

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

Conciseness3/5

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

The description is a single dense paragraph. It front-loads the purpose but becomes a run-on list of requirements. While efficient, it lacks structure (e.g., bullet points) and could be slightly more concise. Still, every sentence adds value.

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?

The tool has 17 parameters, no output schema, and complex constraints. The description thoroughly covers input requirements and conditional fields, but fails to mention return values, success/failure indicators, or error handling. This is a notable gap for a creation tool with no output schema.

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 baseline is 3. The description adds meaningful context beyond schema: grouping required fields, explaining the weight conversion, and clarifying the chargeTier array structure. This extra information helps the agent understand parameter usage beyond the schema descriptors.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 provides the POST endpoint. It lists the purpose and required fields, but does not explicitly differentiate from sibling tools like `create_product_rate_plan_charge` which might be confused.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives (e.g., `add_subscription_rate_plan` or `create_product_rate_plan_charge`). It does not state prerequisites or when not to use it, leaving the agent without decision support among many related tools.

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