Skip to main content
Glama

state

Inspect in-memory client-side data from React, Vue, Redux, Apollo, or Next.js apps in a browser tab, using optional selectors to debug what the UI is actually using.

Instructions

Inspect in-memory client-side state (framework: 'auto'|'next'|'redux'|'react'|'vue'|'apollo'|'query'; optional selector for React Fiber).

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": "state"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNo
selectorNo
frameworkNoauto
max_lengthNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. "Inspect" implies read-only but never says so; it does not disclose what happens when no state is found, whether it requires the page to be loaded, or that max_length can truncate the result.

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 front-loaded sentence with no filler. The parenthetical packs both the framework enum and the selector caveat, which is efficient but slightly jumbled in reading order.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-format explanation is not required. But for a four-parameter, zero-coverage, annotation-free inspection tool, the description omits tab targeting, truncation behavior, and failure modes, leaving an agent under-informed.

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

Parameters2/5

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

Schema description coverage is 0% for four parameters. The description explains the framework values and hints that selector is React-Fiber-specific, but says nothing about `tab` (default -1 presumably meaning current tab) or `max_length` (default 8000, evidently a truncation cap).

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?

"Inspect in-memory client-side state" names a specific verb (inspect) and resource (client-side state), and the framework list clarifies the domain. It is distinguishable from siblings like evaluate_js or snapshot in intent, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus evaluate_js (the obvious overlapping sibling) or when it will fail, e.g. on pages with no detectable framework store. The only usage hint is implicit: 'optional selector for React Fiber' suggests a React-specific path.

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