Skip to main content
Glama

Set permission

set_permission

Grant, revoke, or reset a single app privacy permission so system permission alerts do not interrupt React Native app automation.

Instructions

Grant, revoke or reset one privacy permission for an app, so the system alert never appears. iOS services: camera, photos, photos-add, location, location-always, contacts, contacts-limited, microphone, motion, calendar, reminders, media-library, siri, all. Android services: camera, microphone, photos, location, contacts, notifications. app_id defaults to the connected app.

Input Schema

NameRequiredDescriptionDefault
app_idNo
deviceNo
statusYes
serviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden. It does disclose the most important behavioral trait — that this bypasses the system permission alert — plus the app_id default to the connected app. It does not explain reversibility of 'reset', whether the target app must be installed/running, or what an invalid service does.

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?

Three dense sentences with zero filler, and the core action leads. The long service enumerations consume most of the length but each entry is functionally necessary given the free-string schema.

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

Completeness3/5

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

For a 4-parameter mutation tool with no annotations and no output schema, the definition covers action, services, and one default but leaves the device parameter, reset semantics, and failure modes unexplained. Adequate to call correctly in the common case, incomplete at the edges.

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 0%, so the description must compensate, and it does: it documents the valid service strings per platform (iOS vs Android lists differ), which the bare 'service: string' schema omits, and it explains the app_id default. The 'device' parameter and the semantics of 'reset' remain undocumented.

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?

Opens with a specific verb triple (grant, revoke, reset) applied to a precise resource ('one privacy permission for an app'), and enumerates the valid services per platform. No sibling in the list manipulates permissions, so the agent can immediately tell this apart from tap/launch_app/observe.

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?

The phrase 'so the system alert never appears' gives a concrete decision context: use this instead of letting the OS permission dialog surface. It does not state exclusions (e.g. what to do if the app is not installed, or when to prefer manual UI handling), so it stops short of a 5.

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