Skip to main content
Glama

permission_log

Read-only

Every device permission decision on the phone, oldest first, on Android and iOS: when an app was granted or denied a permission (by install, import, update or the Settings switch), when a permission was removed, and each time an app action used a permission or was blocked by a denial, with the assistant that called it. Filter by app, permission or event. Changes nothing.

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": {
      "session": "<session>"
    },
    "name": "permission_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoOnly this app id
eventNo
limitNoMost recent entries to return (default 100)
sessionYesSession from open_app
permissionNoOnly this permission, such as camera or notifications

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds genuine context: chronological ordering ('oldest first'), cross-platform scope, the set of triggering causes, and that each entry carries the calling assistant. It does not discuss retention windows or result volume beyond the schema's limit, keeping it short of a 5.

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?

The content is front-loaded: what is logged, then ordering, then filtering, then the safety note. It is a single dense sentence followed by two short ones with no filler, though 'Changes nothing' mildly duplicates the readOnly annotation.

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?

With no output schema, the description must convey what comes back, and it does so by enumerating entry types and ordering. The required session parameter and its origin in open_app are left to the schema, which is acceptable at 80% coverage, but a hint that a session is mandatory would have closed the last gap.

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 80%, so a baseline of 3 applies, but the description adds meaning to the event enum by explaining each event kind (granted/denied, removed, used, blocked by denial) in prose. This helps an agent choose the right event filter rather than guessing from bare enum strings.

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 names the exact resource (device permission decisions) and enumerates what is captured: grants, denials, removals, permission uses, and blocked actions, with source (install, import, update, Settings switch) and platform coverage. This level of specificity clearly separates it from generic siblings like audit_log and device_log without needing to name them.

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?

It states that results can be filtered by app, permission, or event, which implies how to narrow the query, but gives no explicit when-to-use vs. when-not guidance or pointers to alternative logs. An agent must infer that this is the tool for permission-specific history rather than general activity.

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.