Skip to main content
Glama
MSPbotsAI

chargebee-mcp

by MSPbotsAI

chargebee-mcp

Chargebee MCP Service — a stateless HTTP MCP server wrapping the Chargebee REST API v2 for account/customer management use cases (company records, personnel/contacts, subscription lookups, and financial reporting lookups).

Tech stack: Python 3.12 + uv + FastMCP (Starlette/Uvicorn)

When would an agent use this

Chargebee is MSPbots' own subscription billing/revenue platform. An agent should reach for this MCP for requests like:

  • "Look up this customer's billing account / create a new customer record" → chargebee_retrieve_customer / chargebee_create_customer

  • "Update this company's billing email or address" → chargebee_update_customer

  • "Who are the contacts under this account?" → chargebee_list_customer_contacts

  • "What subscription plan is this customer on, is it active?" → chargebee_list_subscriptions (filter by customer_id) or chargebee_retrieve_subscription

  • "Cancel this customer's subscription" → chargebee_cancel_subscription

  • "Pull this customer's recent invoices / did this transaction go through?" → chargebee_list_invoices (what was billed) / chargebee_list_transactions (whether payment settled)

Related MCP server: sherweb-mcp

Scope

Chargebee's official MCP Server offering (the "Data Lookup MCP Server") was evaluated first and found unsuitable as a replacement: it is read-only, covers roughly a dozen resource categories, and is missing Coupons, the Item/Item Price/Item Family product-catalog resources, and Upcoming Invoice Estimates entirely — none of which can be added on top of it. This service instead wraps the full Chargebee REST API directly.

Out of Chargebee's ~438 REST API operations across 77 resources, this service started at 30 tools selected for account/company/personnel/report management use cases, then was trimmed down to the 10 core tools below (user-confirmed reduction — dropped delete/merge/payment-role/hierarchy on customers, all contact write ops, subscription create/update/pause/resume/reactivate/term-end/scheduled-changes, all payment-source tools, and invoice-retrieve/credit-notes from reports):

Category

Count

Resources

Company (Customer)

4

create, retrieve, update, list

Personnel (Customer Contacts)

1

list contacts under a customer

Account (Subscription)

3

list, retrieve, cancel

Report (Invoices/Transactions)

2

list invoices, list transactions

Quick Start

# Install dependencies
cd D:\claude\project\chargebee-mcp
uv sync

# Run in stdio mode (for Claude Desktop)
$env:CHARGEBEE_SITE="your-site"
$env:CHARGEBEE_API_KEY="your_api_key"
uv run chargebee-mcp

Configuration

Copy .env.example to .env and fill in your values:

Variable

Default

Description

CHARGEBEE_SITE

Chargebee site name (the subdomain in https://{site}.chargebee.com)

CHARGEBEE_API_KEY

Chargebee API key

AUTH_MODE

gateway

gateway = site + API key per-request via headers (SOP-compliant); env = shared credentials from env vars (local dev only)

MCP_TRANSPORT

stdio

stdio (Claude Desktop) or http (gateway)

MCP_HTTP_PORT

8080

HTTP server port

Get your API key: Chargebee Billing → Settings → Configure Chargebee → API Keys and Webhooks → API Keys tab.

HEADER 授权参数说明

Gateway 模式下,每个请求必须携带以下两个 HTTP Header:

Header

类型

是否必填

默认值

枚举值

字段描述

Example

X-Chargebee-Site

string

Chargebee site 名称(即 https://{site}.chargebee.com 里的子域名部分)

acme-test

X-Chargebee-Api-Key

string

Chargebee API Key(Settings → Configure Chargebee → API Keys and Webhooks 页面生成),本服务用其作为 HTTP Basic Auth 的用户名、密码留空

test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Claude Desktop Setup

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "chargebee": {
      "command": "uv",
      "args": ["run", "--directory", "D:/claude/project/chargebee-mcp", "chargebee-mcp"],
      "env": {
        "CHARGEBEE_SITE": "your-site",
        "CHARGEBEE_API_KEY": "your_api_key"
      }
    }
  }
}

