Agent Billing Primitives (Dirtsmith)
Server Details
Usage metering, spend cap (reserve before pay), lease lock, semaphore, heartbeat for agents. Free tr
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- throttler300/mcp-usage-metering
- GitHub Stars
- 0
- Server Listing
- MCP Usage Metering
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 5 tools
Each tool maps to a distinct distributed-systems primitive: liveness heartbeat, mutex/lease, counting semaphore, budget reserve/settle, and usage metering. The only genuine overlap is lease_lock vs semaphore (both concurrency control), but the descriptions clearly separate mutex-with-fencing-token from count-N slots, so an agent can pick correctly. Dense descriptions risk noise, but boundaries are stated.
All names are snake_case and follow a predictable resource_primitive shape (agent_heartbeat_registry, agent_lease_lock, agent_semaphore, agent_spend_ledger), with one minor deviation in the mcp_ prefix of mcp_usage_metering. There is no verb_noun convention, but the noun-phrase pattern is internally consistent and readable.
Five tools for a small set of billing/coordination primitives is tight and each one clearly earns its place. Nothing feels padded or missing at the count level.
The surface covers the core lifecycle for each primitive: acquire/renew/release for locks, reserve/settle/release for budget, record/invoice-preview for metering, beat/list_stale for heartbeat. Minor gaps exist around read-only inspection (querying current budget balance, listing active leases/semaphore holders, voiding or reconciling invoices), which agents would likely want but can partially work around.
Available Tools
5 toolsagent_heartbeat_registryagent_heartbeat_registryBInspect
Heartbeat registry / dead-man switch / liveness check for AI agents: agents beat with an interval and grace; list_stale shows which agents went silent or crashed. Idempotent, shared by namespace. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_heartbeat_registry).
Inputs: action (required), namespace (required), idempotency_key (required), note, +5 more.
agent_lease_lockagent_lease_lockBInspect
Distributed lock / lease lock (mutex) for AI agents: acquire, renew, release a named lock with TTL and a monotonic fencing token so only one agent runs a job at a time. Idempotent, shared by namespace, no Redis needed. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_lease_lock).
Inputs: action (required), lock_name (required), namespace (required), idempotency_key (required), +4 more.
agent_semaphoreagent_semaphoreBInspect
Counting semaphore / concurrency limit for AI agents: at most N agents hold a slot at once (rate limit parallel workers), TTL permits with fencing tokens, auto-expire on crash. Idempotent, shared by namespace. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_semaphore).
Inputs: action (required), namespace (required), semaphore (required), idempotency_key (required), +6 more.
agent_spend_ledgeragent_spend_ledgerAInspect
Agent spend cap / budget ledger: set a budget, reserve before pay (atomic, never overspends even with many agents in parallel), then settle or release. Idempotent, shared by namespace. Spending limit, budget guard, cost control for AI agents. Every call requires a tiny solved packet (returned in the reply, 2 s, one try); free first call, no API key (GET /try?tool=agent_spend_ledger).
Inputs: action (required), budget_id (required), namespace (required), idempotency_key (required), +7 more.
mcp_usage_meteringmcp_usage_meteringBInspect
Usage metering for MCP tools and AI agents: record a billable usage event per tool call (idempotent, idempotency_key dedupes retries) and get an invoice line preview. Per-call billing, usage-based pricing, metered billing for MCP servers. Every call requires one solved task: a tiny data packet, OR (this tool only) a public item: one line of public-domain text plus a deterministic format conversion (snake_case, word count, uppercase) with a known answer, returned as item_alternative; answer it within 2 s via item:{item_id, answer}. Verified answers are stored and readable at GET /items. Free first call, no API key (GET /try). Pay-ahead: every response carries next_work_packet; pass work_answer {work_packet_id, labels} on your next call (under 2 s) instead of solving a fresh packet. That work is our own internal classification (Buyer Zero), not customer data.
Inputs: tool_name (required), tool_version (required), idempotency_key (required), end_customer_ref (required), +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Usage metering + SLA accounting for agent services (the meter behind x402 micropayments).
Idempotency keys, locks, timers, and inboxes for agents over MCP. No payments.
Coordinate multiple AI agents over MCP: atomic claims, leases, shared ledger, handoffs, tasks.
Meter, cap, and block AI agent spend before the provider is charged.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceBudget & cost control for AI agents: hard per-agent spend caps, rate limits, idempotency, and human-in-the-loop approval — enforced before each LLM call, not after the invoice. One hosted MCP endpoint (no proxy or self-hosting), settled via x402 (USDC on Base).MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents and multi-agent frameworks to throttle outbound LLM API calls with multi-provider token-bucket and sliding-window limiting, plus predictive token-consumption budgeting to avoid TPM/RPM throttling. It runs deterministically over MCP with zero dependencies, returning rate-limit decisions and telemetry for any client such as Claude Desktop or Cursor.7-
- AlicenseCqualityAmaintenanceMCP services for agent security preflight, source scanning, injection screening, proof-of-work policy rehearsal, carbon accounting, climate disclosure and regulatory monitoring. Use each hosted endpoint in the README. Inspect a free quote before buyer-authorized x402/USDC payment. Includes free trust and settlement tools. Maxwell rehearsal does not activate runtime protection.220Apache 2.0

Shotokuofficial
AlicenseNot gradedqualityBmaintenanceLocal-first spend controls for AI agents. Budgets, human approvals and a tamper-evident audit trail for any MCP server. Deterministic. No custody.13MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.