Skip to main content
Glama
Browser Session MCP

Browser Session MCP

revoke_guest_grant

DestructiveIdempotent

End a guest grant now to close the guest connection and detach their extension from open tabs; safe to repeat and returns revoked false if already ended.

Instructions

End a guest grant from request_guest_grant now, before it expires: the relay closes the guest's connection within a second and their extension detaches from their tabs, which stay open in their browser. Safe to repeat; returns revoked false if it had already ended (the guest ended it, it expired, or it was revoked).

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": {
      "sessionId": "<sessionId>"
    },
    "name": "revoke_guest_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe guest session id (guest-…) request_guest_grant returned.

Output Schema

NameRequiredDescriptionDefault
revokedYesFalse when the grant had already ended.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructive=true and idempotent=true, so the bar is lower, yet the description still adds substantive behavioral detail: the relay closes the connection within a second, the extension detaches from tabs, and the tabs themselves stay open. It also discloses the already-ended outcome (revoked false) and its three causes, which is exactly the mutation-side context annotations can't express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence starting with the action, then the effects, then the repeat-safety note. Every clause carries information an agent needs; nothing is padding or restated from structured fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter destructive mutation with an output schema, the description covers what it does, when to invoke it, the immediate observable effects, and the idempotent-result semantics. Return-value detail is left to the output schema, which is correct.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single sessionId parameter is already documented in the schema, including its 'guest-…' format. The description adds no further syntax, format, or validation meaning for the parameter, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('End a guest grant'), scopes it with a timing constraint ('now, before it expires'), and anchors it to the sibling that creates the grant (request_guest_grant). An agent can tell exactly what this does and which counterpart created the thing being revoked.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the operative condition — revoke now rather than waiting for expiry — and names request_guest_grant as the source of the sessionId, which routes the agent to the correct sibling. It doesn't spell out an explicit 'do not use' case, but the intended usage window is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.