Skip to main content
Glama

read_items

Reads table, list, tree, or combo box items page by page as shown in a Java Swing UI, returning visible text and underlying values for inspection or automation.

Instructions

Read the contents of a table, list, tree or combo box, page by page, as the user sees them (the text the cells show, with the underlying value where it reads differently). The snapshot shows only the first rows. Table: rows from start (view order, as sorted/filtered on screen), optionally only some columns. Tree: without path, the visible rows; with path, that node and its descendants down to depth levels, read from the tree model without expanding anything (trees that load children on expand need expand_node first). find keeps only entries containing that text.

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": {
      "ref": "<ref>"
    },
    "name": "read_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
findNoOnly entries containing this text (case-insensitive)
pathNoTree: node path like Root/Child
depthNoTree with path: levels below the node (default 1)
limitNoHow many to return (default 50, max 1000)
startNoFirst row/item to return (default 0); with find in a table, list or combo: matches to skip
columnsNoTable: column names or indexes, comma-separated

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and mostly succeeds: it discloses that results are rendered text plus the underlying value where they differ, that tree reads come from the model without expanding anything, and that the default view is truncated. Missing are any statements about permissions/session requirements or error behavior, which is the remaining gap.

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?

It is dense but front-loaded: general behavior first, then per-widget clauses, then `find`. Every clause conveys distinct operational information (rendered text vs. value, model reads without expansion, find filtering) and nothing is repeated from the schema verbatim.

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?

For a 7-parameter tool with no annotations and no output schema, the description covers the semantics of most parameters but leaves `ref` entirely unexplained, which is significant since it is the only required parameter. Return shape is only partially characterized ('text the cells show, with the underlying value'), so the agent knows what it gets but not the structure or error cases.

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?

Schema coverage is already 86%, so the schema documents nearly everything; the description adds real meaning only for `start` ('view order, as sorted/filtered on screen') and for `path`/`depth` ('that node and its descendants down to `depth` levels'). It says nothing about the required `ref` parameter, which is the one the agent must supply first.

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

Purpose5/5

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

The description opens with a specific verb and resource set ('Read the contents of a table, list, tree or combo box') and immediately scopes it ('page by page, as the user sees them'). It differentiates itself from the sibling 'snapshot' ('The snapshot shows only the first rows') and from 'expand_node' (trees that lazy-load children need it first), so an agent can select it without opening the schema.

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

Usage Guidelines4/5

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

It gives clear conditions per widget type: use `start`/`columns` for tables, `path`/`depth` for trees, `find` to narrow, and explicitly notes that lazy-loading trees require `expand_node` first. The 'snapshot shows only the first rows' line implies when to prefer this tool for paging, though it never states a direct 'use X instead of this' rule for the full-paging case.

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