Home / Servers / Stripe API / post_billing_meters
Create a billing meter
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Create a billing meter Creates a billing meter. [POST /v1/billing/meters]
Name on the gateway: stripe_api__post_billing_meters · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
customer_mapping | object | Fields that specify how to map a meter event to a customer. |
default_aggregation required | object | The default settings to aggregate a meter's events with. |
display_name required | string | The meter’s name. Not visible to the customer. |
event_name required | string | The name of the meter event to record usage for. Corresponds with the… |
event_time_window | day | hour | The time window which meter events have been pre-aggregated for, if any. |
expand | array | Specifies which fields in the response should be expanded. |
value_settings | object | Fields that specify how to calculate a meter event's value. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "stripe_api__post_billing_meters",
"arguments": {
"default_aggregation": "…",
"display_name": "…",
"event_name": "…"
}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a billing meter tool with customer_mapping set to ….