Server definition
- Hash
- sha256:94a7974d665d5293a4c7e9bd106dd08f2b310fba113c8914c80e91392e08358e
- What it is
- What a remote MCP server returned when asked what it offers: 6 tools
The blob, as servednamed by its sha256
{
"instructions": "Usage Lab meters usage for usage-based billing. Typical flow: list_meters (or create_meter once), then record_usage_events with a stable idempotency_key per event (reuse the same key on retries: it returns duplicate and counts once), then get_meter_rollups for monthly per-customer totals. Account tools need the user's own Usage Lab API key sent as 'Authorization: Bearer <key>' on this MCP connection (free key at https://usage-lab.pages.dev/signup/). get_docs needs no key.",
"tools": [
{
"description": "Create a meter once (POST /api/v1/meters). aggregation: sum (add up value, e.g. tokens), count (number of events, e.g. tool calls) or unique_count (distinct unique_value, e.g. active users). Re-creating an existing key returns meter_exists (harmless). Free plan: 3 meters. Needs your API key.",
"inputSchema": {
"properties": {
"aggregation": {
"enum": [
"sum",
"count",
"unique_count"
],
"type": "string"
},
"key": {
"description": "1-64 chars of letters, digits, _ . - (e.g. agent_tool_calls).",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$",
"type": "string"
},
"name": {
"description": "Optional display name (defaults to key).",
"type": "string"
},
"stripe_event_name": {
"description": "Optional Stripe Billing Meter event_name for Stripe push (Pro/Ultra).",
"type": "string"
}
},
"required": [
"key",
"aggregation"
],
"type": "object"
},
"name": "create_meter",
"outputSchema": null
},
{
"description": "Your account: plan, event and meter limits, event_count and first_event_at (GET /api/v1/account). Needs your API key.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "get_account",
"outputSchema": null
},
{
"description": "Quickstart for the Usage Lab metering API and this MCP server: how to get a free API key, connect, create a meter, record idempotent usage events and read rollups. No API key needed.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "get_docs",
"outputSchema": null
},
{
"description": "Monthly totals per customer for one meter, recomputed from raw events (GET /api/v1/meters/{meter}/rollups). Returns total_quantity and per-subscription quantity and event_count. Needs your API key.",
"inputSchema": {
"properties": {
"meter": {
"description": "Meter key or id.",
"type": "string"
},
"month": {
"description": "YYYY-MM (UTC). Defaults to the current month.",
"pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
"type": "string"
},
"subscription": {
"description": "Optional: only this customer/subscription.",
"type": "string"
}
},
"required": [
"meter"
],
"type": "object"
},
"name": "get_meter_rollups",
"outputSchema": null
},
{
"description": "List the meters on your Usage Lab account (key, name, aggregation sum | count | unique_count). Needs your API key (Authorization: Bearer).",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "list_meters",
"outputSchema": null
},
{
"description": "Record 1-100 usage events in one all-or-nothing batch (POST /api/v1/usage). Every event MUST carry its own idempotency_key; retrying with the same keys is safe (results say created / duplicate / conflict). Needs your API key.",
"inputSchema": {
"properties": {
"events": {
"items": {
"properties": {
"idempotency_key": {
"description": "Required. A stable id for this event (e.g. sha256 of run_id:step:tool_call_id, or your provider response id). Reuse it on retries: same key + same payload returns duplicate and counts once; same key + different payload is a conflict and the original is kept.",
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"meter": {
"description": "Meter key or id. Optional only if the account has exactly one meter.",
"type": "string"
},
"properties": {
"description": "Optional JSON stored with the event, e.g. {\"traffic_class\":\"ai_agent\",\"tool\":\"search\"}.",
"type": "object"
},
"subscription": {
"description": "Required. Your customer or subscription id (who to bill).",
"maxLength": 200,
"type": "string"
},
"timestamp": {
"description": "ISO-8601 or unix seconds/ms. Defaults to now. Max 30 days old, max 5 minutes in the future.",
"type": [
"string",
"number"
]
},
"unique_value": {
"description": "Required for unique_count meters (e.g. a user id).",
"type": [
"string",
"number"
]
},
"value": {
"description": "Required for sum meters (e.g. tokens). Defaults to 1 for count meters.",
"type": "number"
}
},
"required": [
"idempotency_key",
"subscription"
],
"type": "object"
},
"maxItems": 100,
"minItems": 1,
"type": "array"
}
},
"required": [
"events"
],
"type": "object"
},
"name": "record_usage_events",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:94a7974d665d5293a4c7e9bd106dd08f2b310fba113c8914c80e91392e08358e | sha256sum