Skip to main content
Glama

Request Login Confirm Dialog

request_login_confirm_dialog

Prompt a system dialog to confirm login, returning the user's yes/no choice. Use when conversation prompts are impractical; the session remains pending on 'no' and the dialog can be re-invoked.

Instructions

可选兜底:弹出系统对话框让用户点选「是/否」确认登录,并返回用户的选择。

在不方便用对话询问时使用。点「否」不会丢弃——会话保持等待,可再次调用本工具 (对话框可重复弹出)。调用会阻塞到用户作答为止。会话已结束时会被拒绝, 不会弹出必然变成死物的对话框。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
login_session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and delivers: it discloses blocking-until-answer behavior, that selecting 'No' does not discard the session, that the dialog can repeat, and that the call is rejected if the session has ended. This is high-value disclosure beyond the schema, only slightly short of fully spelling out the rejection mechanism.

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 purpose is front-loaded in the first sentence, and each subsequent sentence earns its place by describing blocking, retry, and rejection behavior. The length is justified by the density of behavioral disclosure, with no wasted words.

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?

For a single-parameter tool with an output schema (covering the returned choice), the description is nearly complete: it covers why, when, blocking behavior, retry semantics, and failure mode. The only minor gap is not naming how to obtain the login_session_id, but given the tool's simplicity this is sufficient.

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

Parameters3/5

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

Schema coverage is 0% with no parameter description, so the description must compensate. The param login_session_id is referenced implicitly through '会话' (session) and the statement that calls are rejected when the session ends, which clarifies the parameter's role. It does not explicitly say where this id comes from, but the name is self-explanatory enough to keep this adequate.

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?

The description states a specific action ('pops up a system dialog for the user to click Yes/No to confirm login') and its return value ('returns the user's choice'), with the '可选兜底' (optional fallback) framing positioning it against alternatives. It clearly identifies a distinct callable UI interaction but does not explicitly name the sibling it competes with (e.g., confirm_login), leaving differentiation somewhat implicit.

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 explicit context for when to use it ('when it's inconvenient to ask via conversation'), which signals this is a fallback to conversation-based confirmation (likely confirm_login). It does not name the alternative tool or specify when NOT to use it, so the guidance is clear but lacks an explicit exclusion.

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