Skip to main content
Glama

x_get_state

Retrieve structured X page state for the current tab, including route, page type, selected tabs, composer status, and account info, so agents can inspect context before acting.

Instructions

Get structured X page state for the current tab: route, page kind, selected tabs, composer state, and account info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/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. 'Get' signals a read-only operation and the description enumerates the exact state fields returned, which is the key behavioral disclosure for a state-reader. It omits any note on errors, staleness, or tab-resolution behavior, keeping it short of a 5.

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 with the core verb+resource first and the returned fields after the colon. No filler or repetition.

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 does the necessary work of naming the return fields, which is sufficient for a zero-parameter state reader. Minor gaps remain around failure modes and how 'current tab' is resolved, but nothing blocks correct invocation.

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 takes zero parameters, so per the rubric the baseline is 4. There is nothing for the description to disambiguate.

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 ('Get') and resource ('structured X page state for the current tab') and enumerates the contents (route, page kind, selected tabs, composer state, account info). It distinguishes itself implicitly from the narrower sibling x_get_composer_state by covering the whole page state, though it never names that sibling.

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?

The phrase 'for the current tab' scopes the tool but gives no explicit when-to-use or when-not-to-use guidance, and does not mention the overlapping siblings x_get_composer_state or x_get_state_map. Usage is implied rather than stated.

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