Skip to main content
Glama

Lago MCP by usefulapi

Create usage event

lago_create_event
Destructive

Records a usage/metering event in Lago. This WILL be counted toward the customer's usage and affects billing. Idempotent via transaction_id. Lago API: POST /events with body { "event": { ... } }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe billable metric code this event targets (required).
timestampNoUnix timestamp in seconds (or ISO); defaults to event reception time.
propertiesNoAdditional event properties used to compute the fee (required for sum/max/unique aggregations).
transaction_idYesUnique identifier for the event — the idempotency key (required).
external_subscription_idYesThe subscription external id to link the event to (required).
precise_total_amount_centsNoPrecise total amount in cents, used by the dynamic pricing model.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / properties / additionalProperties / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / properties / additionalProperties / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / timestamp / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / timestamp / type
      Added value: +[
      +  "string",
      +  "number"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.