Skip to main content
Glama

handle_alert

Selects an alert button by reference or label from a current snapshot and asks the owner to handle protected prompts.

Instructions

Choose a specific button on an ordinary alert using a current list_elements snapshot. Ask the owner to handle protected prompts.

Input Schema

NameRequiredDescriptionDefault
device_idNo
button_refNo
timeout_msNo
snapshot_idYes
button_labelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds two useful behaviors beyond that: it depends on a fresh snapshot, and protected prompts are routed to a human. It does not say what happens on timeout, whether the action is retried, or what an invalid/stale snapshot yields.

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?

Two short sentences, zero filler, with the primary action and its precondition front-loaded. The second sentence ('Ask the owner to handle protected prompts') is slightly elliptical about who 'the owner' is, but it is not padding.

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

Completeness2/5

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

For a five-parameter, non-idempotent, open-world interaction tool with no output schema and no schema descriptions, the definition leaves too much open: no explanation of the oneOf selector, no timeout behavior, no error conditions, and no indication of what a successful handle returns. It is directionally correct but under-specified for the tool's complexity.

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?

With 0% schema description coverage across 5 parameters, the description carries full burden but only gestures at three of them (snapshot_id, button_ref, button_label) in vague prose. The critical oneOf constraint that exactly one of button_ref or button_label must be supplied is never mentioned, and device_id and timeout_ms go completely undiscussed.

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?

States a specific verb+resource ('Choose a specific button on an ordinary alert') and scopes it to alerts built on a list_elements snapshot, which separates it from generic tap/press siblings. It also implicitly distinguishes itself from request_human_action by contrasting 'ordinary alert' with 'protected prompts', though the phrase 'ordinary alert' is never formally defined.

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?

Gives a concrete prerequisite (use a current list_elements snapshot) and an explicit alternative path (ask the owner for protected prompts), which is real when-to-use/when-not guidance. It stops short of stating what to do if no snapshot exists yet or if the snapshot is stale.

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