Skip to main content
Glama

Update app permissions

update_app_permissions
DestructiveIdempotent

Turn app permissions on or off and set their texts in the current version's draft, like the dashboard's App Permissions screen. Permissions left out stay as they are. camera (taking photos or scanning on the site) and photo_library (uploading photos) apply to iOS and Android and are always on; only their texts can change. microphone (calls, voice) and location (store locators, maps, delivery) apply to iOS and Android. app_tracking_transparency is Apple's iOS prompt for tracking users across other companies' apps and sites, e.g. for ads. read_external_storage is Android only (reading files on the device) and takes no texts. Some features add permissions at build time with no switch here: barcode scanner adds camera, media player adds background audio (iOS) and wake lock and foreground service (Android), in-app purchase adds Android billing, push adds iOS background modes. Asked whether the app needs any permissions: read get_app, then check the merchant's website and the app's Twinr features for anything that needs one; if you can't open the website, ask the merchant what the app does. Recommend, and change only after the merchant's yes. After a store rejection over a permission, ask for the rejection text, write a message saying why this app needs that permission, show the merchant the exact wording, and save it only after their yes. If status is version_locked, the current version is published and its permissions are locked: tell the merchant, ask them for a new version number (suggest the next patch number, e.g. 1.0.8 after 1.0.7), call create_app_version with their number, then call this tool again. A refusal saying a newer app version is needed means the same: offer a new version. Always relay the reply's message. When the reply has a next_step, first ask whether there's anything else to change, since one publish or build covers every change so far. Then for publish, offer publish_changes; for build, offer start_build; for subscribe, relay the message and offer neither. If you made a change earlier in this conversation that needs a build, offer a build instead of a publish. Never call publish_changes or start_build unprompted. If this project's Twinr section (replit.md on Replit, otherwise AGENTS.md) has no application_id, call list_apps, show the merchant every organization and its apps, and ask which app this project is. Never choose one yourself, and never infer it from the project's name or URL. Then record it in the project's Twinr section. Before calling this tool, tell the merchant which app you are changing by name, e.g. "Updating the icon for Shop Name…".

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": {
      "app_id": "<app_id>",
      "changes": "<changes>"
    },
    "name": "update_app_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe application_id recorded in this project's Twinr section.
changesYes

Output Schema

NameRequiredDescriptionDefault
statusYes
messageYes
next_stepYes
permissionsYes
version_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, but the description adds genuinely new behavior: omitted permissions are left untouched (partial update semantics), camera/photo_library are always on, read_external_storage takes no texts, and some permissions are injected at build time with no switch. It also discloses the locked-version state, the newer-version refusal path, and the confirmation gate before writing text.

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

Conciseness3/5

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

The core purpose is front-loaded in sentence one, but the body runs long and mixes tool specification with multi-turn conversational scripts (rejection-message wording, next_step branching, project-section lookup). Much of it is valuable, yet several passages could be tightened without losing meaning, and the reader must wade through workflow prose to reach the parameter guidance.

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 destructive, partially-updating mutation with an output schema, the definition covers everything an agent needs: which fields are optional, platform applicability, locked-state recovery, refusal recovery, and how to interpret next_step. Return values are left to the output schema, which is the correct division of labor.

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?

With only 50% schema coverage and no per-enum-value documentation, the description carries real weight: it explains what each of the six permission values means (camera, photo_library, microphone, location, app_tracking_transparency, read_external_storage), which platforms they apply to, and which accept texts. The 'left out stays as they are' note clarifies the changes array semantics. It does not restate the app_id sourcing rule beyond referencing the Twinr section, which the schema already covers.

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?

States a specific verb and resource plus scope: 'Turn app permissions on or off and set their texts in the current version's draft.' The anchor to the dashboard's App Permissions screen and the enumeration of the six permissions make it unmistakable versus siblings like update_app_icon or update_app_settings.

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

Usage Guidelines5/5

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

Explicit routing and when/when-not rules: recommend permissions by checking the merchant's website and Twinr features after get_app, change only after the merchant says yes, handle version_locked by calling create_app_version, never call publish_changes or start_build unprompted, and offer only one publish/build for accumulated changes. Alternatives and preconditions are named outright.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources