Agent Billing Primitives (Dirtsmith) is an MCP server published by io.github.throttler300, hosted at gap-functions.bfurrow26.workers.dev. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 5 tools, including mcp_usage_metering, agent_spend_ledger, agent_lease_lock, agent_semaphore, agent_heartbeat_registry.
Usage metering, spend cap (reserve before pay), lease lock, semaphore, heartbeat for agents. Free tr
6 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
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.
| Parameter | Type | Description |
|---|---|---|
| units | integer | |
| source | any | |
| metadata | object | |
| caller_id | string | |
| tool_name * | string | |
| unit_label | string | |
| tool_version * | string | |
| idempotency_key * | string | |
| end_customer_ref * | string | |
| unit_price_cents | integer |
{
"name": "mcp_usage_metering",
"title": "mcp_usage_metering",
"description": "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.",
"inputSchema": {
"type": "object",
"title": "MeteringInput",
"required": [
"tool_name",
"tool_version",
"end_customer_ref",
"idempotency_key"
],
"properties": {
"units": {
"type": "integer",
"title": "Units",
"default": 1,
"maximum": 1000000,
"minimum": 1
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source",
"default": null
},
"metadata": {
"type": "object",
"title": "Metadata",
"maxProperties": 20,
"additionalProperties": {
"type": "string"
}
},
"caller_id": {
"type": "string",
"title": "Caller Id",
"default": "demo_caller"
},
"tool_name": {
"type": "string",
"title": "Tool Name",
"pattern": "^[A-Za-z0-9._/-]+$",
"maxLength": 128,
"minLength": 1
},
"unit_label": {
"type": "string",
"title": "Unit Label",
"default": "call",
"maxLength": 32,
"minLength": 1
},
"tool_version": {
"type": "string",
"title": "Tool Version",
"pattern": "^\\d+\\.\\d+\\.\\d+$"
},
"idempotency_key": {
"type": "string",
"title": "Idempotency Key",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 8
},
"end_customer_ref": {
"type": "string",
"title": "End Customer Ref",
"maxLength": 128,
"minLength": 1
},
"unit_price_cents": {
"type": "integer",
"title": "Unit Price Cents",
"default": 0,
"maximum": 100000,
"minimum": 0
}
},
"additionalProperties": false
}
}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).
| Parameter | Type | Description |
|---|---|---|
| memo | string | |
| ttl_s | integer | |
| action * | string | one of ["set_budget","reserve","settle","release","status"] |
| source | any | |
| budget_id * | string | |
| caller_id | string | |
| namespace * | string | |
| limit_micros | integer | |
| amount_micros | integer | |
| reservation_id | any | |
| idempotency_key * |
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).
| Parameter | Type | Description |
|---|---|---|
| ttl_s | integer | |
| action * | string | one of ["acquire","renew","release","status"] |
| source | any | |
| caller_id | string | |
| holder_id | string | |
| lock_name * | string | |
| namespace * | string | |
| idempotency_key * | string |
{
"name": "agent_lease_lock",
"title": "agent_lease_lock",
"description": "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).",
"inputSchema": {
"type": "object",
"title": "LeaseLockInput",
"required": [
"namespace",
"action",
"lock_name",
"idempotency_key"
],
"properties": {
"ttl_s": {
"type": "integer",
"title": "Ttl S",
"default": 60,
"maximum": 3600,
"minimum": 1
},
"action": {
"enum": [
"acquire",
"renew",
"release",
"status"
],
"type": "string",
"title": "Action"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source",
"default": null
},
"caller_id": {
"type": "string",
"title": "Caller Id",
"default": "demo_caller"
},
"holder_id": {
"type": "string",
"title": "Holder Id",
"default": "",
"pattern": "^[A-Za-z0-9._:/-]*$",
"maxLength": 128
},
"lock_name": {
"type": "string",
"title": "Lock Name",
"pattern": "^[A-Za-z0-9._:/-]+$",
"maxLength": 128,
"minLength": 1
},
"namespace": {
"type": "string",
"title": "Namespace",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 16
},
"idempotency_key": {
"type": "string",
"title": "Idempotency Key",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 8
}
},
"additionalProperties": false
}
}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).
| Parameter | Type | Description |
|---|---|---|
| ttl_s | integer | |
| action * | string | one of ["acquire","release","status"] |
| source | any | |
| caller_id | string | |
| holder_id | string | |
| max_slots | integer | |
| namespace * | string | |
| permit_id | string | |
| semaphore * | string | |
| idempotency_key * | string |
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).
| Parameter | Type | Description |
|---|---|---|
| note | string | |
| action * | string | one of ["beat","status","list_stale"] |
| source | any | |
| grace_s | integer | |
| agent_id | string | |
| caller_id | string | |
| namespace * | string | |
| interval_s | integer | |
| idempotency_key * | string |
Every tools/call needs a solved packet: call once, get PACKET_REQUIRED with a tiny packet and its rule, solve it (under 2 s), retry the same call with packet:{packet_id, solution}. No signup or key. A small free allowance applies. If a call returns isError with error_code PAYMENT_REQUIRED, structuredContent.payment holds a one-click approve_and_pay_url for your human (or pay per call via x402); poll payment.poll_url, then retry the same call with header X-Grant-Token.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| string |
{
"name": "agent_spend_ledger",
"title": "agent_spend_ledger",
"description": "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).",
"inputSchema": {
"type": "object",
"title": "SpendLedgerInput",
"required": [
"namespace",
"action",
"budget_id",
"idempotency_key"
],
"properties": {
"memo": {
"type": "string",
"title": "Memo",
"default": "",
"maxLength": 200
},
"ttl_s": {
"type": "integer",
"title": "Ttl S",
"default": 900,
"maximum": 86400,
"minimum": 5
},
"action": {
"enum": [
"set_budget",
"reserve",
"settle",
"release",
"status"
],
"type": "string",
"title": "Action"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source",
"default": null
},
"budget_id": {
"type": "string",
"title": "Budget Id",
"pattern": "^[A-Za-z0-9._:/-]+$",
"maxLength": 128,
"minLength": 1
},
"caller_id": {
"type": "string",
"title": "Caller Id",
"default": "demo_caller"
},
"namespace": {
"type": "string",
"title": "Namespace",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 16
},
"limit_micros": {
"type": "integer",
"title": "Limit Micros",
"default": 0,
"maximum": 1000000000000,
"minimum": 0
},
"amount_micros": {
"type": "integer",
"title": "Amount Micros",
"default": 0,
"maximum": 1000000000000,
"minimum": 0
},
"reservation_id": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 8
},
{
"type": "null"
}
],
"title": "Reservation Id",
"default": null
},
"idempotency_key": {
"type": "string",
"title": "Idempotency Key",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 8
}
},
"additionalProperties": false
}
}{
"name": "agent_semaphore",
"title": "agent_semaphore",
"description": "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).",
"inputSchema": {
"type": "object",
"title": "SemIn",
"required": [
"namespace",
"semaphore",
"action",
"idempotency_key"
],
"properties": {
"ttl_s": {
"type": "integer",
"title": "Ttl S",
"default": 60,
"maximum": 3600,
"minimum": 1
},
"action": {
"enum": [
"acquire",
"release",
"status"
],
"type": "string",
"title": "Action"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source",
"default": null
},
"caller_id": {
"type": "string",
"title": "Caller Id",
"default": "demo_caller"
},
"holder_id": {
"type": "string",
"title": "Holder Id",
"default": "",
"pattern": "^[A-Za-z0-9._:/-]*$",
"maxLength": 128
},
"max_slots": {
"type": "integer",
"title": "Max Slots",
"default": 1,
"maximum": 1000,
"minimum": 1
},
"namespace": {
"type": "string",
"title": "Namespace",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 16
},
"permit_id": {
"type": "string",
"title": "Permit Id",
"default": "",
"pattern": "^[A-Za-z0-9_]*$",
"maxLength": 64
},
"semaphore": {
"type": "string",
"title": "Semaphore",
"pattern": "^[A-Za-z0-9._:/-]+$",
"maxLength": 128,
"minLength": 1
},
"idempotency_key": {
"type": "string",
"title": "Idempotency Key",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 8
}
},
"additionalProperties": false
}
}{
"name": "agent_heartbeat_registry",
"title": "agent_heartbeat_registry",
"description": "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).",
"inputSchema": {
"type": "object",
"title": "HbIn",
"required": [
"namespace",
"action",
"idempotency_key"
],
"properties": {
"note": {
"type": "string",
"title": "Note",
"default": "",
"maxLength": 200
},
"action": {
"enum": [
"beat",
"status",
"list_stale"
],
"type": "string",
"title": "Action"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source",
"default": null
},
"grace_s": {
"type": "integer",
"title": "Grace S",
"default": 30,
"maximum": 86400,
"minimum": 0
},
"agent_id": {
"type": "string",
"title": "Agent Id",
"default": "",
"pattern": "^[A-Za-z0-9._:/-]*$",
"maxLength": 128
},
"caller_id": {
"type": "string",
"title": "Caller Id",
"default": "demo_caller"
},
"namespace": {
"type": "string",
"title": "Namespace",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 16
},
"interval_s": {
"type": "integer",
"title": "Interval S",
"default": 60,
"maximum": 86400,
"minimum": 5
},
"idempotency_key": {
"type": "string",
"title": "Idempotency Key",
"pattern": "^[A-Za-z0-9._:-]+$",
"maxLength": 128,
"minLength": 8
}
},
"additionalProperties": false
}
}