Skip to main content
Glama

sheet_info

Retrieves a plan sheet's dimensions, vector or raster status, scale status and suggested scale, plus committed shape count to verify takeoff setup before measuring.

Instructions

Sheet detail: dims (px and pt), vector segment count, whether the sheet has vector linework (one_click floods it when present; a scanned sheet falls back to rendered pixels, disclosed as raster_traced), scale status, the detected scale suggestion, and this sheet's committed shape count. 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": "sheet_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet key ("plan.pdf", "plan.pdf#2") or title-block number ("A-101")
project_idNoThe project to work on (list_projects names them). Optional for the open-source arguments: the project the last call named (load_plan makes one) is used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.23
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "The project to work on (list_projects names them). Optional for the open-source arguments: the project the last call named (load_plan makes one) is used.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "detected_scale": {
      -      "description": "Drawn scale note read off the sheet — a suggestion, never auto-applied",
      -      "type": "string"
      -    },
      -    "has_vector_linework": {
      -      "description": "one_click needs vector linework",
      -      "type": "boolean"
      -    },
      -    "height_pt": {
      -      "type": "number"
      -    },
      -    "height_px": {
      -      "type": "number"
      -    },
      -    "layers": {
      -      "description": "The sheet's PDF layer table (#85) — [] when no Optional Content survived export (every engine path then runs the heuristics unchanged)",
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "confidence": {
      -            "description": "0..1 — how sure the name classifier is",
      -            "type": "number"
      -          },
      -          "id": {
      -            "description": "Optional Content Group id — pass to one_click/detect_rooms layers.include/exclude",
      -            "type": "string"
      -          },
      -          "name": {
      -            "description": "The CAD layer name as exported (e.g. A-WALL-FULL)",
      -            "type": "string"
      -          },
      -          "role": {
      -            "description": "What this layer's linework IS to a takeoff (lib/layers.ts) — boundary/structure plot hard, pattern/annotation/demolition are excluded, unknown falls back to the hatch heuristics",
      -            "enum": [
      -              "boundary",
      -              "finish-pattern",
      -              "annotation",
      -              "structure",
      -              "demolition",
      -              "unknown"
      -            ],
      -            "type": "string"
      -          },
      -          "seg_count": {
      -            "description": "Segments this layer owns on this sheet",
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "visible": {
      -            "description": "Default-config visibility — a hidden layer's ink is excluded outright (or you trace demolition)",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name",
      -          "role",
      -          "confidence",
      -          "visible",
      -          "seg_count"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "multiple_scales": {
      -      "const": true,
      -      "description": "Several DISTINCT scale notes on this sheet (#153) — enlarged plans/details likely",
      -      "type": "boolean"
      -    },
      -    "page": {
      -      "description": "1-based page number",
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "scale_set": {
      -      "type": "boolean"
      -    },
      -    "seg_count": {
      -      "description": "Vector segment count",
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "shape_count": {
      -      "description": "Committed shapes on this sheet",
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "sheet": {
      -      "description": "Sheet key: page 1 is the bare file name (\"plan.pdf\"), pages 2+ are \"plan.pdf#2\"",
      -      "type": "string"
      -    },
      -    "sheet_number": {
      -      "description": "Title-block sheet number (\"A-101\") where detected",
      -      "type": "string"
      -    },
      -    "upp": {
      -      "description": "Real feet per image px at render scale 2.0 — present once the scale is set",
      -      "type": "number"
      -    },
      -    "width_pt": {
      -      "type": "number"
      -    },
      -    "width_px": {
      -      "description": "Image px at render scale 2.0 — the coordinate space every tool speaks",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "sheet",
      -    "page",
      -    "width_pt",
      -    "height_pt",
      -    "width_px",
      -    "height_px",
      -    "seg_count",
      -    "has_vector_linework",
      -    "scale_set",
      -    "shape_count",
      -    "layers"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed9 schema fields changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / layers / items / properties / seg_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / layers / items / properties / seg_count / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / page / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / page / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / seg_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / seg_count / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / shape_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / shape_count / minimum
      Added value: +-9007199254740991
  3. Changed3 schema fields changedv0.1.9
    • addedOutput schema / properties / layers
      Added value: +{
      +  "description": "The sheet's PDF layer table (#85) — [] when no Optional Content survived export (every engine path then runs the heuristics unchanged)",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "confidence": {
      +        "description": "0..1 — how sure the name classifier is",
      +        "type": "number"
      +      },
      +      "id": {
      +        "description": "Optional Content Group id — pass to one_click/detect_rooms layers.include/exclude",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "The CAD layer name as exported (e.g. A-WALL-FULL)",
      +        "type": "string"
      +      },
      +      "role": {
      +        "description": "What this layer's linework IS to a takeoff (lib/layers.ts) — boundary/structure plot hard, pattern/annotation/demolition are excluded, unknown falls back to the hatch heuristics",
      +        "enum": [
      +          "boundary",
      +          "finish-pattern",
      +          "annotation",
      +          "structure",
      +          "demolition",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "seg_count": {
      +        "description": "Segments this layer owns on this sheet",
      +        "type": "integer"
      +      },
      +      "visible": {
      +        "description": "Default-config visibility — a hidden layer's ink is excluded outright (or you trace demolition)",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "role",
      +      "confidence",
      +      "visible",
      +      "seg_count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / multiple_scales
      Added value: +{
      +  "const": true,
      +  "description": "Several DISTINCT scale notes on this sheet (#153) — enlarged plans/details likely",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "sheet",
      -  "page",
      -  "width_pt",
      -  "height_pt",
      -  "width_px",
      -  "height_px",
      -  "seg_count",
      -  "has_vector_linework",
      -  "scale_set",
      -  "shape_count"
      -]New value: +[
      +  "sheet",
      +  "page",
      +  "width_pt",
      +  "height_pt",
      +  "width_px",
      +  "height_px",
      +  "seg_count",
      +  "has_vector_linework",
      +  "scale_set",
      +  "shape_count",
      +  "layers"
      +]
  4. Addedv0.1.5
  5. Removedv0.1.4
  6. Changed1 schema field changedv0.1.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "detected_scale": {
      +      "description": "Drawn scale note read off the sheet — a suggestion, never auto-applied",
      +      "type": "string"
      +    },
      +    "has_vector_linework": {
      +      "description": "one_click needs vector linework",
      +      "type": "boolean"
      +    },
      +    "height_pt": {
      +      "type": "number"
      +    },
      +    "height_px": {
      +      "type": "number"
      +    },
      +    "page": {
      +      "description": "1-based page number",
      +      "type": "integer"
      +    },
      +    "scale_set": {
      +      "type": "boolean"
      +    },
      +    "seg_count": {
      +      "description": "Vector segment count",
      +      "type": "integer"
      +    },
      +    "shape_count": {
      +      "description": "Committed shapes on this sheet",
      +      "type": "integer"
      +    },
      +    "sheet": {
      +      "description": "Sheet key: page 1 is the bare file name (\"plan.pdf\"), pages 2+ are \"plan.pdf#2\"",
      +      "type": "string"
      +    },
      +    "sheet_number": {
      +      "description": "Title-block sheet number (\"A-101\") where detected",
      +      "type": "string"
      +    },
      +    "upp": {
      +      "description": "Real feet per image px at render scale 2.0 — present once the scale is set",
      +      "type": "number"
      +    },
      +    "width_pt": {
      +      "type": "number"
      +    },
      +    "width_px": {
      +      "description": "Image px at render scale 2.0 — the coordinate space every tool speaks",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "sheet",
      +    "page",
      +    "width_pt",
      +    "height_pt",
      +    "width_px",
      +    "height_px",
      +    "seg_count",
      +    "has_vector_linework",
      +    "scale_set",
      +    "shape_count"
      +  ],
      +  "type": "object"
      +}
  7. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations beyond a title, the description carries the full burden and does substantial work: it discloses the coordinate convention (image px at render scale 2.0, PDF pt × 2, top-left origin, y down), and explains the raster_traced fallback when a sheet is scanned. It stops short of stating whether the call is read-only, what happens on an unknown sheet key, or any permissions, which are the remaining behavioral gaps.

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 returned fields and then the coordinate conventions in order of likely need; no filler sentences. It is dense and jargon-heavy (one_click, raster_traced, 'the browser canvas's native space') in a way that costs some readability, but every clause conveys information.

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 inspection tool with 100% schema coverage and no output schema, the description effectively doubles as the return-value contract by naming each returned field plus the coordinate frame. Only error behavior and read-only/safety characteristics are unaddressed, which are minor for an information lookup.

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 100% — the sheet parameter is already documented as accepting a sheet key or title-block number, and project_id is documented along with its fallback to the last-named project. The description adds nothing about either parameter, only about the coordinate space of returned values, so the baseline of 3 applies.

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?

The description opens with 'Sheet detail:' and then enumerates exactly what comes back — dims in px and pt, vector segment count, vector-linework presence, scale status, scale suggestion, and committed shape count. It's clear this is a metadata/inspection call for a sheet rather than geometry or text retrieval, though it never names a sibling to contrast with (e.g. sheet_facts or get_sheet_vectors), so the agent must infer the boundary.

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 through the field list: knowing whether vector linework exists implicitly matters before calling one_click, and the scale status/suggestion hints at scale-related workflows. There is no explicit 'use this when…' or 'do not use this for…, use X instead', so the agent has to reconstruct the fit from the described outputs.

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

Deploy Server

Other Tools