Skip to main content
Glama

permissions.grant

Grants browser permissions such as geolocation, notifications, camera, and microphone, optionally scoped to a specific origin, so web APIs can run without permission prompts.

Instructions

Grant browser permissions, e.g. ["geolocation", "notifications", "camera", "microphone"], optionally scoped to one origin. Web names are mapped to CDP types (camera -> videoCapture, microphone -> audioCapture); CDP names pass through. Granting camera/microphone lets getUserMedia resolve with no prompt, but supplies no device; the getDisplayMedia screen picker cannot be granted away at all. For both, launch with browser.launch{media}.

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": {
      "permissions": "<permissions>"
    },
    "name": "permissions.grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
originNo
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
permissionsYesWeb permission names or CDP Browser.PermissionType names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses non-obvious behavior: web names are mapped to CDP types, granting camera/microphone suppresses the getUserMedia prompt but supplies no device, and the screen picker is unattainable. That is exactly the operational nuance an agent needs to avoid a failed or misleading call.

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

Conciseness4/5

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

It is front-loaded with purpose and scope, then layers the caveats in the order an agent would need them. The sentence about mapping names is dense but every clause carries information; there is little filler.

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

Completeness4/5

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

For a three-parameter mutation tool with no output schema, the description covers semantics, name translation, and the notable limitations of what granting actually achieves. It omits the return value and idempotency/revocation behavior, which are modest gaps given the annotation coverage.

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

Parameters4/5

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

Schema coverage is a moderate 67%, and the description compensates by explaining what values 'permissions' accepts (web names or CDP Browser.PermissionType names, with the camera->videoCapture and microphone->audioCapture mapping) and how 'origin' scopes them. The browser_id parameter is left entirely to the schema, so it falls short of full coverage.

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 plus resource, 'Grant browser permissions', and immediately qualifies the scope ('optionally scoped to one origin'), which makes it easy to tell apart from the sibling permissions.reset and from launch-time configuration tools.

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 gives concrete when-to-use context by naming which permissions are relevant and by directing callers to browser.launch{media} when they actually need devices for camera/microphone, and it states a hard limit (getDisplayMedia cannot be granted). It stops short of explicitly routing revocation to permissions.reset.

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

Deploy Server

Other Tools