Skip to main content
Glama

read_widget

Retrieves a rendered widget’s selection and annotations so agents can learn what users clicked, circled, or noted.

Instructions

Read a widget back, including selection: what the human clicked (table row, chart bar) or what an MCP App reported, and annotations: arrows, circles, highlights and sticky notes the human drew on it, with text (their note) and target.dataPoints (e.g. the chart bar they circled). For livemaps, unmappedFiles lists edited files no node covers (time to update the map).

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": {
      "id": "<id>"
    },
    "name": "read_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose a good deal about the returned structure (selection, annotations, text, target.dataPoints, unmappedFiles). However, it omits key behavioral facts for a read of shared human state: whether reading marks annotations as read/consumed, whether it blocks waiting for human input, and what happens if the id is unknown.

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?

Front-loaded with the action and appropriately short for the information conveyed; nearly every clause adds distinct field detail. The single run-on sentence with nested parentheticals is somewhat hard to parse but wastes little.

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

Completeness3/5

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

Since there is no output schema, describing return fields is the right use of space, and it does so for selection, annotations, and the livemap case. Still, the undocumented `id` and the unstated read side effects leave gaps an agent would need to discover by trial.

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?

The single required parameter `id` has 0% schema description coverage and is never mentioned in the description — it is not stated whether it is a widget id, a canvas id, or a composite. The description spends its words on output fields instead of compensating for the undocumented parameter.

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 ('Read a widget back') and immediately enumerates the payload. It is clear what the tool does, but it never distinguishes itself from siblings like read_canvas or list_canvases — an agent must infer that a widget is a sub-object of a canvas.

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: by describing `selection` and `annotations` as what the human clicked or drew, it hints the tool is for collecting human feedback after rendering a widget. There is no explicit when-to-use/when-not guidance, no mention of alternatives such as read_canvas, and no note on whether reading is how you consume pending annotations versus reply_annotation.

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