Transport Modes

stdio (Claude Desktop / CLI)

$env:CHARGEBEE_SITE="your-site"
$env:CHARGEBEE_API_KEY="your_api_key"
uv run chargebee-mcp

HTTP — single-tenant

$env:CHARGEBEE_SITE="your-site"
$env:CHARGEBEE_API_KEY="your_api_key"
$env:MCP_TRANSPORT="http"
$env:AUTH_MODE="env"
uv run chargebee-mcp

HTTP — gateway / multi-tenant

$env:MCP_TRANSPORT="http"
$env:AUTH_MODE="gateway"
uv run chargebee-mcp
# Each request must include: X-Chargebee-Site and X-Chargebee-Api-Key headers

Available Tools (10)

Company (Customer) — 4

Tool

Description

Parameters

chargebee_list_customers

List customers (companies)

limit, offset, include_deleted, filters (dict of Chargebee compound filter keys)

chargebee_create_customer

Create a customer (company)

first_name, last_name, email, company, phone, id, auto_collection, taxability, locale, meta_data, billing_address

chargebee_retrieve_customer

Retrieve a customer by ID

customer_id

chargebee_update_customer

Update a customer

customer_id, first_name, last_name, email, company, phone, auto_collection, taxability, locale, invoice_notes, meta_data

Personnel (Customer Contacts) — 1

Tool

Description

Parameters

chargebee_list_customer_contacts

List contacts under a customer

customer_id, limit, offset

Account (Subscription) — 3

Tool

Description

Parameters

chargebee_list_subscriptions

List subscriptions

limit, offset, include_deleted, filters

chargebee_retrieve_subscription

Retrieve a subscription by ID

subscription_id

chargebee_cancel_subscription

Cancel a subscription

subscription_id, cancel_option, end_of_term, cancel_at, cancel_reason_code, credit_option_for_current_term_charges, unbilled_charges_option

Report (Invoices / Transactions) — 2

Tool

Description

Parameters

chargebee_list_invoices

List invoices

limit, offset, include_deleted, filters

chargebee_list_transactions

List payment/refund transactions

limit, offset, include_deleted, filters

Filter parameters

