Skip to main content
Glama

zmp_wait_for_login

Waits for the user to confirm mobile Zalo QR scan authorization, then saves the returned ZMP_TOKEN into the project .env file.

Instructions

Poll and wait for user to confirm mobile Zalo QR scan authorization, then automatically save ZMP_TOKEN into .env.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zmpskYesSession key (zmpsk) returned by zmp_request_login_qr.
projectDirYesProject directory where .env should be updated with the token.
timeoutSecNoPolling timeout in seconds (default: 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two important traits: the call blocks and polls, and it has a mutation side effect (writing ZMP_TOKEN into .env). What it omits is failure behavior — whether it errors or returns a status when timeoutSec elapses, and whether the token write is idempotent.

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

Conciseness5/5

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

A single front-loaded sentence that names the action, the awaited user gesture, and the resulting side effect with no redundant or filler content.

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?

There is no output schema or annotation coverage, yet the description adequately conveys what the tool does and its persistence side effect for a simple 3-parameter tool. It is only slightly incomplete in not describing timeout/error outcomes or how the completion is surfaced to the caller.

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 description coverage is 100%, so all three parameters (zmpsk, projectDir, timeoutSec) are already documented in the schema, including the default of 60 seconds. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 and resource — poll/wait for the user's QR scan authorization — and adds the side effect of persisting ZMP_TOKEN to .env. It is clear on its own, but it never differentiates itself from the neighboring zmp_get_login_status or zmp_request_login_qr tools, so the agent must infer the ordering.

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?

Usage is only implied: the description mentions the QR authorization flow and the zmpsk parameter ties it to zmp_request_login_qr, so an agent can guess it runs after requesting a QR. However, there is no explicit when-to-use statement, no mention of when to prefer zmp_get_login_status (non-blocking poll) instead, and no note on prerequisites such as having an open QR session.

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