Skip to main content
Glama

set_scale

Destructive

Set a drawing sheet’s scale from its printed scale note or a known dimension so takeoff quantities measure correctly; optionally confirm an agent-verified scale.

Instructions

Set a sheet's scale from the printed scale note you can SEE on the sheet image (get_sheet_image), as a standard label, e.g. '1/8" = 1'-0"'. Quantities measure at it at once, marked as yours until the person confirms it with one click; a scale the person confirmed is kept. confirm:true confirms it yourself (after you checked it against a dimension on the sheet): the scale then counts as confirmed — send_takeoff_to_estimate and the exports accept it — and the canvas and the audit trail record it as the AGENT's confirmation (actor agent, via mcp/agent), never a person's; the person can change it any time. A sheet that is not a page of the project's documents is refused (404); a confirmation that contradicts the scale printed on the sheet is refused naming it, unless override:true. Free on your own subscription; an automatic read of the printed scale is the Plan Indexer, this is not. Give the sheet and exactly ONE of label, upp, calibrate or use_detected. confirm:true confirms it as yours (there is no separate confirm tool); a confirmation the sheet's printed scale contradicts is refused naming the printed scale, unless you measured a printed dimension that proves a reduced print and pass override:true. Also takes the open-source OpenTakeoff server's arguments (sheet, upp, calibrate, use_detected): sheet keys or numbers, image px at render scale 2, finish tags.

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": "set_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
uppNoReal feet per image px at render scale 2.0
labelNoa standard scale label exactly as printed, e.g. 1/8" = 1'-0", 1/4" = 1'-0", 1" = 20'
sheetYesA sheet key ("plan.pdf#2") or sheet number ("A-101"); sheet_id is accepted in its place.
confirmNotrue: you confirm the scale too, recorded as the agent's confirmation (a scale a person confirmed is never replaced); default false leaves it for the person's one click
overrideNowith confirm:true only: confirm a scale that contradicts the scale printed on the sheet (refused otherwise, naming it), after a printed dimension showed the print is reduced
sheet_idNosheet key "file.pdf#page" (same as sheet; give one)
calibrateNoTwo points (image px) a known real distance apart, and that distance in feet
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.
use_detectedNotrue = adopt the sheet's detected scale

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.0.23
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "true: you confirm the scale too, recorded as the agent's confirmation (a scale a person confirmed is never replaced); default false leaves it for the person's one click",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / label / description
      Previous value: -"A standard scale label, exactly as listed in the error on a miss"New value: +"a standard scale label exactly as printed, e.g. 1/8\" = 1'-0\", 1/4\" = 1'-0\", 1\" = 20'"
    • addedInput schema / properties / override
      Added value: +{
      +  "description": "with confirm:true only: confirm a scale that contradicts the scale printed on the sheet (refused otherwise, naming it), after a printed dimension showed the print is reduced",
      +  "type": "boolean"
      +}
    • 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"
      +}
    • addedInput schema / properties / sheet / description
      Added value: +"A sheet key (\"plan.pdf#2\") or sheet number (\"A-101\"); sheet_id is accepted in its place."
    • addedInput schema / properties / sheet_id
      Added value: +{
      +  "description": "sheet key \"file.pdf#page\" (same as sheet; give one)",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "confirmed": {
      -      "description": "Always false here: set_scale is the agent surface, and an agent-set scale stays UNCONFIRMED until a human confirms it in the canvas — quantities still flow, wearing the caveat",
      -      "type": "boolean"
      -    },
      -    "label": {
      -      "description": "The standard scale label, when set by label or detected note",
      -      "type": "string"
      -    },
      -    "sheet": {
      -      "type": "string"
      -    },
      -    "source": {
      -      "enum": [
      -        "label",
      -        "upp",
      -        "calibrate",
      -        "detected"
      -      ],
      -      "type": "string"
      -    },
      -    "upp": {
      -      "description": "Real feet per image px at render scale 2.0",
      -      "type": "number"
      -    },
      -    "warning": {
      -      "description": "Present when the sheet carries MULTIPLE distinct scale notes (#153) — enlarged plans/details likely; region measurements under a disagreeing note will warn",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "sheet",
      -    "upp",
      -    "source",
      -    "confirmed"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed9 schema fields changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / calibrate / additionalProperties
      Removed value: -false
    • addedInput schema / properties / calibrate / properties / p1 / additionalItems
      Added value: +false
    • removedInput schema / properties / calibrate / properties / p2 / $ref
      Removed value: -"#/properties/calibrate/properties/p1"
    • addedInput schema / properties / calibrate / properties / p2 / additionalItems
      Added value: +false
    • addedInput schema / properties / calibrate / properties / p2 / items
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / calibrate / properties / p2 / maxItems
      Added value: +2
    • addedInput schema / properties / calibrate / properties / p2 / minItems
      Added value: +2
    • addedInput schema / properties / calibrate / properties / p2 / type
      Added value: +"array"
  3. Changed2 schema fields changedv0.1.16
    • addedOutput schema / properties / confirmed
      Added value: +{
      +  "description": "Always false here: set_scale is the agent surface, and an agent-set scale stays UNCONFIRMED until a human confirms it in the canvas — quantities still flow, wearing the caveat",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "sheet",
      -  "upp",
      -  "source"
      -]New value: +[
      +  "sheet",
      +  "upp",
      +  "source",
      +  "confirmed"
      +]
  4. Changed1 schema field changedv0.1.9
    • addedOutput schema / properties / warning
      Added value: +{
      +  "description": "Present when the sheet carries MULTIPLE distinct scale notes (#153) — enlarged plans/details likely; region measurements under a disagreeing note will warn",
      +  "type": "string"
      +}
  5. Addedv0.1.4
  6. Removedv0.1.3
  7. Addedv0.1.2
  8. Removedv0.1.1
  9. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: quantities recompute immediately at the new scale, the result is marked as the agent's until a person clicks, a person-confirmed scale is never replaced, agent confirmations are attributed in the audit trail as actor agent via mcp/agent, and the person can change it at any time. It also discloses two distinct refusal modes (404 for a non-project page, contradiction with the printed scale unless override:true), which is exactly the extra context destructiveHint/idempotentHint cannot convey.

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

Conciseness2/5

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

The core is front-loaded, but the confirm/override/contradiction-refusal cycle is explained twice in near-identical sentences, and asides like 'Free on your own subscription' and the repeated 'image px at render scale 2' add bulk. Roughly a third of the text restates earlier points, making it a run-on rather than a tight instruction.

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 9-parameter mutation with no output schema, it covers side effects (quantities, audit trail, actor attribution), error paths, precedence of person vs agent confirmation, and argument exclusivity. It is nearly complete; what remains unstated is how to undo or resettle quantities after a wrong scale, and what a success response looks like.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: the mutual exclusivity of label/upp/calibrate/use_detected, the preconditions on confirm:true, the restriction of override to confirm:true plus a measured printed dimension, and the fallback project when project_id is omitted. Only the semantics of calibrate points and finish tags rely on the schema alone.

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?

States a specific verb and resource (set a sheet's scale) plus the source of the value (the printed scale note visible on get_sheet_image). It contrasts itself with the automatic read: 'an automatic read of the printed scale is the Plan Indexer, this is not', so an agent can separate it from a read_printed_scale-style sibling without opening either 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?

Gives a hard structural rule ('Give the sheet and exactly ONE of label, upp, calibrate or use_detected'), explains the confirm:true vs leave-for-the-person branch, notes there is no separate confirm tool, and lists the override condition. It is clear when to use each mode, though billing chatter and the duplicated confirm explanation dilute the routing signal.

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