Skip to main content
Glama

ui_get_state

Poll the canvas to retrieve the current state of a project, optionally including a snapshot, so you can review outline and block progress.

Instructions

Canvas polling: current project state

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "ui_get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes
withSnapshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and delivers very little. It does not say what the returned state contains, whether it is cheap to poll (rate limits, cost), or what happens with an unknown project. For a polling endpoint, the absence of any cadence or cost signal is a meaningful gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short phrase with no wasted words and the scope is front-loaded, but the brevity comes from under-specification rather than disciplined editing. There is nothing here that could be cut, yet nothing that earns its place beyond the resource name.

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?

With no annotations, no output schema, and zero parameter coverage, the description would need to do heavy lifting and does not. An agent cannot tell what a "snapshot" is, what the response looks like, or how this differs from adjacent plan/project tools.

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% across two parameters. The description never explains the required "project" identifier (id vs. name vs. path) or what the "withSnapshot" boolean changes in the response, so an agent has no basis for setting the latter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Canvas polling: current project state" names the resource (current project state) and gestures at the mechanism (polling), but it is close to a restatement of the tool name ui_get_state. It does not distinguish this from siblings such as get_plan or list_projects, so an agent must infer the difference.

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 "Canvas polling" implies the usage pattern — call it repeatedly to observe the canvas — but there is no explicit when-to-use, when-not-to-use, or named alternative. Guidance 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.