Skip to main content
Glama

Server Details

Query and manage Amberflo metering & billing: customers, meters, usage, plans, invoices, prepaid.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
m190/usefulapi-mcp
GitHub Stars
0

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.

Tool Definition Quality

Score is being calculated. Check back soon.

Available Tools

14 tools
amberflo_assign_customer_planAssign customer plan
Destructive
Inspect

WRITE: assign/attach a pricing product plan to a customer — this changes what the customer is billed. API: POST /payments/pricing/amberflo/customer-pricing.

ParametersJSON Schema
NameRequiredDescriptionDefault
product_idNoProduct id the plan belongs to.
customer_idYesThe Amberflo customerId to assign the plan to.
product_plan_idYesThe productPlanId of the plan to assign.
end_time_in_secondsNoWhen the plan ends, unix epoch seconds.
start_time_in_secondsNoWhen the plan takes effect, unix epoch seconds.
amberflo_create_customerCreate customer
Destructive
Inspect

WRITE: create/register a new customer in Amberflo (id + name required; optional email, enabled flag, and traits). Optionally auto-create the customer in Stripe. API: POST /customers/.

ParametersJSON Schema
NameRequiredDescriptionDefault
traitsNoArbitrary string traits (key/value metadata).
enabledNoWhether the customer is enabled.
customer_idYesUnique customerId to assign (your identifier for the customer).
customer_nameYesHuman-readable customer name.
customer_emailNoCustomer email address.
create_in_stripeNoWhen true, also auto-create this customer in Stripe (adds ?autoCreateCustomerInStripe=true).
amberflo_explain_usageExplain usage
Read-only
Inspect

Explain/drill into the raw meter events behind a meter's usage over a time range — useful to debug why a number looks off. API: POST /usage/explain.

ParametersJSON Schema
NameRequiredDescriptionDefault
filterNoDimension filter: map of dimension name -> allowed values.
group_byNoDimension names to group by, e.g. ["customerId"].
take_limitNoReturn only the top N records.
aggregationNoAggregation function: SUM | COUNT | MIN | MAX.
meter_api_nameYesThe meterApiName to explain (from amberflo_list_meters).
end_time_in_secondsNoRange end, unix epoch seconds. Defaults to now if omitted.
start_time_in_secondsYesRange start, unix epoch seconds (inclusive).
amberflo_get_all_usageGet all usage
Read-only
Inspect

Get total usage across all meters over a time range, optionally grouped by customer or filtered to one customer. API: GET /usage/all.

ParametersJSON Schema
NameRequiredDescriptionDefault
end_time_in_secondsNoRange end, unix epoch seconds. Defaults to now if omitted.
group_by_customer_idNoWhen true, group results by customer (sends groupBy=customerId).
filter_by_customer_idNoRestrict results to a single customerId.
start_time_in_secondsYesRange start, unix epoch seconds (inclusive).
time_grouping_intervalYesBucket size: HOUR | DAY | WEEK | MONTH.
amberflo_get_customerGet a customer
Read-only
Inspect

Fetch a single customer by its Amberflo customerId. API: GET /customers/?customerId=.

ParametersJSON Schema
NameRequiredDescriptionDefault
customer_idYesThe Amberflo customerId to fetch.
amberflo_get_customer_invoiceGet customer invoice
Read-only
Inspect

Get a single customer invoice: the CURRENT open invoice (latest=true, default) or a SPECIFIC past invoice by product_plan_id + year + month + day. API: GET /payments/billing/customer-product-invoice.

ParametersJSON Schema
NameRequiredDescriptionDefault
dayNoDay of month of a specific past invoice.
yearNoYear of a specific past invoice.
monthNoMonth (1-12) of a specific past invoice.
latestNoFetch the current open invoice. Default true. Ignored when a specific invoice is addressed.
from_cacheNoUse cached invoice (faster). Default true.
product_idNoProduct id. Default "1".
customer_idYesThe Amberflo customerId.
product_plan_idNoProduct plan id of a specific past invoice (with year/month/day).
with_payment_statusNoInclude payment status. Default true.
amberflo_get_customer_planGet customer plan
Read-only
Inspect

Get a customer's LATEST assigned product plan (pricing). API: GET /payments/pricing/amberflo/customer-pricing?CustomerId=.

ParametersJSON Schema
NameRequiredDescriptionDefault
customer_idYesThe Amberflo customerId.
amberflo_get_usageQuery usage for a meter
Read-only
Inspect

Query aggregated usage for a single meter over a time range, optionally grouped/filtered. API: POST /usage/.

ParametersJSON Schema
NameRequiredDescriptionDefault
filterNoDimension filter: map of dimension name -> allowed values.
group_byNoDimension names to group results by, e.g. ["customerId"].
take_limitNoReturn only the top N groups.
aggregationYesAggregation function: SUM | COUNT | MIN | MAX.
meter_api_nameYesThe meterApiName to query (from amberflo_list_meters).
take_is_ascendingNoSort order for `take` (default false = descending).
end_time_in_secondsNoRange end, unix epoch seconds. Defaults to now if omitted.
start_time_in_secondsYesRange start, unix epoch seconds (inclusive).
time_grouping_intervalYesBucket size: HOUR | DAY | WEEK | MONTH.
amberflo_ingest_usageIngest usage event
Destructive
Inspect

WRITE: record/ingest a single usage meter event (writes billable usage data) to the Amberflo ingestion host. API: POST /ingest/ on the ingest base URL.

ParametersJSON Schema
NameRequiredDescriptionDefault
unique_idNoOptional idempotency/unique id for the event.
dimensionsNoOptional dimensions (key/value string metadata) for the event.
customer_idYesThe customerId this usage belongs to.
meter_valueYesThe numeric value of the usage event.
meter_api_nameYesThe meterApiName this event is for.
meter_time_in_millisYesEvent timestamp, unix epoch milliseconds.
amberflo_list_customer_invoicesList customer invoices
Read-only
Inspect

List all invoices for a customer (optionally for a specific product), with payment status. API: GET /payments/billing/customer-product-invoice/all.

ParametersJSON Schema
NameRequiredDescriptionDefault
from_cacheNoUse cached invoices (faster). Default true.
product_idNoProduct id. Default "1".
customer_idYesThe Amberflo customerId.
with_payment_statusNoInclude payment status. Default true.
amberflo_list_customer_plan_historyList customer plan history
Read-only
Inspect

List the full history of product plans assigned to a customer over time. API: GET /payments/pricing/amberflo/customer-pricing/list?CustomerId=.

ParametersJSON Schema
NameRequiredDescriptionDefault
customer_idYesThe Amberflo customerId.
amberflo_list_customersList customers
Read-only
Inspect

List all customers registered in your Amberflo account (id, name, email, traits, enabled). Good first call to discover customer ids. API: GET /customers/.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

amberflo_list_metersList meters
Read-only
Inspect

List all meter definitions in your account (id, meterApiName, label, meterType, aggregation, etc.). Use meterApiName values here as inputs to usage tools. API: GET /meters.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

amberflo_list_prepaid_ordersList prepaid orders
Read-only
Inspect

List a customer's active prepaid credit orders for a product. API: GET /payments/pricing/amberflo/customer-prepaid/list?CustomerId=&ProductId=.

ParametersJSON Schema
NameRequiredDescriptionDefault
product_idNoProduct id. Default "1".
customer_idYesThe Amberflo customerId.

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.