shuka
v2.2.1Universal trust attestation for AI agents: create, verify, and negotiate Shuka trust proofs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_idempotent_shake
Create or retrieve an idempotent Shuka shake. RECOMMENDED for most use cases. The One Ring: Same entity_data always returns the same shake. This is the magic that enables AI agents to repeatedly attest to the same data without creating duplicates - critical for enterprise integrations. This shake is the anchor for EVERYTHING else in the united flow: attach terms (manage_terms), issue a marketplace offering from it (issue_license), and its lifecycle is recorded in the registry (registry). Use this when you need to: - Attest to data that may be referenced multiple times - Create portable proo…
| Parameter | Type | Description |
|---|---|---|
entity_data * | object | The data being attested - used to generate deterministic entity_id. Same data = same shake. |
entity_type * | string | Category of entity being attested (e.g., 'medical_record', 'contract', 'license', 'compliance_check') |
purpose * | string | Human-readable purpose of this shake |
expires_in_days | number | Days until expiration (default: 365) |
handshake_type | string | Type of attestation (default: 'attestation') |
industry | string | Industry context (default: 'sdk') |
lookup_shake
Look up an existing shake by entity identifiers. Use this to check if a shake already exists before creating a new one, or to retrieve shake details for data you've previously attested. Returns the shake if found, or null if not found.
| Parameter | Type | Description |
|---|---|---|
entity_data * | object | The entity data (used to derive entity_id) |
entity_type * | string | Category of entity |
verify_shake
Verify a shake by its ID and get trust information. Use this to confirm a shake is valid and check its trust score before proceeding with a data exchange.
| Parameter | Type | Description |
|---|---|---|
shake_id * | string | The handshake ID to verify |
create_attestation
Create a verifiable Shuka attestation for any claim or data. Use this when you need to: - Prove a claim is true with cryptographic certainty - Create an audit trail for data being shared - Attest to compliance, consent, or authorization - Generate a portable proof that other agents can verify Returns a proof token (shk_v1.xxx.yyy) that anyone can verify. Include industry/jurisdiction context directly in the description text — the attestation records the text and optional terms.
| Parameter | Type | Description |
|---|---|---|
description * | string | What you are attesting to. Be specific and clear; include industry and jurisdiction context in the text. |
terms | object | Optional access terms: access_type (single_use|time_limited|use_limited|perpetual|session_bound|windowed), validity_days, require_receipt, permitted_purposes, prohibited_purposes |
verify_proof
Verify a Shuka proof token and get details about the attestation. Use this when you: - Receive a proof token and need to confirm it's valid - Want to check the trust score before proceeding - Need to see what was attested and when - Want to verify claims before acting on data Proof tokens look like: shk_v1.YWJjMTIz.a1b2c3 or ENV-xxx
| Parameter | Type | Description |
|---|---|---|
proof_token * | string | The Shuka proof token to verify (shk_v1.xxx.yyy or ENV-xxx format) |
negotiate_trust
Perform agent-to-agent trust negotiation with Shuka as the arbiter. Use this when: - Another agent presents a proof and you need Shuka to vouch for it - You need a recommendation on whether to proceed with a data exchange - You want detailed validation evidence before trusting external data Returns a recommendation: safe_to_proceed, proceed_with_caution, additional_verification_recommended, or do_not_proceed. NOTE: negotiation is a billable operation (standard shake rate). An invalid proof is rejected by a free pre-check before any charge.
| Parameter | Type | Description |
|---|---|---|
proof_token * | string | The proof token to verify |
purpose | string | Why you need to verify this (provides context for the trust decision) |
browse_marketplace
Browse the shake-anchored license marketplace. Every offering in the marketplace is anchored to a Shuka shake that proves the underlying rights. Without a license_id this searches offerings; with a license_id it returns full details plus a validation check. Use this to: - Discover license offerings by keyword or brand - Inspect a specific offering before purchasing (purchase_license) - Confirm an offering is real, active, and in good standing
| Parameter | Type | Description |
|---|---|---|
brand | string | Filter by brand name |
license_id | string | A specific license ID - returns full details plus validation instead of search results |
page | number | Page number (default: 1) |
per_page | number | Results per page (max 50) |
search | string | Free-text search across offerings |
issue_license
Issue a license offering anchored to one of YOUR handshakes (shakes). The united flow: your shake proves the underlying rights; the offering is issued FROM that shake; buyers purchase grants against it; every event is recorded in the append-only registry. Requires an SDK key with license:write permission and an issuer-capable account (Partner/Admin). Get keys at https://shuka.app/dashboard/api-keys Use this to: - Turn an attested asset (voice likeness, IP, dataset rights) into a sellable offering - Set pricing, permitted/prohibited uses, royalties, and grant caps
| Parameter | Type | Description |
|---|---|---|
anchor_handshake_id * | string | The shake (handshake ID) that anchors this offering - must belong to you |
brand * | string | Brand / title of the offering |
rights_holder * | string | Legal rights holder name |
valid_until * | string | Expiry date (ISO format, e.g. 2027-12-31) |
buy_to_open_price | number | Price to purchase a grant |
image_url | string | Offering image URL |
max_grants | number | Maximum number of grants that can be sold |
permitted_uses | array | What grant holders may do |
platform_fee_percentage | number | Platform fee percent |
prohibited_uses | array | What grant holders may not do |
royalty_cap_usd | number | Royalty cap in USD |
royalty_percentage | number | Royalty percent recorded in contract terms |
purchase_license
Purchase a license from the marketplace (creates a grant). Returns the transaction, portfolio entry, and the attestation (handshake + proof_token) anchoring the grant to the registry ledger. The proof_token is portable - any agent can verify it with verify_proof. Acquisition is idempotent per buyer+license: a replay returns 409 with no double charge; a license you already own returns 409 already_owned; a payment_amount that doesn't match the current list price returns 400 carrying license_price. Use this to: - Acquire usage rights for an offering found via browse_marketplace - Get a cryptog…
| Parameter | Type | Description |
|---|---|---|
license_id * | string | The license/offering ID to acquire |
payment_amount * | number | Payment amount (must match the offering price) |
verify_grant
Verify a marketplace grant against the append-only registry ledger. Returns the grant status, the anchoring license offering, the attestation, and the integrity of the ledger chain. This is how any agent confirms a grant is real, active, and unrevoked - without trusting the grant holder. Use this when: - Another party claims to hold a license grant - You need to confirm a grant before honoring its permitted uses
| Parameter | Type | Description |
|---|---|---|
grant_id * | string | The grant ID to verify (GRANT-...) |
enterprise_licenses
Browse enterprise (multi-seat) license offerings. action="browse": list enterprise offerings (filter by brand, min_seats, max_price). action="acquire": NOT CURRENTLY AVAILABLE — the enterprise seat model is not built yet and the backend returns 501 not_implemented. Use purchase_license for single-grant acquisitions.
| Parameter | Type | Description |
|---|---|---|
action * | string | browse: list enterprise offerings. acquire: currently returns 501 not_implemented. |
brand | string | (browse) Filter by brand |
license_id | string | (acquire) The enterprise license ID |
max_price | number | (browse) Maximum price |
min_seats | number | (browse) Minimum seats needed |
seats_needed | number | (acquire) Number of seats to acquire |
manage_terms
Manage the rules layer: modifiable terms riding on immutable handshakes. The shake never changes; the terms on it can be amended, re-priced, or revoked WITHOUT re-attesting. This is how user IP stays under the owner's control after attestation. Actions (all require an SDK key assigned to a user; most are billable): - create: attach terms to a handshake (requires handshake_id; access_type defaults to perpetual; 409 terms_exist if the handshake already has terms; needs license:write, $0.05) - get: fetch terms by terms_id - update: amend terms (updates MUST include change_reason or the back…
| Parameter | Type | Description |
|---|---|---|
action * | string | The terms operation to perform |
access_config | object | (create) Access-type-specific config (e.g. valid_until, max_uses) |
access_type | string | (create) How the data may be accessed |
accessor_id | string | (record_access) Who accessed (defaults to this agent) |
handshake_id | string | (create, by_handshake) The handshake the terms ride on |
permitted_purposes | array | (create) Purposes the data may be used for |
prohibited_purposes | array | (create) Purposes the data may NOT be used for |
purpose | string | (record_access) Why the data was accessed |
reason | string | (revoke) Why the terms are being revoked — REQUIRED for revoke |
terms_id | string | (get, update, revoke, record_access, revisions, receipts) The terms ID |
updates | object | (update) Fields to change — MUST include change_reason (backend rejects without it) |
registry
Query the Shuka registry: the append-only ledger and interoperability layer. Actions: - history: full chronological ledger history for an entity (requires entity_type + entity_id) - discover: find registries by industry / shake_type - lookup: look up a registry entity by entity_id - can_issue: check whether an entity can issue a shake type (requires entity_id + shake_type) - will_accept: check whether an entity accepts a shake type from an issuer (requires entity_id + shake_type + issuer_id) - interop_check: full issuer-to-receiver interoperability check (requires issuer_id + receiver_id + sh…
| Parameter | Type | Description |
|---|---|---|
action * | string | The registry operation to perform |
entity_id | string | (history, lookup, can_issue, will_accept) The entity ID |
entity_type | string | (history) Ledger entity type (e.g. 'license', 'grant') |
industry | string | (discover) Filter registries by industry |
issuer_id | string | (will_accept, interop_check) The issuer entity ID |
receiver_id | string | (interop_check) The receiver entity ID |
shake_type | string | (discover, can_issue, will_accept, interop_check) The shake type in question |
check_access
THE DECISION POINT: may this accessor use this data for this purpose right now? Evaluates the stored Terms Layer (status, validity window, remaining uses, purpose binding) AND the shake's revocation state, server-side. Returns a SIGNED verdict. Allowed crossings are receipted and land as ACCESSED events on the hash-chained ledger; a revoked shake denies with consent_revoked. Call this BEFORE acting on data protected by a Shuka proof — it is the same check shuka.guard performs at enterprise enforcement points.
| Parameter | Type | Description |
|---|---|---|
handshake_id | string | Handshake ID (alternative to proof_token) |
proof_token | string | Compact proof token (shk_v1....) — or use terms_id / handshake_id |
purpose | string | Declared purpose of access (e.g. 'care_coordination') |
record | boolean | Record a receipt + ledger event on allow (default true) |
terms_id | string | Terms ID (alternative to proof_token) |
revoke_grant
Revoke a license grant (issuer or admin only). Writes the transactional GRANT_REVOKED event on the grant's ledger chain and revokes the grant's proof token — verify_grant reports it immediately.
| Parameter | Type | Description |
|---|---|---|
grant_id * | string | The grant ID to revoke |
reason | string | Revocation reason (audit trail) |