Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Get Browser Permission

browser_permission_get
Read-onlyIdempotent

Check a browser permission state for the current document origin without triggering an OS prompt. Use it to verify geolocation, camera, microphone, clipboard, and other permissions by name.

Instructions

Query one browser permission state for the current document origin without opening an operating-system prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idNoOptional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.
permissionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.8
    • addedInput schema / properties / tab_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 128,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional MCP or native DrissionPage tab id. When omitted, the current tab is captured at call start.",
      +  "title": "Tab Id"
      +}
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "origin": {
      -            "title": "Origin",
      -            "type": "string"
      -          },
      -          "permission": {
      -            "title": "Permission",
      -            "type": "string"
      -          },
      -          "query_supported": {
      -            "title": "Query Supported",
      -            "type": "boolean"
      -          },
      -          "state": {
      -            "enum": [
      -              "granted",
      -              "denied",
      -              "prompt",
      -              "unsupported"
      -            ],
      -            "title": "State",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "permission",
      -          "state",
      -          "origin",
      -          "query_supported"
      -        ],
      -        "title": "BrowserPermissionGetData",
      -        "type": "object"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "message",
      -      "data"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "details": {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "message",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "origin": {
      +            "title": "Origin",
      +            "type": "string"
      +          },
      +          "permission": {
      +            "title": "Permission",
      +            "type": "string"
      +          },
      +          "query_supported": {
      +            "title": "Query Supported",
      +            "type": "boolean"
      +          },
      +          "state": {
      +            "enum": [
      +              "granted",
      +              "denied",
      +              "prompt",
      +              "unsupported"
      +            ],
      +            "title": "State",
      +            "type": "string"
      +          },
      +          "tab_id": {
      +            "description": "MCP tab id captured for this operation.",
      +            "maxLength": 128,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "permission",
      +          "state",
      +          "origin",
      +          "query_supported",
      +          "tab_id"
      +        ],
      +        "title": "BrowserPermissionGetData",
      +        "type": "object"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "message",
      +      "data"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "message",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv0.8.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint/openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavior: no OS prompt is triggered, the query is scoped to the current document origin, and only one permission is read at a time. That is meaningful context beyond the annotations, though pagination/failure behavior is not addressed.

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 with no filler; the key differentiator (no OS prompt) is surfaced immediately.

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?

An output schema exists, so return values need no explanation, and rich annotations cover most behavioral concerns. The description supplies origin scoping and the no-prompt guarantee, making it adequate for a two-parameter read tool, with only minor gaps around error cases.

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 description coverage is 50% (only tab_id is documented; permission has an enum but no description), so baseline is mid-range. The description clarifies that exactly one permission is queried and that origin scoping is automatic, but adds nothing about the enum values or the tab_id fallback semantics beyond what the schema already says.

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

Purpose4/5

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

The description states a specific verb ("Query") and resource ("one browser permission state") with scope ("current document origin"), which implicitly separates it from browser_permission_set and browser_permissions_reset. It does not name those siblings explicitly, so it lands just short of the top band.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the "without opening an operating-system prompt" clause hints this is the non-intrusive read-only alternative, but the description never says when to prefer it over browser_permission_set or browser_permissions_reset. No explicit exclusions or prerequisites are given.

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