Skip to main content
Glama

poll_permission_mode_change

Idempotent

Poll a permission-mode-loosening request; applies the mode ONLY once approved.

Returns {"status": "pending"} while waiting, {"status": "expired"} for an unknown/expired code (never fabricates approval), or on approval applies through the same rails set_permission_mode uses for a direct change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caller_idNo
device_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description goes beyond them by enumerating outcomes (pending vs expired), asserting it 'never fabricates approval' for unknown codes, and explaining that approval routes through the same rails as set_permission_mode — meaningful safety context for a permission-loosening flow.

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 core behavior and the conditional 'ONLY once approved' constraint are front-loaded, and the return-state clause is compact. Slightly dense punctuation but no wasted sentences.

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 shapes needn't be spelled out, yet the description still usefully summarizes status states. The main gap is the unstated prerequisite relationship to request_permission_mode_change and the undefined parameters, but for a poll-approval tool this is near-complete.

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

Parameters2/5

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

Schema coverage is 0% and neither device_code nor caller_id is defined anywhere. The description only obliquely references an 'unknown/expired code', which does not establish what device_code is (presumably issued by request_permission_mode_change) or what caller_id scopes, so the agent gets little semantic help.

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 (poll) and resource (permission-mode-loosening request) and clarifies the stateful outcome: the mode is applied only once approved. It also names the sibling rail it shares (set_permission_mode for a direct change), letting an agent distinguish it from request_permission_mode_change and set_permission_mode without opening schemas.

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?

The polling lifecycle is implied (returns pending while waiting, expired for unknown codes), which tells the agent this is a repeated-check tool. However, it never explicitly states it should be called after request_permission_mode_change, nor when to stop polling or when a direct set_permission_mode is preferable.

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