Skip to main content
Glama

app.error_state

Read-only

Find application errors held in framework state when a control does nothing but the console stays clean, and check secure-context status for gated browser APIs.

Instructions

Errors the application is holding that never reached the console. Frameworks (TanStack Query, SWR, Redux) catch what their own code paths throw and park it in state, so a handler can throw, roll its optimistic update back, and leave console.exceptions empty. Start here when a control does nothing and the console looks clean. Also reports whether this origin is a secure context, since crypto.randomUUID, clipboard and service workers are undefined on plain http:// but present on localhost.

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": "app.error_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
frame_idNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
include_capabilitiesNoSecure-context and gated-API report. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds meaningful context about which frameworks park errors and why console.exceptions stays empty. It also explains the substance of the secure-context report and the concrete APIs affected (crypto.randomUUID, clipboard, service workers). It stops short of saying whether the error list is bounded or truncated.

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 core purpose is front-loaded, and the framework examples (TanStack Query, SWR, Redux) earn their space by making the mechanism concrete. The secure-context sentence is a useful but somewhat tangential addition that lengthens the definition.

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 zero-required-parameter read tool with no output schema, the description covers when to call it, what it returns, and a secondary capability report. The main residual gap is the undocumented frame_id parameter and no hint about the shape of the returned error entries.

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 75%, so the baseline is 3. The description implies what include_capabilities controls by describing the secure-context report, but it never ties that to the flag or notes its default, and frame_id remains undocumented in both schema and description.

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?

States precisely what the tool returns: errors held in application state that never reached the console. It also explicitly contrasts with console.exceptions by explaining why the console can be empty despite a failure, so the agent can distinguish the two without inspecting output.

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 an explicit trigger condition: 'Start here when a control does nothing and the console looks clean.' The complementary case (errors that did reach the console) is implied rather than named as an alternative tool, which keeps it just short of a full when/when-not statement.

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

Deploy Server

Other Tools