shuka

v2.2.1
io.github.cdonoyan/shuka Checked 3 days ago Published 11 days ago

Universal 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…

ParameterTypeDescription
entity_data *objectThe data being attested - used to generate deterministic entity_id. Same data = same shake.
entity_type *stringCategory of entity being attested (e.g., 'medical_record', 'contract', 'license', 'compliance_check')
purpose *stringHuman-readable purpose of this shake
expires_in_daysnumberDays until expiration (default: 365)
handshake_typestringType of attestation (default: 'attestation')
industrystringIndustry 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.

ParameterTypeDescription
entity_data *objectThe entity data (used to derive entity_id)
entity_type *stringCategory 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.

ParameterTypeDescription
shake_id *stringThe 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.

ParameterTypeDescription
description *stringWhat you are attesting to. Be specific and clear; include industry and jurisdiction context in the text.
termsobjectOptional 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

ParameterTypeDescription
proof_token *stringThe 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.

ParameterTypeDescription
proof_token *stringThe proof token to verify
purposestringWhy 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

ParameterTypeDescription
brandstringFilter by brand name
license_idstringA specific license ID - returns full details plus validation instead of search results
pagenumberPage number (default: 1)
per_pagenumberResults per page (max 50)
searchstringFree-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

ParameterTypeDescription
anchor_handshake_id *stringThe shake (handshake ID) that anchors this offering - must belong to you
brand *stringBrand / title of the offering
rights_holder *stringLegal rights holder name
valid_until *stringExpiry date (ISO format, e.g. 2027-12-31)
buy_to_open_pricenumberPrice to purchase a grant
image_urlstringOffering image URL
max_grantsnumberMaximum number of grants that can be sold
permitted_usesarrayWhat grant holders may do
platform_fee_percentagenumberPlatform fee percent
prohibited_usesarrayWhat grant holders may not do
royalty_cap_usdnumberRoyalty cap in USD
royalty_percentagenumberRoyalty 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…

ParameterTypeDescription
license_id *stringThe license/offering ID to acquire
payment_amount *numberPayment 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

ParameterTypeDescription
grant_id *stringThe 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.

ParameterTypeDescription
action *stringbrowse: list enterprise offerings. acquire: currently returns 501 not_implemented.
brandstring(browse) Filter by brand
license_idstring(acquire) The enterprise license ID
max_pricenumber(browse) Maximum price
min_seatsnumber(browse) Minimum seats needed
seats_needednumber(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…

ParameterTypeDescription
action *stringThe terms operation to perform
access_configobject(create) Access-type-specific config (e.g. valid_until, max_uses)
access_typestring(create) How the data may be accessed
accessor_idstring(record_access) Who accessed (defaults to this agent)
handshake_idstring(create, by_handshake) The handshake the terms ride on
permitted_purposesarray(create) Purposes the data may be used for
prohibited_purposesarray(create) Purposes the data may NOT be used for
purposestring(record_access) Why the data was accessed
reasonstring(revoke) Why the terms are being revoked — REQUIRED for revoke
terms_idstring(get, update, revoke, record_access, revisions, receipts) The terms ID
updatesobject(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…

ParameterTypeDescription
action *stringThe registry operation to perform
entity_idstring(history, lookup, can_issue, will_accept) The entity ID
entity_typestring(history) Ledger entity type (e.g. 'license', 'grant')
industrystring(discover) Filter registries by industry
issuer_idstring(will_accept, interop_check) The issuer entity ID
receiver_idstring(interop_check) The receiver entity ID
shake_typestring(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.

ParameterTypeDescription
handshake_idstringHandshake ID (alternative to proof_token)
proof_tokenstringCompact proof token (shk_v1....) — or use terms_id / handshake_id
purposestringDeclared purpose of access (e.g. 'care_coordination')
recordbooleanRecord a receipt + ledger event on allow (default true)
terms_idstringTerms 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.

ParameterTypeDescription
grant_id *stringThe grant ID to revoke
reasonstringRevocation reason (audit trail)