Skip to main content
Glama

load_plan

Opens a plan PDF from disk as a project, reopening the existing project for that file or creating a new one; optionally merges the document into a project's plan set.

Instructions

Open a plan PDF from disk as a project. The file is checked first (it must exist and be a PDF): nothing is created for a bad path. Without project_id: the project that already holds this file (same name, same file) is REOPENED with its scales, conditions and shapes, and the answer says project: "reopened"; otherwise a new project is made (project: "created"). new_project: true always makes a new one. project_id adds the document to that project; merge: true ADDS it to the project the session is on (#152) — a bid set is plans + schedule + addenda, not one PDF — keeping every scale, condition, and shape; sheet keys carry file names so documents never collide. Re-merging a file the project already has is refused. Returns project_id, project, file, files, page_count, and one entry per sheet. 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": {
      "path": "<path>"
    },
    "name": "load_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to a plan PDF on disk
mergeNotrue = ADD this document to the working set, keeping all existing work (merge into an empty session is just a load)
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.
new_projectNotrue = always make a new project, even when one already holds this file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.23
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / new_project
      Added value: +{
      +  "description": "true = always make a new project, even when one already holds this file",
      +  "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"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "file": {
      -      "description": "The document just loaded (basename)",
      -      "type": "string"
      -    },
      -    "files": {
      -      "description": "Every document in the working set, load order (#152 — one entry unless merge was used)",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "page_count": {
      -      "description": "Total sheets across the working set",
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "sheets": {
      -      "description": "EVERY sheet in the working set, not just the file loaded by this call",
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "detected_scale": {
      -            "description": "Drawn scale note read off the sheet — a suggestion, never auto-applied",
      -            "type": "string"
      -          },
      -          "height_pt": {
      -            "type": "number"
      -          },
      -          "height_px": {
      -            "type": "number"
      -          },
      -          "page": {
      -            "description": "1-based page number",
      -            "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"
      -          },
      -          "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"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "file",
      -    "files",
      -    "page_count",
      -    "sheets",
      -    "note"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed5 schema fields changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / page_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / page_count / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / sheets / items / properties / page / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / sheets / items / properties / page / minimum
      Added value: +-9007199254740991
  3. Changed6 schema fields changedv0.1.9
    • addedInput schema / properties / merge
      Added value: +{
      +  "description": "true = ADD this document to the working set, keeping all existing work (merge into an empty session is just a load)",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / file / description
      Added value: +"The document just loaded (basename)"
    • addedOutput schema / properties / files
      Added value: +{
      +  "description": "Every document in the working set, load order (#152 — one entry unless merge was used)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / page_count / description
      Added value: +"Total sheets across the working set"
    • addedOutput schema / properties / sheets / description
      Added value: +"EVERY sheet in the working set, not just the file loaded by this call"
    • changedOutput schema / required
      Previous value: -[
      -  "file",
      -  "page_count",
      -  "sheets",
      -  "note"
      -]New value: +[
      +  "file",
      +  "files",
      +  "page_count",
      +  "sheets",
      +  "note"
      +]
  4. Addedv0.1.5
  5. Removedv0.1.4
  6. Addedv0.1.3
  7. Removedv0.1.2
  8. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The only annotation is a title, so the description carries the full burden, and it does disclose a lot: pre-validation of the path, what happens on failure (nothing created), reopen-vs-create outcomes, the re-merge refusal, and a real return payload list. It never says whether the operation writes to disk or is reversible, and the coordinate/render-scale detail is implementation trivia rather than call-critical behavior, leaving the mutation profile underspecified for an annotation-free tool.

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 core action and validation rule, then mode-by-mode behavior, then returns. Most sentences earn their place, but the parenthetical asides ("#152", "the browser canvas's native space") and the px/pt coordinate exposition add length without helping tool selection.

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?

No output schema exists, yet the description enumerates the return fields (project_id, project, file, files, page_count, plus one entry per sheet) and the coordinate convention, which is what an agent needs to interpret results. Remaining gaps are minor, such as error behavior beyond a bad path or whether sheet count is paginated.

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 three is the baseline, but the description goes beyond it by explaining how the parameters interact: new_project overrides reopen-matching, project_id scopes the add, and merge targets the session's current project with a collision-safe sheet-key rule. That interaction semantics is not present in the schema and is the thing an agent is most likely to get wrong.

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: "Open a plan PDF from disk as a project." The mode distinctions (reopen vs. create, new_project, project_id, merge) are spelled out clearly enough that an agent can tell this apart from project-creation siblings, though no sibling is named explicitly.

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?

Explains the conditions for each mode: without project_id it reopens a matching project or creates one, new_project forces a fresh one, project_id targets a specific project, and merge adds to the current session. It also notes the re-merge refusal and that merging into an empty session is just a load. It gives no explicit when-not-to-use or named alternative tool guidance.

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