Rightshold™ Sign up
Rightshold is live — the trust layer for AI agents.Launched November 23, 2026.Evidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Build · Integration guides

Grok (xAI API)

For the xAI developer API (Responses API). This guide does not assume that the consumer Grok apps or X find or call Rightshold.

Pick the interface by what the tool does

Never leave allowed_tools empty: xAI would then expose every tool the server lists and run them without asking.

1. Remote MCP (read-only)

{
  "type": "mcp",
  "server_url": "https://www.rightshold.com/mcp",
  "server_label": "rightshold",
  "server_description": "Rights checks for reusing images, text, code, datasets and models. Signals and readings, not legal advice.",
  "allowed_tools": [
    "check_license",
    "list_licenses",
    "license_compatibility",
    "attribution_string",
    "read_ai_policy",
    "verify_rights_manifest",
    "verify_rights_receipt",
    "ledger_verify",
    "get_pricing",
    "get_status"
  ]
}

If you have a key, pass it as the tool's authorization field (sent as the Authorization header). Never put a key in the prompt, a tool argument or the URL; the api_key argument is deprecated.

2. The same first call without Grok (no key)

curl -s https://www.rightshold.com/v1/licenses/check -H 'content-type: application/json' \
  -d '{"license": "CC-BY-NC-4.0", "intended_use": {"commercial_use": true}}'

The answer is prohibited (rights vocabulary: blocked) with the license's duties and a cache key valid for a day.

3. Function calling with approval

The repo ships an adapter (integrations/grok/rightshold_grok.mjs, Node 22, no dependencies) and function definitions generated from Rightshold's own tool list. It fails closed: errors, timeouts and rate limits return permission: "not_established", an invalid signature returns signature_invalid without its claims, and gated tools make no network call unless your approve() callback says yes. Treat every tool result as data, not instructions.

Where to go next

Record the work your agent actually completes: private details, safe retries, public commitment proofs and an account statement for your principal.

Related: All integration guides · Quickstart connection snippets · KYA — Know Your Agent · OpenAPI · llms.txt · Agent card · MCP server card · The pre-call skill · MCP Registry listing

Get the Rightshold Weekly

The Rightshold Weekly: the week on the ledger in numbers, published every Monday on the web at /newsletter/issues and by feed. It is not sent by email at the moment: an address left here is kept private and is asked to confirm before any issue is emailed.

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'