writ_check
Check if a consequential AI-agent write may proceed before sending payments, messages, changing access, or deleting data; receive ALLOW, DENY, or STEP_UP plus an audit receipt.
Instructions
Ask Writ whether an action may proceed. CALL THIS BEFORE any consequential write.
A consequential write is anything hard to undo: sending money or messages, changing access or identity records, deleting data, calling an external API that acts in the world.
Args: sponsor_id: The human sponsor accountable for this action (e.g. a user id or email). agent_id: The agent or workflow performing the action. verb: What is being done (e.g. "verify_human", "send_payment"). target: What it acts on (e.g. "benefit-case-123"). purpose: Why, in plain words. Be specific — the approval is bound to this purpose. environment: Optional policy environment: "dev", "staging", or "prod". The check runs against that environment's policy override (verbs it doesn't override inherit the tenant default). Omit for the tenant default. An unknown name denies fail-closed — never silently falls back.
Returns a decision: ALLOW — proceed. You get an authToken valid 90 seconds, bound to this exact sponsor/agent/verb/target/purpose. Call writ_verify_token against the intended write immediately before executing it. DENY — do NOT perform the action. Explain the receipt reason to the user. STEP_UP — a human sponsor must approve first. Tell the user what needs approval; they can approve via writ_grant (or the dashboard), then call writ_check again. Every outcome creates an audit receipt with a receiptId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sponsor_id": "<sponsor_id>",
"agent_id": "<agent_id>",
"verb": "<verb>",
"target": "<target>",
"purpose": "<purpose>"
},
"name": "writ_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verb | Yes | ||
| target | Yes | ||
| purpose | Yes | ||
| agent_id | Yes | ||
| sponsor_id | Yes | ||
| environment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |