revoke_oauth_token

Revoke the stored OAuth token and sign the user out of the YouTube MCP server. Calls Google

Server Ytmcp @mrsknetwork/ytmcp
Category Destructive
Risk class Critical
Parameters 00 required

What revoke_oauth_token does on Ytmcp

AI agents call revoke_oauth_token to permanently remove resources in Ytmcp — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Why revoke_oauth_token needs a policy

An AI agent that decides to call revoke_oauth_token doesn't hesitate, doesn't double-check, and doesn't stop at one. Whatever it removes from Ytmcp is gone — there is no undo for destructive operations.

Questions about revoke_oauth_token

What does the revoke_oauth_token tool do? +

Revoke the stored OAuth token and sign the user out of the YouTube MCP server. Calls Google. It is categorised as a Destructive tool in the Ytmcp MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on revoke_oauth_token? +

Register the Yt MCP server in PolicyLayer and add a rule for revoke_oauth_token: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Ytmcp. Nothing to install.

What risk level is revoke_oauth_token? +

revoke_oauth_token is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit revoke_oauth_token? +

Yes. Add a rate_limit block to the revoke_oauth_token rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block revoke_oauth_token completely? +

Set action: deny in the PolicyLayer policy for revoke_oauth_token. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides revoke_oauth_token? +

revoke_oauth_token is provided by the Yt MCP server (@mrsknetwork/ytmcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.