get_metering
get_metering
Read meters, usage events and uploads. Trace why an event is (not) billed
Live server: available on mcp.solvimon.com as well as on the test server.
Read-only access to everything related to measuring usage, plus tools to debug it. Check here for a compatible meter before creating a new one.
Actions: list, get, csv_template, download_url, calculate_cost
Resource types: meters, meter_values, meter_value_calculations, meter_properties, meter_property_variables, meter_property_variable_values, meter_data, events, event_trace, files, file_lines
- Why is this event (not) billed?
getonevent_tracewith an event id or reference shows when it was ingested and processed and what it matched: subscription, product items and invoice (with its number and Desk link). An event without matches says it found no matching subscription. - Why did my CSV upload fail?
listonfilesshows recent uploads.listonfile_lineswithfilter.file_idshows the failed rows and why. - What would this cost?
calculate_costprices an event against the customer’s current subscription without storing it. csv_templateon a meter returns the header row its bulk upload must use.- Listing
meter_dataoreventsmust be narrowed withfilter.meter_idorfilter.reference.
Example prompts
- “Which meters do we have, and what does each one measure?”
- “Why wasn’t event evt-0001 billed?”
- “My last usage CSV upload failed. Which rows, and why?”
- “Give me the CSV header for a bulk upload to the ingested events meter.”
- “What would 1,000 API calls cost Acme Inc. on their current plan?”
Example output
Prompt: “Give me the CSV header for a bulk upload to the ingested events meter.”
Tool call:
Response (trimmed):
Claude’s answer: Use this header row as is. Each row needs a customer reference, a unique event reference and the event count; subscription and timestamp columns can stay empty, and the timestamp then defaults to the upload time.