Zenskar MCP Server
OfficialThis server provides a comprehensive MCP interface to the Zenskar billing platform, letting you manage customers, contracts, invoicing, payments, accounting, products, plans, entitlements, billable metrics, and more.
Customers & Contacts: CRUD operations, search/filter, addresses, payment methods, tax info, custom data.
Contracts: Create, read, update, delete (draft only), amend with phases/pricing, pause/resume/expire, view amendments, extract contract data from raw text via AI.
Invoices: List, get by ID/external ID, generate (requires billing cycles), approve, void, delete (draft), download, preview HTML, line items, summary, tags, payment links, auto-charge, credit notes.
Payments: Record manual/offline payments, tax withheld amounts, list all payments (incl. refunds), update allocations, delete/edit manual payments, refund (full/partial).
Credit Notes: List, get by ID, create against invoices.
Products & Pricing: CRUD for products, list/get pricing configs, create pricing (per-unit, flat, tiered, etc.).
Plans (Templates): List, get, create reusable contract templates with phased pricing.
Entitlements: Full CRUD with types, units, product association.
Billable Metrics & Usage Events: CRUD for aggregates (billable metrics), schemas, estimates, logs; ingest usage events (single/bulk), list/get usage event definitions.
Accounting: Chart of accounts, GL account management, journal entries and lines, balance sheet, income statement, account balances, revenue recognition, revenue postings.
Business Entities: List, get, create, update.
Custom Attributes & Tax: Define custom attribute schemas and tax categories.
Jobs: List and check async job status (invoice generation, revenue recognition).
Other: Get customer portal configuration, current date/time.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zenskar MCP Server Show me my recent customers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Zenskar MCP Server
MCP server for the Zenskar API. 115 tools covering customers, contracts, invoices, payments, credit notes, accounting, products, plans, entitlements, billable metrics, and more.
What it does
Customers: list, search, create, update, delete, addresses, contacts, payment methods
Contracts: create, read, update, delete, amend, add phases and pricing, pause/resume, expire
Invoices: list, get, approve, void, generate, credit notes, download
Payments: create, edit, refund, delete, auto-charge
Credit notes: list, create against invoice, get by ID
Accounting: chart of accounts, journal entries and lines, balance sheet, income statement, account balances
Products: CRUD, pricing configurations
Plans: list, create, add products, preview estimates
Entitlements: list, get, create, update, delete
Billable metrics (aggregates): list, get, create, update, delete, schemas, estimates, logs
Business entities: list, get, create, update
Jobs: monitor async operations
Custom attributes and tax categories
Multi-tenant, supports Bearer token and API key auth
Related MCP server: QuickBooks Online MCP Server
Prerequisites
Before continuing, you need two things:
Node.js 20.10 or newer on your machine
Zenskar credentials — your Organization ID and an API Key
Node.js
Check whether it's already installed. Open a terminal and run:
node --version
npm --versionThis project requires Node.js 20.10 or newer. If both commands print a version that meets this, jump to Zenskar credentials.
If you see command not found or a version older than 20.10, download and install the LTS build from https://nodejs.org/en/download. npm (and npx) ship with Node.js — no separate install needed. After installing, open a new terminal window and re-run node --version to confirm.
Zenskar credentials
You need two values from your Zenskar dashboard. Grab both before moving to Installation.
Organization ID — open https://app.zenskar.com/settings (General tab) and copy your Organization ID.
API Key — open https://app.zenskar.com/settings?tab=api-keys, click Create new API key, give it a name, and copy the key.
Store the API key somewhere safe — the dashboard only shows the full key once. If you lose it, you'll have to create a new one.
Installation
For Claude Desktop App
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"zenskar": {
"command": "npx",
"args": ["mcp-zenskar"],
"env": {
"ZENSKAR_ORGANIZATION": "your-org-id",
"ZENSKAR_API_KEY": "your-api-key"
}
}
}
}You can omit one or both environment variables from the config, but the server will error until Claude supplies them in a tool call. Keeping them in the env block prevents repeated credential prompts.
For Other AI Applications
Install globally:
npm install -g mcp-zenskarOr run directly:
npx mcp-zenskarAuthentication
Every request needs:
Organization ID — set via
ZENSKAR_ORGANIZATIONAPI Key — set via
ZENSKAR_API_KEY
See Zenskar credentials above for how to get both.
At runtime the server reads these env vars (or accepts them from the MCP client via tool invocation).
Advanced: bearer tokens
Same session token from your browser devtools is also accepted via ZENSKAR_AUTH_TOKEN (sent as Authorization: Bearer ...). Short-lived — API key is preferred for any non-throwaway use. Kept for backward compatibility, so existing configs that use ZENSKAR_AUTH_TOKEN continue to work unchanged.
Usage
In Claude Desktop
Once configured, you can ask Claude to interact with your Zenskar data:
"Show me my recent customers"
"Find the contract for Acme Corp and add a $500/month add-on phase"
"Create a $25 credit note against the latest invoice for customer X"
"Show me the balance sheet and income statement"
"List all products and their pricing configurations"
"Record a $1000 successful manual payment or tax withheld amount against invoice Y"Available Tools
Customers
Tool | Description |
| List customers with search, filtering, and pagination |
| Get a customer by ID |
| Create a customer with address and tax info |
| Update customer details (partial update) |
| Permanently delete a customer by ID (only allowed when they have no active contracts or unpaid invoices) |
Contacts
Tool | Description |
| List contacts with pagination |
| Get a contact by ID |
| Create a contact for a customer |
| Update a contact's details |
| Delete a contact by ID |
Contracts
Tool | Description |
| List contracts with filtering by status, customer, dates |
| Get a contract with phases, pricings, and customer details |
| Create a contract with phases and pricing |
| Update contract terms, status, pricing, or renewal policy |
| Delete a draft contract |
| Get amendment history for a contract |
| Add a phase to a contract (add-ons, expansions) |
| Add pricing to a contract phase |
| Expire an active contract |
| Pause an active contract from a given start date, with an unpause-extension policy ( |
| Edit an existing pause phase — set or change the resume date, shift the start, or change the unpause policy |
| Resume a paused contract |
| Create a contract prompt |
| Extract contract data from raw text using AI |
Invoices
Tool | Description |
| List invoices with filtering by customer, status, dates |
| Get an invoice by ID |
| Get an invoice by external ID |
| Check invoice generation status |
| Download invoice in JSON format |
| Get contract actuals for an invoice |
| Get successful payments currently mapped to an invoice |
| Get successful payments for a specific invoice ID |
| Get original payment records for an invoice, excluding refund payment rows |
| Get invoice line items and pricing details |
| Get invoice summary |
| Get all available invoice tags |
| Generate a payment link for an invoice |
| Initiate payment for an invoice |
| Approve an invoice for billing |
| Void an invoice |
| Delete a draft invoice |
| Generate an invoice for a contract and date range |
| Create a credit note against an invoice |
| Auto-charge an invoice via payment gateway |
Payments
Tool | Description |
| List all payments with filtering and sorting, including refund records |
| Get a payment by ID |
| Record a successful manual/offline payment or tax withheld amount |
| Update a payment's invoice allocations ( |
| Delete a manual payment |
| Edit a manual payment's amount or method |
| Refund a payment (full or partial) |
Credit Notes
Tool | Description |
| List credit notes with pagination |
| Get a credit note by ID |
Products and Pricing
Tool | Description |
| List products in the catalog |
| Get a product by ID |
| Create a product |
| Update a product's details |
| Get pricing configs for a product |
| Create a pricing config for a product |
Plans (Templates)
Tool | Description |
| List plan templates |
| Get a plan by ID with phases and pricing |
| Create a plan template |
Accounting
Tool | Description |
| Get the full chart of accounts |
| List GL accounts with filtering |
| Create a GL account |
| List journal entries with filtering |
| Create a manual journal entry |
| Get a journal entry by ID with all lines |
| List journal lines across all entries |
| Get the balance sheet report |
| Get the income statement (P&L) |
| Get balance for a specific GL account |
| Trigger revenue recognition up to a date |
Custom Attributes and Tax
Tool | Description |
| List custom attribute definitions |
| Create a custom attribute definition |
| List tax categories |
| Create a tax category |
Jobs
Tool | Description |
| List async jobs (invoice gen, rev rec, etc.) |
| Get a job by ID to check status |
Business Entities
Tool | Description |
| List business entities |
| Get a business entity by ID |
| Create a business entity |
| Update a business entity |
Customer Addresses and Payment Methods
Tool | Description |
| List addresses for a customer |
| Add an address to a customer |
| Update a customer address |
| List payment methods for a customer |
| Attach a payment method to a customer |
| Delete a payment method from a customer |
Metrics and Usage Events
Tool | Description |
| List Billable Metrics with filtering; backend/API may also call these aggregates |
| Show the underlying schemas for Billable Metrics (Aggregates); mainly useful for debugging or integration work |
| Get Billable Metric estimates; backend/API may also call these aggregates |
| Get a Billable Metric by ID; backend/API may also call it an aggregate |
| Get logs for a Billable Metric (Aggregate) |
| Create a Billable Metric (Aggregate) |
| Update a Billable Metric (Aggregate) |
| Delete a Billable Metric (Aggregate) |
| List Usage Events with filtering; backend/API may also call these raw metrics |
| Create a Usage Event schema; backend/API calls this a raw metric |
| Get a Usage Event by ID; backend/API may also call it a raw metric |
| Get recent event rows for a Usage Event using the same preview-query path as the frontend |
| Get a Usage Event by API slug; backend/API may also call it a raw metric |
| Ingest a usage event |
| Ingest multiple usage events (up to 500) for a resource slug in a single call |
Entitlements
Tool | Description |
| List entitlements with filtering |
| Get an entitlement by ID |
| Create an entitlement |
| Update an entitlement |
| Delete an entitlement |
Other
Tool | Description |
| Get customer portal config |
| Get current date/time in multiple formats |
Security
All requests require a valid organization ID and auth token
No credentials are stored by the server
Auth is passed through from the client
Development
This repo uses pnpm for package management. If you don't have it, install it once with npm install -g pnpm (or corepack enable && corepack prepare pnpm@latest --activate).
# Clone the repository
git clone https://github.com/zenskar/mcp-zenskar
cd mcp-zenskar
# Install dependencies
pnpm install
# Build the bundle (produces dist/server.mjs + dist/mcp-config.json)
pnpm run build
# Run the server
pnpm startDeveloping Locally Without Publishing
If you want Claude Desktop to use a local checkout instead of the npm package:
# Install dependencies + build the bundle
pnpm install
pnpm run build
# Optional: install the local build globally (requires dist/ from the previous step)
npm install -g .Then either point Claude to the globally-installed binary (usually $(npm bin -g)/mcp-zenskar) or call the built bundle directly:
{
"command": "node",
"args": ["/absolute/path/to/mcp-zenskar/dist/server.mjs"],
"env": {
"ZENSKAR_ORGANIZATION": "your-org-id",
"ZENSKAR_AUTH_TOKEN": "your-token"
}
}To iterate on src/server.js without rebuilding, run it directly — npm install already installs the bundler's devDependencies which include the runtime libs:
{
"command": "node",
"args": ["/absolute/path/to/mcp-zenskar/src/server.js"]
}Configuration
The server uses src/mcp-config.json to define available tools and API endpoints. This file contains the complete mapping of MCP tools to Zenskar API operations. All tools are declarative — no code changes needed to add new tools.
License
MIT
Support
For issues and support:
GitHub Issues: https://github.com/zenskar/mcp-zenskar/issues
Zenskar Documentation: https://docs.zenskar.com
Available Tools
115 toolsapproveInvoiceapproveInvoiceA
Approve an invoice; sets status to approved. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: invoiceId (required), send_email, __userContext, check_duplicate_invoice.
attachPaymentMethodattachPaymentMethodC
Attach a payment method to a customer.
Inputs: customerId (required), payment_method_id (required), connector, __userContext, +1 more.
createAccountcreateAccountC
Create a new accounting (GL) account.
Inputs: name (required), account_category (required), custom_data, description, +1 more.
createAggregatecreateAggregateB
Create a new Billable Metric. Requires a name, data schema, aggregation queries, visual query builder config, and a data source. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: name (required), dataschema (required), datasource (required), cust_agg_query (required), +3 more.
createBusinessEntitycreateBusinessEntityA
Creates a new business entity in the system with various attributes including name, address, contact details, tax configuration, and logo. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: name (required), email, logo_url, is_default, +10 more.
createContactcreateContactB
Create a new contact associated with a customer.
Inputs: email (required), customer (required), last_name, first_name, +3 more.
createContractcreateContractA
Create a new contract in Zenskar. Use this after extracting contract data via extractContractFromRaw and creating a customer via createCustomer. The contract includes customer details, pricing phases, products, and billing configuration.
Inputs: name (required), start_date (required), customer_id (required), phases, +10 more.
createContractPhasecreateContractPhaseA
Add a new phase to an existing contract. Use this for add-on expansions, mid-contract changes, or creating distinct billing periods with different pricing. Phase type enum: active, pause, trial.
Inputs: name (required), contractId (required), end_date, pricings, +6 more.
createContractPhasePricingcreateContractPhasePricingA
Add pricing to a contract phase. REQUIRED: pass EXACTLY ONE of pricing_id (reference an existing product pricing) OR pricing (inline pricing object) — never both, never neither. Pair with product_id (existing product) or inline product to associate with a product.
Inputs: phaseId (required), contractId (required), plan_id, pricing, +10 more.
createContractPromptcreateContractPromptA
Save a reusable AI extraction prompt that drives contract data extraction (used by extractContractFromRaw). Use this to create / update / version the instructions the AI follows when parsing raw contract text.
Inputs: prompt_name (required), prompt_text (required), __userContext, prompt_schema.
createCustomAttributecreateCustomAttributeC
Create a new custom attribute definition for an entity type.
Inputs: module (required), data_type (required), display_name (required), attribute_key_name (required), +5 more.
createCustomercreateCustomerC
Creates a new customer in the system with various attributes including address, tax info, and contact details.
Inputs: customer_name (required), email, tax_info, custom_data, +22 more.
createCustomerAddresscreateCustomerAddressB
Add a new address to a customer.
Inputs: line1 (required), customerId (required), city, line2, +8 more.
createEntitlementcreateEntitlementA
Creates a new entitlement in the system with various attributes including name, description, type, units, and product association. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: name (required), units, is_active, product_id, +3 more.
createInvoiceChargecreateInvoiceChargeB
Create an auto-charge for an invoice. Triggers payment collection via the customer's configured payment method.
Inputs: invoiceId (required), source, connector, __userContext, +2 more.
createInvoiceCreditNotecreateInvoiceCreditNoteC
Create a credit note against a specific invoice. Returns the created credit note.
Inputs: reason (required), invoiceId (required), credit_note_amount (required), __userContext.
createJournalEntrycreateJournalEntryC
Create a new manual journal entry with debit and credit lines.
Inputs: currency (required), description (required), journal_lines (required), posted_at, +3 more.
createPaymentcreatePaymentA
Record a successful manual/offline payment or tax-withheld amount, equivalent to the frontend Add Payment flow. Link to invoices via payment_parts array. Use type='payment' with payment_method='bank_transfer', 'check', 'cash', or 'card'. Use type='tax_withheld' without payment_method. Always use status='success'. Do not use status='created' for manually recorded payments; created payments are unrealized and will not reduce invoice amount_due or mark invoices paid. The backend assigns the payment timestamp when the payment is recorded. Refunds, authorizations, reversals, payment links, and gateway charge attempts are outside this tool's scope.
Inputs: amount (required), currency_code (required), type, status, +5 more.
createPlancreatePlanA
Create a new plan — a reusable contract template with phased pricing. Hits POST /plans (same Plan table the Zenskar app's PlansV2 page reads). The request body shape is NESTED, not flat: top-level fields are name, status, schedule, optional description, optional phases[]. Currency is set per-pricing inside phase.pricings[].pricing.pricing_data.currency, NOT at the top level. A plan with no phases is unusable in the UI — always include at least one phase. Plan starts as 'draft'; the user must publish it to make it active.
Inputs: name (required), phases (required), status (required), schedule (required), +2 more.
createProductcreateProductC
Create a new product in the catalog.
Inputs: name (required), type (required), sku, is_active, +4 more.
createProductPricingcreateProductPricingA
Create a new pricing configuration for a product. MANDATORY pre-call checklist — ask the user for ALL of these and do NOT default any silently: (1) currency (ISO 4217), (2) pricing_type (per_unit|flat_fee|tiered|volume|percent|package|step|matrix), (3) unit_amount in MAJOR currency units (float — 3 means $3, NOT 300 cents), (4) quantity object with type (fixed|metered) and unit label (e.g. 'user', 'request') and either quantity (for fixed) or aggregate_id (for metered), (5) billing_period.cadence (ISO 8601 — 'P1M' monthly, 'P3M' quarterly, 'P1Y' yearly) and billing_period.offset. SKIPPING quantity OR billing_period causes the Zenskar UI to render 'Undefined- Every Undefined Undefined' for billing cadence and 0 for billing metric — that is the #1 bug reported on this tool.
Inputs: quantity (required), productId (required), pricing_data (required), billing_period (required), +5 more.
createRawMetriccreateRawMetricA
Create a new Usage Event schema. This defines the schema used for ingesting usage events. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: name (required), api_slug (required), dataschema, column_order, +1 more.
createTaxCategorycreateTaxCategoryC
Create a new tax category.
Inputs: name (required), __userContext, external_codes.
deleteAggregatedeleteAggregateA
Permanently delete a Billable Metric. DESTRUCTIVE: cannot be undone. ONLY call when the user explicitly says 'delete' or 'remove' for THIS billable metric. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: aggregateId (required), __userContext.
deleteContactdeleteContactA
Permanently delete a contact by ID. DESTRUCTIVE — only call when the user explicitly says 'delete' for THIS contact; never as automatic recovery from another failed operation. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: contactId (required), __userContext.
deleteContractdeleteContractA
Permanently delete a DRAFT contract. ONLY works on contracts with status='draft'. Do NOT call on ACTIVE, EXPIRED, or PAUSED contracts. DESTRUCTIVE: removes all phases, products, and pricing associations. NEVER call as automatic recovery from another failed operation (e.g., do not retry as a fallback after expireContract or voidInvoice fails). ONLY call when the user explicitly says 'delete' or 'remove' for THIS draft contract. If a non-destructive action fails, surface the error verbatim and stop. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: contractId (required), __userContext.
deleteCustomerdeleteCustomerA
Permanently delete a customer by ID. DESTRUCTIVE and cannot be undone. The customer must not have active contracts or unpaid invoices. ONLY call when the user explicitly says 'delete' for THIS customer; never as automatic recovery from another failed operation. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: customerId (required), __userContext.
deleteEntitlementdeleteEntitlementA
Permanently delete an entitlement. DESTRUCTIVE: cannot be undone. ONLY call when the user explicitly says 'delete' or 'remove' for THIS entitlement. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: entitlementId (required), __userContext.
deleteInvoicedeleteInvoiceA
Permanently delete a draft invoice. ONLY works on status='draft'. For approved invoices, use voidInvoice (with caveats) or createInvoiceCreditNote — do NOT call deleteInvoice on approved invoices. DESTRUCTIVE: record removed permanently. ONLY call when the user explicitly says 'delete' for THIS invoice; never call as automatic recovery from another failed operation. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: invoiceId (required), __userContext.
deleteManualPaymentdeleteManualPaymentA
Permanently delete a manual payment record. Only works on payments in an eligible status for deletion. DESTRUCTIVE — only call when the user explicitly says 'delete' for THIS payment; never as automatic recovery from another failed operation. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: paymentId (required), __userContext.
deletePaymentMethoddeletePaymentMethodA
Permanently delete a payment method from a customer. DESTRUCTIVE — saved card/bank details will be removed; recurring auto-charges using this method will fail. Only call when the user explicitly says 'delete' for THIS payment method. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: customerId (required), paymentMethodId (required), __userContext.
downloadInvoicedownloadInvoiceC
Download an invoice in JSON format.
Inputs: invoiceId (required), customer_id, __userContext, invoice_json_key.
editManualPaymenteditManualPaymentC
Edit a manual payment's details (amount, method, etc.). Uses the manual_payment-specific endpoint.
Inputs: paymentId (required), amount, timestamp, external_id, +3 more.
editPauseContracteditPauseContractA
Edit an existing pause phase on a contract. Use this when 'resumeContract' returns 'pause phase not found' for a future-dated pause, or when the user wants to set a resume date (pause end_date), shift the pause start, or change the unpause_extension_policy. Hits PATCH /contract_v2/{contractId}/pause.
Inputs: contractId (required), end_date, start_date, __userContext, +2 more.
expireContractexpireContractA
THE ONLY tool that can expire, end, terminate or cancel contracts — use it whenever the user wants contracts to stop on a given date, including when they phrase it as 'update the expiry date'. Do NOT use updateContract for this. To expire SEVERAL contracts, pass every id in contractIds on a SINGLE call — never call this tool once per contract, as each call raises its own approval dialog and only the most recent one can be approved. Expire an ACTIVE or PAUSED contract by adjusting its end_date. Allowed status transitions: ACTIVE→EXPIRED, PAUSED→EXPIRED. EXPIRED is terminal — calling on an already-expired contract returns 400; do NOT retry, do NOT escalate to deleteContract or any other destructive tool as a fallback. Verify contract.status via getContractById before calling. Idempotency: NO. The contract expires at end of day 23:59:59.999999. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: contractIds (required), expiry_date, __userContext.
extractContractFromRawextractContractFromRawA
Extract structured contract data from raw text content using AI. This tool analyzes natural language contract descriptions and extracts key fields like dates, products, pricing, and billing terms. The extracted data can then be used to create a customer and contract via createCustomer and createContract tools.
Inputs: name (required), content (required), __userContext, organization_id.
generateInvoicegenerateInvoiceA
Generate an invoice for a single contract+customer over a billing window.
Granularity is PER PHASE, NOT per product. ONE call generates ONE invoice covering ALL products active in the (contract, customer, from_date, to_date) window — every product becomes a line item on the same invoice. NEVER iterate over products.
MANDATORY PRE-STEP: call getContractBillingCycles first to fetch the list of valid {start_date, end_date, bill_for_date, billing_cycle_start_day} entries for this contract. Pick ONE entry. Copy its start_date → from_date, end_date → to_date, bill_for_date, billing_cycle_start_day verbatim. DO NOT compute these from contract.start_date, pricing.billing_period, or human intuition — the backend matches bill_for_date exactly against the pre-computed list.
Date fields accept ISO-8601 strings (e.g. "2026-04-28T00:00:00Z") or integer UNIX seconds. Prefer pasting ISO strings verbatim from getContractBillingCycles output — the server converts to unix internally before sending to the API.
Known failure modes:
• {invoice_ids: []} → bill_for_date did not match any cycle. Re-fetch billingCycles and copy the exact value.
• $0 invoice → bill_for_date/billing_cycle_start_day omitted entirely.
• InvoiceAlreadyGeneratedForThisBillingPeriod → an approved invoice already exists for this cycle.
Inputs: to_date (required), from_date (required), contract_id (required), customer_id (required), +3 more.
generateInvoicePaymentLinkgenerateInvoicePaymentLinkC
Generate a payment link for a specific invoice.
Inputs: invoiceId (required), amount, __userContext.
getAccountBalancegetAccountBalanceB
Retrieve the balance for a specific accounting account. Supports filtering by customer, contract, currency, and posted-at date range.
Inputs: accountId (required), as_of, currency, contract_id, +4 more.
getAggregateByIdgetAggregateByIdB
Get the details of a Billable Metric by its ID.
Inputs: aggregateId (required), __userContext.
getAggregateEstimatesgetAggregateEstimatesC
Get Billable Metric estimates based on the specified criteria.
Inputs: end_date (required), start_date (required), customer_id (required), aggregate_id (required), +2 more.
getAggregateLogsgetAggregateLogsB
Get logs related to a Billable Metric (also called an aggregate) by ID, with optional date and customer filters.
Inputs: aggregateId (required), month, end_date, start_date, +3 more.
getAggregateSchemasgetAggregateSchemasA
Show the underlying storage/schema definitions for Billable Metrics. Mainly useful for advanced debugging, SQL/schema inspection, and integration work rather than day-to-day business operations.
Inputs: __userContext.
getAllInvoiceTagsgetAllInvoiceTagsB
Get all available tags for invoices.
Inputs: __userContext.
getBalanceSheetgetBalanceSheetB
Retrieve the balance sheet report (assets, liabilities, equity). Supports per-customer / per-contract / per-account scoping via filters and currency / cadence selection.
Inputs: limit, cursor, cadence, currency, +8 more.
getBusinessEntityByIdgetBusinessEntityByIdB
Retrieve a business entity by its ID.
Inputs: entityId (required), __userContext.
getChartOfAccountsgetChartOfAccountsA
Retrieve the chart of accounts for the organization, listing all account categories and their hierarchical structure.
Inputs: __userContext.
getContactByIdgetContactByIdA
Retrieve details for a specific contact by their ID.
Inputs: contactId (required), __userContext.
getContractAmendmentsgetContractAmendmentsB
Retrieve all amendments for a contract. Shows history of changes, expansions, upgrades, and modifications made to the contract over time.
Inputs: contractId (required), __userContext.
getContractBillingCyclesgetContractBillingCyclesA
Returns the contract's pre-computed billing cycles as a list of {name, start_date, end_date, bill_for_date, billing_cycle_start_day}. REQUIRED before calling generateInvoice. Workflow: (1) call this tool, (2) pick the cycle entry whose date range covers the period you want to invoice, (3) pass that entry's start_date → from_date, end_date → to_date, bill_for_date, billing_cycle_start_day to generateInvoice — copy the values verbatim, no math. The backend matches bill_for_date exactly against this list; arbitrary dates produce empty invoice arrays.
Inputs: contractId (required), limit, __userContext.
getContractByIdgetContractByIdA
Retrieve a contract by its ID, including all phases, pricings, customer details, custom attributes, and renewal policy. Essential for cloning contracts for renewals, reviewing terms before amendments, and validating contract state.
Inputs: contractId (required), __userContext.
getCreditNoteByIdgetCreditNoteByIdA
Retrieve a credit note by its ID, including amount, status, customer, invoice association, and line items URL. Credit note amounts are in cents.
Inputs: creditNoteId (required), __userContext.
getCurrentDateTimegetCurrentDateTimeC
Get the current system date and time in multiple formats for temporal context
Inputs: __userContext.
getCustomerByIdgetCustomerByIdC
Retrieve details for a specific customer by their ID.
Inputs: customerId (required), __userContext.
getCustomerPortalConfigurationgetCustomerPortalConfigurationC
Retrieve the customer portal configuration.
Inputs: __userContext.
getEntitlementByIdgetEntitlementByIdA
Get the details of an entitlement by its ID.
Inputs: entitlementId (required), __userContext.
getIncomeStatementgetIncomeStatementB
Retrieve the income statement (P&L) report. Supports per-customer / per-contract / per-account scoping via filters and currency / cadence selection.
Inputs: limit, cursor, cadence, currency, +8 more.
getInvoiceByExternalIdgetInvoiceByExternalIdC
Retrieve details for an invoice using its external ID.
Inputs: externalId (required), __userContext.
getInvoiceByIdgetInvoiceByIdB
Retrieve details for a specific invoice by its ID. Invoice amounts are in major units (25 means $25.00).
Inputs: invoiceId (required), __userContext, include_line_items.
getInvoiceContractJsonActualsgetInvoiceContractJsonActualsB
Get contract actuals in JSON format for a specific invoice.
Inputs: invoiceId (required), __userContext.
getInvoiceGenerationStatusgetInvoiceGenerationStatusC
Get the generation status of a specific invoice.
Inputs: invoiceId (required), contract_id (required), __userContext.
getInvoiceLineItemsgetInvoiceLineItemsC
Get details about the invoice line items, features, and pricing models.
Inputs: invoiceId (required), __userContext.
getInvoicePaymentsgetInvoicePaymentsA
Get successful payments currently associated with a specific invoice. This view may omit refund records and non-success payment states. Payment amounts are in cents.
Inputs: invoiceId (required), __userContext.
getInvoicePaymentsByIdgetInvoicePaymentsByIdA
Get successful payments associated with a specific invoice ID. This endpoint is success-only and may not show refund rows. Payment amounts are in cents.
Inputs: invoiceId (required), __userContext.
getInvoicePaymentsWithoutRefundsgetInvoicePaymentsWithoutRefundsA
Get original payment records for an invoice, excluding refund payment rows. Refunded or partially refunded original payments may still appear here. Payment amounts are in cents.
Inputs: invoiceId (required), __userContext.
getInvoicePreviewHtmlgetInvoicePreviewHtmlA
Get the rendered HTML preview of an invoice. Returns the invoice as it would appear when sent to the customer. Use this to show the customer-facing invoice layout.
Inputs: invoiceId (required), orgId, __userContext.
getInvoiceSummarygetInvoiceSummaryB
Get a summary of a specific invoice.
Inputs: invoiceId (required), __userContext.
getJobByIdgetJobByIdB
Retrieve a specific job by its ID to check status and results.
Inputs: jobId (required), __userContext.
getJournalEntrygetJournalEntryA
Retrieve a journal entry by its ID, including all journal lines. Debits and credits are in cents.
Inputs: journalEntryId (required), __userContext.
getPaymentByIdgetPaymentByIdB
Retrieve details for a specific payment by its ID. Payment amounts are in cents.
Inputs: paymentId (required), __userContext.
getPlanByIdgetPlanByIdA
Retrieve a plan by its ID, including phases, products, and pricing configurations.
Inputs: planId (required), __userContext.
getProductByIdgetProductByIdA
Retrieve a product by its ID, including name, SKU, description, tax codes, pricing, and custom attributes.
Inputs: productId (required), __userContext.
getProductPricingsgetProductPricingsB
Retrieve all pricing configurations for a specific product.
Inputs: productId (required), __userContext.
getRawMetricByIdgetRawMetricByIdC
Get Usage Event details by ID.
Inputs: rawMetricId (required), __userContext.
getRawMetricBySluggetRawMetricBySlugB
Get Usage Event details by API slug.
Inputs: rawMetricSlug (required), __userContext.
getRawMetricLogsgetRawMetricLogsA
Get recent Usage Event rows for a resource by ID. Returns the most recent event rows; backend does NOT support filters, pagination, ordering, or aggregation on this endpoint. For filtered/aggregated queries use the aggregate endpoints.
Inputs: rawMetricId (required), __userContext.
ingestRawMetricEventingestRawMetricEventA
Ingest a Usage Event for the specified resource slug. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: rawMetricSlug (required), event, __userContext.
ingestRawMetricEventsBulkingestRawMetricEventsBulkA
Ingest MULTIPLE Usage Events for the specified resource slug in a single API call (bulk ingestion). Use this instead of calling ingestRawMetricEvent once per event — it sends one HTTP request carrying every event, which is far more efficient for CSV/batch imports. Each element of 'events' has the same shape as ingestRawMetricEvent's 'event' arg: customer_id, timestamp, and a data map with schema-compliant types. If importing from a CSV (or any source) whose column names don't clearly correspond to the expected fields (customer_id, timestamp, data.*), confirm the mapping with the user before constructing events — do not guess a mapping silently. Limit: 500 events per call — split larger batches into multiple calls. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: events (required), rawMetricSlug (required), __userContext.
listAccountslistAccountsB
Retrieve a paginated list of accounting accounts (GL accounts) with optional filtering.
Inputs: limit, cursor, name__ilike, __userContext.
listAggregateslistAggregatesB
List Billable Metrics in paginated form, with filtering by ID, name, and data source.
Inputs: id, limit, order, cursor, +8 more.
listAllPaymentslistAllPaymentsA
Retrieve a paginated list of all payments, including refund records, with extensive filtering and sorting options. Payment amounts and amount filters are in cents.
Inputs: id, type, limit, order, +28 more.
listBusinessEntitieslistBusinessEntitiesB
Retrieve a list of business entities configured for the organization.
Inputs: limit, cursor, __userContext.
listContactslistContactsC
Retrieve a paginated list of contacts.
Inputs: limit, cursor, sort_key, sort_type, +1 more.
listContractslistContractsB
Retrieve a paginated list of contracts, with extensive options for filtering by ID, customer ID, name, start date, end date, creation date, and status.
Inputs: id, name, limit, order, +37 more.
listCreditNoteslistCreditNotesB
Retrieve a paginated list of credit notes. Supports cursor-based pagination. Credit note amounts are in cents.
Inputs: limit, cursor, status, invoice_id, +2 more.
listCustomAttributeslistCustomAttributesB
Retrieve a list of custom attribute definitions configured for the organization.
Inputs: module, __userContext.
listCustomerAddresseslistCustomerAddressesB
Retrieve all addresses for a specific customer.
Inputs: customerId (required), __userContext.
listCustomerslistCustomersB
Retrieve a paginated list of customers, with options for searching, filtering by ID, external ID, email, phone number, communication status, auto-charge status, creation date, customer name, and business entity ID.
Inputs: id, email, limit, order, +20 more.
listEntitlementslistEntitlementsB
List entitlements in paginated form, with filtering by ID, name, type, product, and active status.
Inputs: id, limit, order, cursor, +8 more.
listInvoiceslistInvoicesA
Retrieve a paginated list of invoices, with options for filtering by customer, status, amounts, due date, creation date, and related customer/contract details. Invoice amounts and amount filters are in major units (25 means $25.00).
Inputs: limit, cursor, status, status__in, +15 more.
listJobslistJobsB
Retrieve a paginated list of async jobs (invoice generation, revenue recognition, etc.).
Inputs: limit, cursor, search, __userContext, +1 more.
listJournalEntrieslistJournalEntriesB
Retrieve a paginated list of journal entries with optional filtering by date, status, account, or job. Filters use fastapi-filter conventions (e.g. posted_at__gte=YYYY-MM-DD, lines__account_id=). Debits and credits are in cents.
Inputs: id, limit, order, cursor, +8 more.
listJournalLineslistJournalLinesB
Retrieve a paginated list of journal lines (individual debit/credit entries) across all journal entries. Supports filtering by customer, contract, account, currency, and parent journal entry posted date. Debits and credits are in cents.
Inputs: limit, order, cursor, currency, +11 more.
listPaymentMethodslistPaymentMethodsB
Retrieve all payment methods for a specific customer.
Inputs: customerId (required), __userContext.
listPlanslistPlansA
Retrieve a paginated list of plans that define reusable contract structures. Hits /plans — the same data the Zenskar app's Plans page reads.
Inputs: limit, cursor, status, name__ilike, +1 more.
listProductslistProductsB
Retrieve a paginated list of products. Products define what is being sold and can be associated with pricing and contracts.
Inputs: type, limit, cursor, name__ilike, +2 more.
listRawMetricslistRawMetricsC
List Usage Events. Supports filtering by ID, name, and API slug.
Inputs: id, limit, order, cursor, +6 more.
listRevenuePostingslistRevenuePostingsB
Retrieve a paginated list of revenue postings (per-period revenue allocations against revenue contracts and performance obligations). Supports filtering by contract, revenue contract, performance obligation, posting date, and currency.
Inputs: limit, order, cursor, currency, +8 more.
listTaxCategorieslistTaxCategoriesB
Retrieve a list of tax categories configured for the organization.
Inputs: __userContext.
pauseContractpauseContractA
Pause an active contract. ALWAYS ask the user explicitly for both 'start_date' and 'unpause_extension_policy' before calling — do NOT silently default. A future-dated start_date will create a scheduled pause that has not yet begun; the contract's top-level status stays 'active' until start_date passes. Use 'editPauseContract' to adjust the pause window or set a resume date afterward.
Inputs: contractId (required), start_date (required), unpause_extension_policy (required), end_date, +1 more.
payInvoicepayInvoiceA
Initiate payment for an invoice using a payload. MONEY-MOVING ACTION — only call when the user explicitly authorizes payment for this specific invoice. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: payload (required), __userContext.
recogniseRevenuerecogniseRevenueA
Recognize revenue for the organization up to a specified end_date. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: end_date (required), __userContext.
refreshRevenuePostingsrefreshRevenuePostingsA
Recalculate and upsert revenue postings for a specific revenue contract item / performance obligation at a given posting date. All five identifiers are required (the backend rejects partial inputs). Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: contract_id (required), posting_date (required), revenue_contract_id (required), revenue_contract_item_id (required), +2 more.
refundPaymentrefundPaymentB
Refund a payment (full or partial). Pass refund_amount=0 (or full original amount) for a full refund, or a smaller positive integer for a partial refund. refund_destination + writeoff_invoices control where the refund money goes and whether linked invoices are written off. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: paymentId (required), refund_amount (required), writeoff_invoices (required), refund_destination (required), +1 more.
resumeContractresumeContractA
Resume a contract that is currently in an actively-running pause. MANDATORY FLOW: (1) ASK the user 'What date should the contract resume from?' — never call without a known resume date even though this endpoint takes no body. (2) Call getContractById and check the pause phase's start_date. (3a) If pause start_date is strictly in the past (pause currently active) AND the user wants to resume immediately/today → call this endpoint. (3b) If pause start_date is today OR in the future, OR the user wants a specific future resume date → call 'editPauseContract' with end_date=<resume_date> instead. The error 'pause phase not found' does NOT mean no pause exists — it means no pause has yet started; on this error, automatically pivot to 'editPauseContract' with the resume date. Never escalate to deleteContract or any destructive fallback.
Inputs: contractId (required), __userContext.
updateAggregateupdateAggregateA
Update an existing Billable Metric. All body fields are optional — only send fields you want to change. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: aggregateId (required), name, dataschema, datasource, +4 more.
updateBusinessEntityupdateBusinessEntityC
Update an existing business entity's details.
Inputs: entityId (required), name, email, address, +3 more.
updateContactupdateContactB
Update an existing contact's details. Supports partial updates.
Inputs: contactId (required), email, customer, last_name, +4 more.
updateContractupdateContractA
Update an existing contract. This is a PUT endpoint — you MUST fetch the contract first with getContractById, then send ALL required fields including phases. Without phases the API returns 500. Copy phases from the GET response (each phase needs name, start_date, end_date at minimum). Renewal: renew_with_default_contract, renew_with_existing, do_not_renew. EXPIRY: this tool CANNOT expire, end, terminate or cancel a contract. Contract status is derived from the CONTRACT-LEVEL end_date; phase end_dates never affect it. If the user asks to expire/end/terminate/cancel a contract, or to 'set' or 'update' its expiry date, you MUST call expireContract instead of this tool — it sets the end_date and also prunes future phases, trims overlapping phases and caps product dates, which this tool does not. Setting a past end_date here is rejected.
Inputs: name (required), status (required), currency (required), contractId (required), +16 more.
updateCustomerupdateCustomerB
Update an existing customer's details. Supports partial updates — only send fields you want to change. Can update name, email, address, phone, communications_enabled, auto_charge_enabled, etc.
Inputs: customerId (required), email, tax_info, custom_data, +23 more.
updateCustomerAddressupdateCustomerAddressC
Update an existing customer address.
Inputs: addressId (required), customerId (required), city, line1, +9 more.
updateEntitlementupdateEntitlementA
Update an existing entitlement's details. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: name (required), entitlementId (required), units, is_active, +4 more.
updatePaymentupdatePaymentB
Update a payment's invoice allocations. The API requires a non-empty request body with payment_parts.
Inputs: paymentId (required), payment_parts (required), __userContext.
updateProductupdateProductC
Update an existing product's details.
Inputs: productId (required), sku, name, is_active, +4 more.
voidInvoicevoidInvoiceA
Void an invoice. ONLY works on approved or paid invoices with invoice_total == 0 (zero-balance, typically after a full credit-note offset). For non-zero approved invoices, issue a credit note via createInvoiceCreditNote first to bring the balance to zero, then void. If the call returns INVOICE_CANNOT_BE_VOIDED, surface that error verbatim — do NOT retry, do NOT escalate to deleteInvoice. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Inputs: invoiceId (required), __userContext.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 115 tools
The set contains several near-duplicate invoice-payment retrieval tools (getInvoicePayments, getInvoicePaymentsById, getInvoicePaymentsWithoutRefunds) plus related payment and contract lifecycle variants that an agent could easily misselect. Detailed descriptions mitigate many cases, but with 115 tools the boundaries remain hard to navigate.
Nearly all tools use camelCase verb_noun names, making the set largely predictable. Minor deviations such as edit vs update, listAllPayments, and getInvoicePayments lacking a ById suffix keep it from perfect consistency.
115 tools is far beyond a well-scoped set for this server and includes many narrow retrieval variants and configuration helpers. The surface would be much more coherent if grouped or pruned.
Core customer, contract, invoice, payment, and revenue workflows are well covered with lifecycle operations. However, several supporting domains are create/get-only, such as plans, product pricing, tax categories, custom attributes, accounts, and journal entries, leaving notable gaps.
Maintenance
Related MCP Connectors
Query your books, company data, business health, and ship invoices from your AI assistant.
Query and manage Amberflo metering & billing: customers, meters, usage, plans, invoices, prepaid.
Ask your accounts-receivable portfolio anything. Read-only, scoped to your account.
FinOps assistant: query AWS, GCP and Azure cost, commitments, budgets and reports.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Zuora's billing and subscription management platform through their REST API. Provides access to billing operations, subscription management, and financial data through natural language queries.-
- AlicenseAqualityNot gradedmaintenanceEnables AI assistants to query and manage QuickBooks Online data through natural language, including customers, invoices, bills, vendors, accounts, and financial reports.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Zoho Books accounting tasks such as invoices, contacts, expenses, and sales orders through natural language.38MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Stripe accounts to query customers, revenue, invoices, subscriptions, disputes, and issue refunds.1MIT