mcpserver.lol
registry/ratchet
Connection check verified live · 28h ago

ratchet

An effect gate for AI agents: at-most-once side effects, spend limits, and signed receipts.

Tools 15
GitHub stars
Installs / wk
Licence Apache-2.0
Transport streamable-http, stdio
Last checked 28h ago

Tools & capabilities

15 tools

Read from the running server on 28h ago.

ratchet_begin_effect run_idvendorpayloadagent_idgroup_keydimensions +6
Call this IMMEDIATELY BEFORE performing any side effect that touches the outside world (sending a message, charging a card, creating a resource, writing to someone else's system).…
ratchet_extend_lease effect_id*lease_token*extend_seconds
Call this periodically during a long action you were authorised to perform, before the lease expires. It tells Ratchet you are alive and extends your hold. Use it when work turns o…
ratchet_get_circuit read-only
Call this when a begin returned "approval_required" or "denied" and the reason mentions a circuit breaker. A breaker opens when an effect type is being performed far more often tha…
ratchet_get_effect read-only effect_type*idempotency_key*
Look up the recorded state of an action WITHOUT reserving a lease and without consuming your plan allowance. Use it to answer "did I already do this?" — for example when resuming a…
ratchet_get_group read-only group_key*
Shows every step in a multi-step unit of work: what succeeded, what can still be undone, what has already been undone, what is irreversible, and what has an unknown outcome. Use it…
ratchet_get_policy read-only effect_type*
Shows how this workspace has configured a given effect type: whether it is allowed, how long a lease lasts, the attempt ceiling, spend limits, the approval threshold above which an…
ratchet_get_prevented_loss read-only
Counts duplicate actions refused in the last 30 days and what they would have cost. Only counts refusals where a cost was declared on the effect, so it under-reports rather than fl…
ratchet_get_run read-only run_id*
Recall the work already gated under a run id, before doing anything that might repeat it. Call this FIRST when resuming a task — after a restart, a handoff, or when your context ha…
ratchet_get_usage read-only
Returns the current plan, remaining included effects for the month, prepaid credit balance, and today's declared external spend against each budget ceiling. Use it to warn a user b…
ratchet_list_effects read-only limitstaterun_ideffect_type
Review recent effects for this workspace, optionally filtered by state or run. Use it to find unresolved work — filter by state "indeterminate" to see every action whose outcome is…
ratchet_list_receipts read-only effect_id*
Returns a signed receipt for every decision made about one effect, refusals included. Each signature is over the exact bytes in `body` and verifies offline against the Ed25519 key…
ratchet_reconcile_effects read-only keys*effect_type*
Given the idempotency keys for actions a vendor says actually happened, returns which ones went through Ratchet and which it has never seen. The unseen ones are code paths that act…
ratchet_report_effect resultoutcome*effect_id*lease_token*failure_reasonactual_cost_micros
Call this IMMEDIATELY AFTER performing an action that ratchet_begin_effect authorised. Pass the lease_token you were given. Report "succeeded" with a result — future duplicate call…
ratchet_resolve_effect resultoutcome*evidenceeffect_id*
Use ONLY after you have checked the third-party system and now know what really happened to an effect that was left "indeterminate". Record "succeeded" if the action did occur, "fa…
ratchet_unwind_group reasongroup_key*
Call this when a multi-step workflow fails partway and the steps that already succeeded must be undone — a booking made but not paid for, a resource created but not configured. Ret…