rightos-mcp
v0.5.1RightOS MCP: privacy-first QR queue/EV/pickup.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_plans
List RightOS pricing plans (globally uniform pricing, free tier available).
get_token
Get a Right Token (digital QR ticket) by its tokenId. Never returns the secret verification code.
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | Token ID (tok_...) |
verify_token
Verify a Right Token with its verification code. Result is success / failed / expired / cancelled / already_used / not_yet_valid (when enforceTimeWindow blocks verify before startTime). Rate limited (10/min per token).
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | Token ID (tok_...) |
verificationCode * | string | The holder's verification code |
transfer_token
Transfer a Right Token to a new holder (re-keying: a new verification code is issued and the old one is invalidated immediately). Only the current holder can transfer. May be rejected by the location's policy (policy_transfer_disabled / transfer_limit_reached).
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | Token ID (tok_...) |
verificationCode * | string | Current verification code, proving transfer authority |
holder_cancel_token
Self-cancel a Right Token as its current holder (proven by the verification code). May be rejected by the location's policy (policy_cancel_disabled). Irreversible. Rate limited like verify.
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | Token ID (tok_...) |
verificationCode * | string | Current verification code, proving holder authority |
get_location_policy
Get a location's effective policy (transferability, max transfers, default validity, holder self-cancellation). Resolution: industry preset -> country overlay -> location override. Public for transparency.
| Parameter | Type | Description |
|---|---|---|
locationId * | string | Location ID (loc_...) |
list_policies
List the full policy knowledge base: industry presets per location type and country overlays (JP, US, GB, KR, TW, FR, DE, IT, ES, AU — informed by local ticket-resale laws). Useful when choosing a location type or proposing policy overrides. Defaults, not legal advice. Public.
get_location_queue
Public queue snapshot for a location (counts only, no PII). Optional tokenId adds aheadCount and queuePosition. Does not auto-call or assign staff (ADR-0024).
| Parameter | Type | Description |
|---|---|---|
locationId * | string | Location ID (loc_...) |
tokenId | string | Optional token ID to include aheadCount and queuePosition |
list_locations
List your organization's locations. Requires the RIGHTOS_API_KEY environment variable (operator API key).
list_tokens
List your organization's Right Tokens. Filter by locationId, status, and since (ISO 8601). Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
locationId | string | Filter by location ID |
since | string | Only tokens created at or after this ISO 8601 time |
status | string | Filter by token status |
create_location
Create a location (shop, clinic, ev_charging, event, logistics, pickup, other). Returns 402 if the plan's location limit is exceeded. Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
name * | string | Location name |
address | string | Address (optional) |
timezone | string | IANA timezone, e.g. Asia/Tokyo |
type | string | Location type (determines the industry policy preset) |
set_location_policy
Override a location's policy (partial update: transferable, maxTransfers, defaultValidityMinutes, verificationRequirement, holderCancellable, maxActiveTokens, enforceTimeWindow, requireVerifyBeforeUse, approachingThreshold). Set reset=true to restore the industry preset. Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
locationId * | string | Location ID (loc_...) |
approachingThreshold | queue.approaching webhook threshold: notify the organization's webhooks once per token when aheadCount drops below this after a slot frees up; null = disabled | |
defaultValidityMinutes | integer | |
enforceTimeWindow | boolean | Block verify before startTime (not_yet_valid) |
holderCancellable | boolean | Whether the current holder can self-cancel the token |
maxActiveTokens | Max concurrent active queue tokens; null = unlimited | |
maxTransfers | Max transfers; null = unlimited | |
requireVerifyBeforeUse | boolean | Require verify before mark-as-used (409 verify_required) |
reset | boolean | true = reset to the industry preset (ignores other fields) |
transferable | boolean | |
verificationRequirement | string |
issue_token
Issue a Right Token (digital QR ticket). The verification code and wallet URL are returned EXACTLY ONCE — hand the walletUrl to the end user. Returns 402 if the plan's monthly limit is exceeded. Returns 409 queue_full when maxActiveTokens is reached. Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
locationId * | string | Location ID (loc_...) |
title * | string | Ticket title, e.g. 'Queue ticket' |
description | string | |
endTime | string | ISO 8601 expiry; defaults to the location policy's default validity |
startTime | string | ISO 8601 start time |
use_token
Mark a Right Token as used after service (own organization only). Returns 409 verify_required when requireVerifyBeforeUse policy is enabled and the token is not yet verified. Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | Token ID (tok_...) |
cancel_token
Cancel a Right Token (own organization only). Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
tokenId * | string | Token ID (tok_...) |
get_policy_history
Policy change audit log for a location (before/after overrides, newest first). Append-only. Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
locationId * | string | Location ID (loc_...) |
export_data
Export all organization data (locations, tokens, verification logs, policy change history) as JSON. Contains no secret values. Requires the RIGHTOS_API_KEY environment variable (operator API key).
list_webhooks
List the organization's outbound webhooks (never includes signing secrets). Requires the RIGHTOS_API_KEY environment variable (operator API key).
create_webhook
Register an outbound webhook (up to 3 per organization, https only). Events: token.verified / token.used / token.cancelled / token.transferred / queue.approaching (defaults to all; queue.approaching fires only when the location policy sets approachingThreshold). The response includes the signing secret (whsec_...) EXACTLY ONCE — deliveries are signed via the x-rightos-signature header (t=<unix seconds>,v1=<hex HMAC-SHA256>). Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
url * | string | https URL to receive signed POST deliveries |
events | array | Event types to subscribe to (defaults to all five) |
delete_webhook
Delete an outbound webhook (own organization only). Requires the RIGHTOS_API_KEY environment variable (operator API key).
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Webhook ID (wh_...) |