Amberflo MCP by usefulapi

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

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
90%
命名の品質
77%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(2)

  • LOWTool 'amberflo_list_customer_plan_history' name length outside 3-30 rangeamberflo_list_customer_plan_history 内
  • LOWTool 'amberflo_list_customer_invoices' name length outside 3-30 rangeamberflo_list_customer_invoices 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~2,856トークン数(ツール定義)
~1.8 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 2.23%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "amberflo": {
      "url": "https://amberflo.usefulapi.io/mcp"
    }
  }
}

リモートエンドポイント

https://amberflo.usefulapi.io/mcpstreamable-http

できること

ツール一覧

ツール(14)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢amberflo_list_customers

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

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_get_customer(customer_id)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId to fetch."
    }
  },
  "required": [
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_list_meters

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.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_get_usage(meter_api_name, aggregation, time_grouping_interval, start_time_in_seconds, end_time_in_seconds, ...)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "meter_api_name": {
      "type": "string",
      "description": "The meterApiName to query (from amberflo_list_meters)."
    },
    "aggregation": {
      "type": "string",
      "enum": [
        "SUM",
        "COUNT",
        "MIN",
        "MAX"
      ],
      "description": "Aggregation function: SUM | COUNT | MIN | MAX."
    },
    "time_grouping_interval": {
      "type": "string",
      "enum": [
        "HOUR",
        "DAY",
        "WEEK",
        "MONTH"
      ],
      "description": "Bucket size: HOUR | DAY | WEEK | MONTH."
    },
    "start_time_in_seconds": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Range start, unix epoch seconds (inclusive)."
    },
    "end_time_in_seconds": {
      "description": "Range end, unix epoch seconds. Defaults to now if omitted.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "group_by": {
      "description": "Dimension names to group results by, e.g. [\"customerId\"].",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filter": {
      "description": "Dimension filter: map of dimension name -> allowed values.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "take_limit": {
      "description": "Return only the top N groups.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "take_is_ascending": {
      "description": "Sort order for `take` (default false = descending).",
      "type": "boolean"
    }
  },
  "required": [
    "meter_api_name",
    "aggregation",
    "time_grouping_interval",
    "start_time_in_seconds"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_get_all_usage(start_time_in_seconds, end_time_in_seconds, time_grouping_interval, group_by_customer_id, filter_by_customer_id)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "start_time_in_seconds": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Range start, unix epoch seconds (inclusive)."
    },
    "end_time_in_seconds": {
      "description": "Range end, unix epoch seconds. Defaults to now if omitted.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "time_grouping_interval": {
      "type": "string",
      "enum": [
        "HOUR",
        "DAY",
        "WEEK",
        "MONTH"
      ],
      "description": "Bucket size: HOUR | DAY | WEEK | MONTH."
    },
    "group_by_customer_id": {
      "description": "When true, group results by customer (sends groupBy=customerId).",
      "type": "boolean"
    },
    "filter_by_customer_id": {
      "description": "Restrict results to a single customerId.",
      "type": "string"
    }
  },
  "required": [
    "start_time_in_seconds",
    "time_grouping_interval"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_explain_usage(meter_api_name, start_time_in_seconds, end_time_in_seconds, take_limit, group_by, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "meter_api_name": {
      "type": "string",
      "description": "The meterApiName to explain (from amberflo_list_meters)."
    },
    "start_time_in_seconds": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Range start, unix epoch seconds (inclusive)."
    },
    "end_time_in_seconds": {
      "description": "Range end, unix epoch seconds. Defaults to now if omitted.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "take_limit": {
      "description": "Return only the top N records.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "group_by": {
      "description": "Dimension names to group by, e.g. [\"customerId\"].",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filter": {
      "description": "Dimension filter: map of dimension name -> allowed values.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "aggregation": {
      "description": "Aggregation function: SUM | COUNT | MIN | MAX.",
      "type": "string",
      "enum": [
        "SUM",
        "COUNT",
        "MIN",
        "MAX"
      ]
    }
  },
  "required": [
    "meter_api_name",
    "start_time_in_seconds"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_get_customer_plan(customer_id)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId."
    }
  },
  "required": [
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_list_customer_plan_history(customer_id)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId."
    }
  },
  "required": [
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_list_customer_invoices(customer_id, product_id, from_cache, with_payment_status)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId."
    },
    "product_id": {
      "description": "Product id. Default \"1\".",
      "type": "string"
    },
    "from_cache": {
      "description": "Use cached invoices (faster). Default true.",
      "type": "boolean"
    },
    "with_payment_status": {
      "description": "Include payment status. Default true.",
      "type": "boolean"
    }
  },
  "required": [
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_get_customer_invoice(customer_id, product_id, from_cache, with_payment_status, latest, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId."
    },
    "product_id": {
      "description": "Product id. Default \"1\".",
      "type": "string"
    },
    "from_cache": {
      "description": "Use cached invoice (faster). Default true.",
      "type": "boolean"
    },
    "with_payment_status": {
      "description": "Include payment status. Default true.",
      "type": "boolean"
    },
    "latest": {
      "description": "Fetch the current open invoice. Default true. Ignored when a specific invoice is addressed.",
      "type": "boolean"
    },
    "product_plan_id": {
      "description": "Product plan id of a specific past invoice (with year/month/day).",
      "type": "string"
    },
    "year": {
      "description": "Year of a specific past invoice.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "month": {
      "description": "Month (1-12) of a specific past invoice.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "day": {
      "description": "Day of month of a specific past invoice.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢amberflo_list_prepaid_orders(customer_id, product_id)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId."
    },
    "product_id": {
      "description": "Product id. Default \"1\".",
      "type": "string"
    }
  },
  "required": [
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴amberflo_create_customer(customer_id, customer_name, customer_email, enabled, traits, ...)

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/.

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "Unique customerId to assign (your identifier for the customer)."
    },
    "customer_name": {
      "type": "string",
      "description": "Human-readable customer name."
    },
    "customer_email": {
      "description": "Customer email address.",
      "type": "string"
    },
    "enabled": {
      "description": "Whether the customer is enabled.",
      "type": "boolean"
    },
    "traits": {
      "description": "Arbitrary string traits (key/value metadata).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "create_in_stripe": {
      "description": "When true, also auto-create this customer in Stripe (adds ?autoCreateCustomerInStripe=true).",
      "type": "boolean"
    }
  },
  "required": [
    "customer_id",
    "customer_name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴amberflo_assign_customer_plan(customer_id, product_plan_id, product_id, start_time_in_seconds, end_time_in_seconds)

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

入力スキーマ

{
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The Amberflo customerId to assign the plan to."
    },
    "product_plan_id": {
      "type": "string",
      "description": "The productPlanId of the plan to assign."
    },
    "product_id": {
      "description": "Product id the plan belongs to.",
      "type": "string"
    },
    "start_time_in_seconds": {
      "description": "When the plan takes effect, unix epoch seconds.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "end_time_in_seconds": {
      "description": "When the plan ends, unix epoch seconds.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "customer_id",
    "product_plan_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴amberflo_ingest_usage(meter_api_name, meter_value, meter_time_in_millis, customer_id, dimensions, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "meter_api_name": {
      "type": "string",
      "description": "The meterApiName this event is for."
    },
    "meter_value": {
      "type": "number",
      "description": "The numeric value of the usage event."
    },
    "meter_time_in_millis": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Event timestamp, unix epoch milliseconds."
    },
    "customer_id": {
      "type": "string",
      "description": "The customerId this usage belongs to."
    },
    "dimensions": {
      "description": "Optional dimensions (key/value string metadata) for the event.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "unique_id": {
      "description": "Optional idempotency/unique id for the event.",
      "type": "string"
    }
  },
  "required": [
    "meter_api_name",
    "meter_value",
    "meter_time_in_millis",
    "customer_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 14 件
検証済みバージョンは記録されていませんツール 14 件
検証済みバージョンは記録されていませんツール 14 件
検証済みバージョンは記録されていませんツール 14 件
観測失敗バージョンは記録されていません—
観測失敗バージョンは記録されていません—