Skip to main content
Glama
MSPbotsAI

chargebee-mcp

by MSPbotsAI

chargebee_cancel_subscription

Cancel a subscription immediately, at term end, or on a specified date, with configurable credits and unbilled charges handling.

Instructions

Cancel a subscription (account).

    API: POST /subscriptions/{subscription-id}/cancel_for_items

    Args:
        subscription_id: The subscription's unique ID.
        cancel_option: "immediately", "end_of_term", or "specific_date".
        end_of_term: Shorthand for cancel_option="end_of_term" (legacy field, kept for compatibility).
        cancel_at: Unix timestamp (seconds) — required when cancel_option="specific_date".
        cancel_reason_code: A reason code configured in your Chargebee site for this cancellation.
        credit_option_for_current_term_charges: "prorate", "full", or "none" —
            how to credit unused charges for the current term.
        unbilled_charges_option: "invoice", "delete", or "carry_forward" — how
            to handle unbilled usage charges.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cancel_atNo
end_of_termNo
cancel_optionNo
subscription_idYes
cancel_reason_codeNo
unbilled_charges_optionNo
credit_option_for_current_term_chargesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing side effects. It does not state that cancellation is irreversible, affects billing, or requires specific permissions. The API endpoint and parameter details imply a write operation, but the actual consequences of cancelling a subscription are not explicitly described.

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 well-structured with a summary, API reference, and an args list. Every line adds value, including the legacy note for end_of_term. It is appropriately sized for a tool with 7 parameters and is front-loaded with the core purpose.

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 parameter documentation is thorough, and an output schema exists (so return values are covered elsewhere). However, the description lacks usage context (when to cancel vs retrieve) and behavioral consequences, which are critical for a mutating tool. It is complete enough for basic invocation but not for fully informed decision-making.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully explain parameters. It provides detailed semantics for all 7 parameters, including enum-like values for cancel_option, credit_option_for_current_term_charges, and unbilled_charges_option, plus the relationship between cancel_at and cancel_option='specific_date'. This far exceeds minimal requirements.

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 'Cancel a subscription' with a specific verb and resource, and it distinguishes itself from sibling tools like retrieve/list by indicating a mutating action. The API endpoint further reinforces the purpose.

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 is provided on when to use this tool versus alternatives (e.g., retrieve_subscription for reading). The description only states what it does, not the context in which cancellation is appropriate or any preconditions.

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/MSPbotsAI/chargebee-mcp'

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