Skip to main content
Glama

Health check (session + selectors + screenshot)

flow_health_check
Read-only

Verifies Google Flow login, opens a project, probes key DOM selectors with fallback reporting, and saves a diagnostic screenshot if failures occur, without spending credits.

Instructions

Verifies login, opens a Flow project, probes every key DOM selector (reporting which fallback strategy matched) and, if anything fails, saves a diagnostic screenshot to ./logs/error-debug.png and returns its path. Spends no credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "flow_health_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
open_projectNoOpen (most recent) project so editor selectors can be probed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true; the description adds valuable context the annotations do not carry: a file is written to ./logs/error-debug.png only on failure, its path is returned, and the call costs no credits. It also discloses that fallback strategy matches are reported. It does not describe what the success response looks like beyond that, and the local file write is a side effect an agent should be aware of when reasoning about 'readOnly'.

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?

A single dense sentence with zero filler; the failure-path screenshot and the no-credit cost note are front-loaded where an agent will see them. Slightly long as a run-on, but every clause carries operational information.

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?

With no output schema, the description usefully covers the return path for the failure case and the reporting of fallback matches. For a one-parameter, no-credit diagnostic tool this is nearly complete; only the success-case output shape is left implicit.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains that open_project opens the most recent project for selector probing. The description mentions 'opens a Flow project' but does not explain the boolean toggle or the consequence of setting it false (editor selectors cannot be probed). Baseline 3 applies since the schema does the heavy lifting.

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 names a clear verb+resource: it verifies login, opens a Flow project, probes DOM selectors, and captures a diagnostic screenshot on failure. The sequence of checks makes the tool's purpose unmistakable. However, it never distinguishes itself from the sibling flow_check_session, which the name suggests covers the login-verification subset, so an agent must infer the delta.

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 failure-screenshot behavior signals this is a diagnostic tool, but there is no explicit statement of when to run it (setup? pre-flight before generation?) or when flow_check_session would suffice. The 'Spends no credits' line hints it is a safe/cheap pre-check, which is helpful, but the routing guidance is left to inference.

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