Chargebee's list endpoints use compound filter query keys with an operator suffix, e.g. email[is]=a@b.com, created_at[after]=1700000000, status[in]=["active","paused"]. Rather than expanding every field × operator combination into separate function parameters, list tools accept an optional filters: dict[str, str] argument — pass the literal Chargebee query key (including the [operator] suffix) as the dict key. Supported fields per resource are documented in each tool's docstring; supported operators are [is], [is_not], [starts_with], [in], [not_in], [between], [after], [before], [on], [none], [is_present] (availability varies by field type — see Chargebee's filter documentation).

Request encoding

Chargebee's REST API uses application/x-www-form-urlencoded request bodies, not JSON. Nested object parameters (billing_address, meta_data) are accepted as plain Python dict and flattened server-side into Chargebee's bracket-notation form fields (billing_address[line1]=...) — see _flatten_form() in api_client.py. _flatten_form() also supports flattening lists and "array of hashes" fields (Chargebee's field[subfield][index]=value convention), but none of the current 10 tools take such a parameter — that code path is currently unexercised.

Known Gaps

  • Verified against a live Chargebee account. Using a real production API key + site: chargebee_list_customers, chargebee_retrieve_customer, chargebee_list_customer_contacts, chargebee_list_subscriptions, chargebee_list_invoices, and chargebee_list_transactions all returned real data (200) through the running service. Gateway 401 gating was re-confirmed with a fresh MCP session + an invalid API key (correctly rejected by Chargebee with api_authentication_invalid_key).

  • Write operations (chargebee_create_customer, chargebee_update_customer, chargebee_cancel_subscription) have not been exercised end-to-end — only verified structurally (schema, request construction). This was a deliberate choice during self-test: the only available credentials are for MSPbots' own live production Chargebee site, and mutating real billing/subscription data to self-test was avoided. If write-path verification is needed, test against a Chargebee test site (not a live/production API key).

  • Nested fields (billing_address, meta_data) are accepted as generic dict rather than fully-typed sub-schemas — callers must know Chargebee's field names for these substructures (documented in each tool's docstring where practical, otherwise see the Chargebee API reference).

  • List-endpoint filters are not expanded into named parameters (see "Filter parameters" above) — this keeps the tool count/signature size manageable but pushes filter-key correctness onto the caller.

  • Scope is limited to the 10 operations above (company/personnel/account/report management, user-trimmed down from an initial 30). Everything else — Coupons, Items/Item Prices/Item Families, Estimates, Orders, Payment Sources, Credit Notes, subscription create/update/pause/resume/reactivate, customer delete/merge/hierarchy, contact write ops, etc. — is out of scope per user-confirmed selection.

API Reference

Available Tools

10 tools
chargebee_cancel_subscriptionA

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.
    
ParametersJSON 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

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.6/5.0
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.

chargebee_create_customerA

Create a customer (company).

    API: POST /customers

    Args:
        first_name: Customer's first name.
        last_name: Customer's last name.
        email: Customer's email address.
        company: Company name.
        phone: Phone number.
        id: Optional custom customer ID (auto-generated if omitted).
        auto_collection: "on" or "off" — whether invoices are auto-collected.
        taxability: "taxable" or "exempt".
        locale: Customer's locale (e.g. "en", "fr-CA").
        meta_data: Arbitrary key-value metadata dict.
        billing_address: Billing address fields, e.g. {"line1": "...",
            "city": "...", "state": "...", "zip": "...", "country": "US"}.
    
ParametersJSON Schema
NameRequiredDescriptionDefault
idNo
emailNo
phoneNo
localeNo
companyNo
last_nameNo
meta_dataNo
first_nameNo
taxabilityNo
auto_collectionNo
billing_addressNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the API endpoint, auto-generated id behavior, and allowed values for auto_collection/taxability, but does not mention permissions, error handling, or side effects beyond creation.

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?

Concise docstring with front-loaded purpose, API line, and one line per parameter. Every sentence adds value; no redundancy.

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

Completeness4/5

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

Covers all parameters and provides the API endpoint, but lacks usage guidance and behavioral details like auth or idempotency. Since an output schema exists, return values are not required, making it mostly complete for its complexity.

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 coverage is 0%, and the description compensates by defining all 11 parameters, including allowed values for auto_collection and taxability, an example for billing_address, and the optional/auto-generated behavior of id.

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?

Clearly states 'Create a customer (company)' with a specific verb and resource. The API endpoint 'POST /customers' reinforces the action, and the tool is distinct from sibling tools like retrieve/update/list.

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 does not explicitly state when to use this tool vs alternatives, but the verb 'Create' implies the use case for new customer creation. No exclusions or alternative recommendations are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_list_customer_contactsA

List the contacts (personnel) associated with a customer (company).

    API: GET /customers/{customer-id}/contacts

    Args:
        customer_id: The customer's unique ID.
        limit: Max results per page (1-100, default 10).
        offset: Pagination cursor from a previous response's next_offset.
    
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
customer_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It clearly indicates a read operation ('List') and includes the API endpoint (GET), which is helpful. However, it does not disclose potential issues like error handling, authentication requirements, or exact response structure beyond pagination, leaving some behavioral ambiguity.

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 concise and well-structured: a one-sentence purpose, the API endpoint, and a compact Args list. Every sentence adds value with no redundancy or fluff.

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

Completeness4/5

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

For a simple list tool with an output schema, the description is fairly complete: it covers purpose, API endpoint, and all parameters. It does not explain return values (unnecessary due to output schema), but lacks details on edge cases like invalid customer_id or empty results, which prevents a perfect score.

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?

With zero coverage in the schema, the description's Args section fully compensates by explaining each parameter: customer_id as 'unique ID', limit with range (1-100) and default, and offset as a 'pagination cursor from previous response's next_offset'. This adds significant meaning beyond the schema's types and defaults.

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 lists contacts (personnel) for a customer, using a specific verb and resource. This distinguishes it from sibling tools like chargebee_list_customers (which lists customers) and chargebee_retrieve_customer (which retrieves a single customer).

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 purpose implicitly indicates when to use this tool (when you need contacts of a specific customer), but it does not explicitly mention alternatives or exclusions. There is no guidance on choosing between this and chargebee_retrieve_customer if the agent needs full customer details, so usage context is implied but not fully articulated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_list_customersA

List customers (companies).

    API: GET /customers

    Args:
        limit: Max results per page (1-100, default 10).
        offset: Pagination cursor from a previous response's next_offset.
        include_deleted: Include deleted customers in the results.
        filters: Optional Chargebee compound filter fields, passed through
            as literal query keys, e.g. {"email[is]": "a@b.com",
            "company[is]": "Acme", "created_at[after]": "1700000000"}.
            Supported fields: id, first_name, last_name, email, company,
            phone, auto_collection, taxability, created_at, updated_at,
            offline_payment_method, auto_close_invoices, channel,
            business_entity_id, relationship. Supported operators vary by
            field type: [is], [is_not], [starts_with], [in], [not_in],
            [between], [after], [before], [on], [none], [is_present].
    
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNo
include_deletedNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It thoroughly explains pagination via offset, the include_deleted flag, and the complex filter syntax including supported fields and operators. This provides substantial behavioral transparency beyond the basic 'list' semantics, and it is clearly a read-only operation.

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 structured and front-loaded with the core purpose, followed by parameter explanations. While lengthy, every section is necessary to document the flexible filtering and pagination. It could be slightly condensed, but it remains efficient.

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

Completeness5/5

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

Given the tool's complexity and the presence of an output schema, the description covers all necessary usage aspects: API endpoint, pagination, filtering fields and operators. It does not need to document return values because the output schema exists. The description is complete for an agent to invoke the tool correctly.

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?

The schema has zero descriptions, so the description must compensate. It does so effectively by explaining limit's range and default, offset as a pagination cursor, include_deleted, and the entire filter structure with examples and supported operators. This adds significant meaning beyond the raw schema.

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 'List customers (companies)' with the API endpoint GET /customers. This distinguishes it from sibling tools like retrieve/create/update customers, and specifies that customers are companies.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool: it is the list operation for customers, with pagination and filtering options. It does not explicitly mention alternatives or exclusions, but the sibling tools are distinct (retrieve, create, update), so the usage is evident.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_list_invoicesA

List invoices.

    API: GET /invoices

    Args:
        limit: Max results per page (1-100, default 10).
        offset: Pagination cursor from a previous response's next_offset.
        include_deleted: Include deleted invoices in the results.
        filters: Optional Chargebee compound filter fields, passed through
            as literal query keys, e.g. {"customer_id[is]": "cus123",
            "status[in]": "[\"paid\",\"payment_due\"]",
            "date[after]": "1700000000"}. Supported fields: id,
            subscription_id, customer_id, recurring, status, price_type,
            date, paid_at, total, amount_paid, amount_adjusted,
            credits_applied, amount_due, dunning_status, payment_owner,
            updated_at, channel, voided_at, void_reason_code, exclude,
            einvoice. Supported operators vary by field type: [is],
            [is_not], [in], [not_in], [between], [after], [before], [on],
            [none], [is_present].
    
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNo
include_deletedNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It details pagination via limit and offset, includes include_deleted behavior, and thoroughly explains the filter syntax including supported fields and operators. It does not mention rate limits or authorization, but for a read-only list operation, the disclosed behavior is substantial and non-contradictory.

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 well-structured: a one-line purpose, the endpoint, then a bulleted Args list. The filter details are lengthy but necessary for correct usage. It is front-loaded with the core 'List invoices' statement. Minor redundancy with the schema (e.g., limit default) is acceptable given the low schema coverage.

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

Completeness5/5

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

Given the tool's complexity (filtering with many fields/operators), the description fully covers all parameters, pagination mechanics, and filter behavior. An output schema exists, so return-value details are not required. The description is sufficient for an agent to invoke the tool correctly with minimal missing context.

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 compensate—it does. Each parameter (limit, offset, include_deleted, filters) is explicitly described with defaults, types, and even a JSON example for filters. The filter field and operator lists provide far more meaning than the bare schema properties, which only specify types and defaults.

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 opens with 'List invoices'—a specific verb and resource. It clearly distinguishes from sibling tools like list_subscriptions and list_transactions by naming invoices as the target. The API endpoint reinforces the purpose without ambiguity.

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 does not explicitly state when to use this tool over alternatives, nor does it mention exclusions or sibling tools. It implies usage through the resource name, but lacks direct guidance like 'Use this for invoice history' or 'For transactions, use chargebee_list_transactions.' This is a neutral, minimal usage signal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_list_subscriptionsA

List subscriptions (accounts).

    API: GET /subscriptions

    Args:
        limit: Max results per page (1-100, default 10).
        offset: Pagination cursor from a previous response's next_offset.
        include_deleted: Include deleted subscriptions in the results.
        filters: Optional Chargebee compound filter fields, passed through
            as literal query keys, e.g. {"customer_id[is]": "cus123",
            "status[in]": "[\"active\",\"non_renewing\"]"}. Supported
            fields: id, customer_id, item_id, item_price_id, status,
            cancel_reason, cancel_reason_code, remaining_billing_cycles,
            created_at, activated_at, next_billing_at, cancelled_at,
            has_scheduled_changes, updated_at, offline_payment_method,
            auto_close_invoices, override_relationship,
            business_entity_id, channel, decommissioned. Supported
            operators vary by field type: [is], [is_not], [in], [not_in],
            [between], [after], [before], [on], [none], [is_present].
    
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNo
include_deletedNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: pagination via limit and offset, include_deleted flag, and a thorough explanation of filters including supported fields and operators. It also mentions the API endpoint. This is a high level of transparency for a read operation.

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-organized: a concise purpose line, the API endpoint, then each argument with clear formatting. The filter details are lengthy but necessary, and there is no redundancy. Every sentence contributes useful information.

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

Completeness5/5

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

The tool has 4 optional parameters including a complex filter object, and no annotations. The description covers all invocation needs, including parameter semantics and behavior. An output schema exists, so return values are not required in the description. The only minor gap is usage guidance, already scored separately.

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 coverage is 0%, but the description adds substantial meaning to each parameter: limit's range and default, offset as a pagination cursor from next_offset, include_deleted's effect, and filters with examples and detailed supported fields/operators. This goes far beyond the basic schema types.

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 'List subscriptions (accounts).' with a specific verb and resource. It distinguishes from siblings like retrieve_subscription (singular) and cancel_subscription by indicating a listing operation for multiple subscriptions.

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?

The description provides no guidance on when to use this tool versus alternatives such as retrieve_subscription or cancel_subscription. It mentions no prerequisites, exclusions, or comparison with other tools, relying solely on the implied purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_list_transactionsA

List payment/refund transactions.

    API: GET /transactions

    Args:
        limit: Max results per page (1-100, default 10).
        offset: Pagination cursor from a previous response's next_offset.
        include_deleted: Include deleted transactions in the results.
        filters: Optional Chargebee compound filter fields, passed through
            as literal query keys, e.g. {"customer_id[is]": "cus123",
            "type[is]": "payment", "date[after]": "1700000000"}. Supported
            fields: id, customer_id, subscription_id, payment_source_id,
            payment_method, gateway, gateway_account_id, id_at_gateway,
            reference_number, type, date, amount, amount_capturable,
            status, updated_at. Supported operators vary by field type:
            [is], [is_not], [in], [not_in], [between], [after], [before],
            [on], [none], [is_present].
    
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNo
include_deletedNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and discloses the API endpoint, pagination via offset and next_offset, the option to include deleted transactions, and detailed filter semantics. This goes beyond a simple 'list' and provides expectations around read-only behavior and pagination.

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 one-sentence summary, API endpoint, and a clear Args list. Every sentence provides necessary detail, especially for the complex filter syntax, without redundancy. It is appropriately front-loaded.

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

Completeness5/5

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

Despite the complexity, the description covers all necessary aspects: pagination behavior, filtering fields and operators, inclusion of deleted records, and param defaults. An output schema exists, so return values are documented externally. The description fully supports invocation without missing crucial information.

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%, but the description comprehensively explains each parameter: limit with range and default, offset as a cursor, include_deleted as a boolean, and filters with supported field types and operators. The filters section adds substantial meaning beyond the schema's bare property definitions.

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 states 'List payment/refund transactions' with a specific verb and resource, clearly distinguishing it from sibling tools that list customers, subscriptions, or invoices. It also specifies the API 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 when a list of transactions is needed, but it does not explicitly provide guidance on when to use this tool versus alternatives like chargebee_list_invoices. No when-not-to-use or alternative tooling is mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_retrieve_customerA

Retrieve a customer (company) by ID.

    API: GET /customers/{customer-id}

    Args:
        customer_id: The customer's unique ID.
    
ParametersJSON Schema
NameRequiredDescriptionDefault
customer_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description must convey behavioral traits. It explicitly states this is a GET operation, signaling a safe read. It does not detail error cases, authentication, or return format, but for a simple retrieval the GET disclosure is a minimal yet adequate transparency step.

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 extremely concise with zero wasted words. It includes the API endpoint, a single argument definition, and nothing else. Perfectly front-loaded and easy to scan.

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

Completeness4/5

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

For a simple single-parameter retrieve tool with an output schema, the description covers the essential purpose and parameter. It doesn't explain return values, but the output schema handles that. The API endpoint adds useful context. It would benefit from noting possible errors, but overall complete for its simplicity.

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 coverage is 0%, so the description must compensate. It describes customer_id as 'The customer's unique ID', which adds meaning beyond the schema's bare 'Customer Id' label. However, this is still minimal; it doesn't clarify formats, examples, or how to find the ID.

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 retrieves a customer by ID, using the specific verb 'Retrieve' and resource 'customer'. It distinguishes itself from siblings like list, create, and update customers.

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

Usage Guidelines4/5

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

The description clearly implies use when you have a customer ID and need that specific customer's details. It doesn't explicitly mention alternatives, but the singular 'by ID' naturally contrasts with listing or creating. The API endpoint reinforces the targeted retrieval context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_retrieve_subscriptionA

Retrieve a subscription (account) by ID.

    API: GET /subscriptions/{subscription-id}

    Args:
        subscription_id: The subscription's unique ID.
    
ParametersJSON Schema
NameRequiredDescriptionDefault
subscription_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description must convey behavior. It specifies the HTTP GET method, which strongly implies a read-only, non-destructive operation. It does not disclose error handling, response format, or access requirements, but the GET method plus 'retrieve' gives a safe profile.

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 concise and front-loaded with the main action, then includes only the API endpoint and a single parameter explanation. No unnecessary words or redundancy.

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

Completeness4/5

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

Given the tool's simplicity (one parameter, output schema exists), the description provides the essential purpose and parameter semantics. Return values are covered by the output schema, so no need to detail them. It lacks explicit usage exclusions, but that is a guidance issue handled in dimension 2.

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?

The schema has no description for the subscription_id parameter (0% coverage), but the description compensates by explaining it as 'The subscription's unique ID.' This adds meaning beyond the schema's type and title.

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 'Retrieve a subscription (account) by ID' with a specific verb and resource. It distinguishes from siblings like list_subscriptions (list) and cancel_subscription (mutation) by focusing on retrieval of a single subscription.

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?

Usage is implied: use when you have a subscription ID and need its details. However, there is no explicit comparison with alternatives like list_subscriptions or retrieve_customer, nor guidance on when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chargebee_update_customerA

Update a customer (company).

    API: POST /customers/{customer-id}

    Args:
        customer_id: The customer's unique ID.
        first_name: Customer's first name.
        last_name: Customer's last name.
        email: Customer's email address.
        company: Company name.
        phone: Phone number.
        auto_collection: "on" or "off".
        taxability: "taxable" or "exempt".
        locale: Customer's locale.
        invoice_notes: Default notes shown on the customer's invoices.
        meta_data: Arbitrary key-value metadata dict.
    
ParametersJSON Schema
NameRequiredDescriptionDefault
emailNo
phoneNo
localeNo
companyNo
last_nameNo
meta_dataNo
first_nameNo
taxabilityNo
customer_idYes
invoice_notesNo
auto_collectionNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are present, so the description must disclose behavioral details. It provides the API method and endpoint but does not explain whether the update is partial or full, idempotency, permission requirements, or potential side effects. This leaves significant behavioral ambiguity.

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 docstring-style layout is efficient for 11 parameters, starting with the core purpose and API endpoint. It avoids unnecessary fluff but is somewhat formulaic in repeating each argument on its own line; still appropriately sized.

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 description covers all parameters and the endpoint, but lacks behavioral context such as update semantics, usage guidelines, and any caveats. With an output schema present, return values are not needed, but the missing behavioral and usage guidance leaves the tool only partially complete.

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?

Every parameter receives a concise semantic definition in the description, far exceeding the bare schema types. It adds concrete meaning such as allowed values for auto_collection and taxability, and the purpose of invoice_notes and meta_data, which the schema lacks entirely.

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 'Update a customer' and specifies the API endpoint, making the action unambiguous. It distinguishes from sibling tools like retrieve, list, and create by focusing on modification.

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?

Usage is implied from 'Update a customer,' but no explicit guidance is given on when to use this tool versus alternatives, nor are exclusions or prerequisites mentioned. The context of modifying an existing customer is understood but not spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 10 tool updatesv0.1.0
    • First observedchargebee_cancel_subscription
    • First observedchargebee_create_customer
    • First observedchargebee_list_customer_contacts
    • First observedchargebee_list_customers
    • First observedchargebee_list_invoices
    • First observedchargebee_list_subscriptions
    • First observedchargebee_list_transactions
    • First observedchargebee_retrieve_customer
    • First observedchargebee_retrieve_subscription
    • First observedchargebee_update_customer

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: customer CRUD, customer contacts, subscription list/retrieve/cancel, invoice list, and transaction list. There is no overlap or ambiguity between tool purposes.

Naming Consistency5/5

All tools follow a consistent 'chargebee_verb_noun' pattern with snake_case (e.g., chargebee_list_customers, chargebee_retrieve_subscription). The naming is uniform and predictable across the entire set.

Tool Count5/5

With 10 tools, the server is well-scoped for a billing-focused API. Each tool covers a meaningful operation without excessive fragmentation or unnecessary bloat.

Completeness3/5

The tool set thoroughly covers customer management and read operations for subscriptions, invoices, and transactions. However, it lacks subscription creation/update and invoice-level actions, which are notable gaps for a billing server's lifecycle.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    MCP server for Sherweb Partner API - distributor billing, service provider management, customer subscriptions, and payable charges
    12
    Apache 2.0
  • A
    license
    B
    quality
    C
    maintenance
    MCP server for the DataGate billing platform API, providing read-only tools to manage customers, invoices, products, agreements, sites, and payments.
    13
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    This is an MCP server for the BillingServ API. Once it's set up, your AI assistant can look up customers, invoices, orders, packages, and reports straight from your BillingServ installation
    3
    375
    MIT

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