Skip to main content
Glama

read_sheet_text

Extracts text with positions from a plan sheet, optionally within a region, to read title blocks, room labels, finish schedules, and scale notes.

Instructions

The sheet's text with positions — items [{str, x, y}] in image px plus the joined text. Optionally restrict to a region {x0, y0, x1, y1}. Use it to read title blocks, room labels, finish schedules, and scale notes. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

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": {
      "sheet": "<sheet>"
    },
    "name": "read_sheet_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYes
regionNo

Output Schema

NameRequiredDescriptionDefault
textYesThe items joined with spaces
itemsYesPositioned text items (image px)
sheetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / region / additionalProperties
      Removed value: -false
  2. Changed1 schema field changedv0.1.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "items": {
      +      "description": "Positioned text items (image px)",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "str": {
      +            "type": "string"
      +          },
      +          "x": {
      +            "type": "number"
      +          },
      +          "y": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "str",
      +          "x",
      +          "y"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "sheet": {
      +      "type": "string"
      +    },
      +    "text": {
      +      "description": "The items joined with spaces",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "sheet",
      +    "items",
      +    "text"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it states the return shape (items of {str, x, y} plus joined text), the coordinate space (image px at render scale 2.0, PDF pt × 2), the origin (top-left, y down) and that sheet payloads carry dims in both px and pt. Gaps remain only for non-obvious behaviors like very large sheets, truncation, or what happens when a region contains no text.

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?

Four short sentences, front-loaded with the return shape and then the optional filter and use cases. There is mild redundancy — image px is restated across the first and third sentences — but every sentence still contributes information an agent would otherwise have to guess.

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?

For a two-parameter read tool with nesting and an output schema, this is close to sufficient: the coordinate contract and region filter are spelled out, and the return values are already covered by the output schema. The main omission is how an agent obtains a valid 'sheet' value, which matters because that parameter is required.

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?

Schema description coverage is 0%, so compensation is required, and the description largely delivers for 'region': its members x0/y0/x1/y1 are given meaning through the coordinate-system explanation (image px, scale 2.0, origin top-left, y down) and the note that sheet payloads carry both px and pt dims. The 'sheet' parameter is never explained — whether it takes an id, a name, or a path is left to inference.

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?

Concrete: it returns a sheet's text with positional data, and the sentence 'Use it to read title blocks, room labels, finish schedules, and scale notes' anchors the purpose in real tasks. The verb is implied rather than stated as a lead ('read the sheet's text'), and no sibling such as find_text or find_schedule is named for contrast, so it stays short of a 5.

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?

It supplies positive usage contexts (title blocks, room labels, finish schedules, scale notes) and mentions the optional region restriction, which implies when to scope a read. It offers no exclusions, prerequisites, or named alternatives — an agent cannot tell from this text alone whether to call read_sheet_text or the sibling find_text when hunting a specific string.

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