Skip to main content
Glama
quackai-org

@quackai/q402-mcp

Official
by quackai-org

q402_doctor

Run a Q402 health check to diagnose setup issues and guide first-time installation. Detects current phase and provides tailored instructions for onboarding or live diagnostics.

Instructions

Run a Q402 health check - covers first-install onboarding AND ongoing diagnostics in one tool. Read-only, no API key required. Detects the current phase (first-install / needs-completion / live-check) and tailors output to it.

Use when the user says any of: "set up Q402", "verify Q402", "why isn't Q402 working", "Q402 status", "check Q402". This is the FIRST tool to call after install, BEFORE q402_pay or q402_balance - it tells the agent what state the user is in.

Output uses TWO instruction surfaces - agentInstructions (prescription for you, the AI - do NOT echo verbatim) and userInstructions (plain language array you CAN show the user as a numbered list). Always show userInstructions; consult agentInstructions privately to decide what to ask next + which recommendedActions to execute.

Multi-turn pattern the AI should follow when phase = first-install: (1) Tell user MCP is installed. (2) Ask one yes/no question: 'Want me to create your secrets file?' (3) On yes, execute recommendedActions IN ORDER - first the ensure-q402-dir shell action (use shellWindows on Windows), then the create-env-file write_file action. Then open the file in the user's editor (e.g. code for VS Code / Cursor / Cline, open on macOS, start on Windows, xdg-open on Linux). (4) Guide the user through getting an API key (free Trial at https://q402.quackai.ai/event OR paid Multichain at /payment) and pasting it into the file (in their editor - NEVER in chat). (5) Same for the private key. (6) Tell them to save + restart the MCP client (per-client restart verb is in agentInstructions). (7) Call q402_doctor again to verify.

Security policy carried in the response: AI MUST surface the securityNotice when first walking through setup. If the user pastes a private key directly in chat, DO NOT refuse - the exposure already happened. Help them by directing them to put it in the file themselves (via their editor), and inform them the chat history now contains the key (most clients store this locally, some sync to cloud) so they should treat the wallet as exposed if it holds valuables.

Live-check phase additionally returns per-scope quota, EIP-7702 delegation state per chain, relay reachability, and slot-mismatch warnings (e.g. Trial key in Multichain slot silently burns paid quota - surface this to the user).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses read-only behavior, no API key requirement, automatic phase detection, and the two output surfaces (agentInstructions, userInstructions). It also reveals the security policy for handling exposed private keys and warns about slot-mismatch scenarios in live-check mode. This is exceptionally transparent for a tool with no annotations.

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 description is long but well-structured, starting with the core purpose and then layering usage triggers, output surfaces, multi-turn flow, and security policy. Every section provides essential operational guidance for a complex diagnostic tool. It is not concise in word count, but the length is justified by the tool's multi-phase behavior and critical onboarding role.

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

Completeness5/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 thoroughly explains what the tool returns: agentInstructions, userInstructions, recommendedActions, securityNotice, and phase-specific live-check diagnostics (quota, delegation, relay reachability, slot warnings). It also covers the multi-turn interaction pattern and security handling, making the tool fully understandable for an agent without needing external docs.

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?

The tool has zero parameters, so the baseline is 4. The description adds no parameter-specific details because there are none to explain. It instead explains how the output varies based on the detected phase, which is more relevant than any parameter semantics.

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 opens with a specific verb and resource: 'Run a Q402 health check' and explicitly states it covers both 'first-install onboarding AND ongoing diagnostics'. It further clarifies that it detects the current phase, distinguishing it from siblings like q402_pay, q402_balance, and q402_wallet_status. The purpose is unambiguous and differentiates from other q402_* tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit trigger phrases ('Use when the user says any of: "set up Q402", "verify Q402", ...'), declares itself the 'FIRST tool to call after install, BEFORE q402_pay or q402_balance', and gives detailed multi-turn instructions for the first-install phase. This clearly tells the agent when and how to use the tool, including what to do in subsequent turns.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quackai-org/q402-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server