Four Levels of Revocation
Level 1 — Block a Single Tool
Add a guardrail that blocks one specific tool. The server connection and all other tools remain active. When to use: You want to prevent a specific dangerous action without disrupting the agent’s other capabilities. Example: Blockdelete_event on Google Calendar but keep read access and create_event available.
Level 2 — Restrict Specific Operations on a Server
Add multiple guardrails to block a subset of tools on a server, or modify existing guardrails to restrict parameters. When to use: You need to reduce the scope of what an agent can do on a server without revoking the entire connection.Level 3 — Revoke a Server Connection
Revoke the OAuth or API key credential for one MCP server. The agent loses all access to that server immediately. When to use: You no longer trust the agent’s access to a specific service, or the credential was compromised. Example: Revoke Gmail access entirely while keeping Google Calendar connected.Level 4 — Delete the Toolkit (Nuclear Option)
Delete the entire toolkit. All server connections within it are severed simultaneously. When to use: You need to stop the agent from accessing everything immediately. Use in incident response when the threat is broad.Why Revocation is Chat-Only (Not API)
The Civic Chat endpoint is separated from the AI agent layer by design. If revocation were available through the same API that your agent calls, a compromised agent could:- Revoke its own guardrails to gain broader access
- Delete another agent’s access as part of a prompt injection attack
- Prevent the human operator from being able to revoke it
Incident Response Pattern
Revoke immediately
Don’t investigate first — stop the bleeding. Delete the toolkit or revoke the relevant server connection.
Check the audit log
Review what the agent actually did before you revoked it.See Audit and Observability for detailed queries.
Review guardrails
Determine what guardrail would have prevented the problematic action. Add it before re-authorizing.
Scope of Revocation
Revocation applies at the Hub layer. It stops the agent from making further tool calls through Civic. It does not:- Undo tool calls already executed (e.g., emails already sent, events already deleted)
- Revoke the OAuth grant at the provider level (do this separately if needed)
- Stop any local agent actions outside the Civic Hub (file system, terminal, etc.)
- Guarantee that cached responses in the agent’s context are cleared
Guardrails
Proactive restrictions — prevent problematic calls before they happen
Audit Trail
Understand what the agent did before and after revocation
Civic Chat
The Revocation Agent — example prompts and workflow
Secret Management
How credentials are stored and what revocation does to them

