Skip to main content
Glama

observe

Read-only

Reads the open page’s state as JSON, including named three.js objects, renderer counts, new console errors, and changes since the last read.

Instructions

Reads the open page's state as JSON (window.__game.observe(), or its named three.js objects), renderer counts, new console errors and what changed since the last observe.

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

Input Schema

NameRequiredDescriptionDefault
gameNoThe name the game was opened under with the `open` tool, to act on ("main" by default; a subagent uses its own).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

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, so safety is covered by structured data. The description does add genuine value beyond that: the underlying call (window.__game.observe()) and the fact that console errors returned are only the NEW ones since the prior observe, which is a stateful, non-obvious behavior. It does not, however, describe the shape of the JSON or how deltas are computed/retained.

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 the main purpose front-loaded and the payload enumerated after. The parenthetical about window.__game.observe() and three.js objects is slightly crammed but every clause carries information; nothing is padding.

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?

No output schema exists, so the description carries the return-value burden, and it does list the categories returned (state JSON, renderer counts, new console errors, deltas). It never explains the keys or nesting of the returned JSON, leaving an agent to inspect the result blindly, but for a read-only diagnostic tool this is close to sufficient.

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 one optional parameter ('game') and schema coverage is 100%, with the schema already explaining the default 'main' and the subagent-owns-its-own rule. The description adds nothing about the parameter, which is acceptable at full schema coverage but earns only the baseline.

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 and resource ('Reads the open page's state as JSON') and enumerates the exact payload: game state, named three.js objects, renderer counts, new console errors, and the delta since the last observe. That is far more specific than the bare name 'observe', though it never names a sibling it is distinct from (e.g. eval, look, feel), so an agent must infer the boundary itself.

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 mention of 'what changed since the last observe' hints at a poll-and-diff workflow, and the diagnostic payload (renderer counts, console errors) hints at debugging use. There is no explicit when-to-use, when-not, or named alternative for inspecting the page instead.

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