Skip to main content
Glama

Import an existing workbook

import_workbook

Scans an existing .xlsx into a reviewable plan with per-sheet tabs and confidence-rated detected blocks, then opens the layout canvas so users can correct mislabelled areas before rebuilding.

Instructions

Scan an existing .xlsx into a plan: one tab per sheet, blocks detected from borders, bold headers, formula density and chart anchors, each with a confidence. Opens the layout canvas with Detected badges so the user can fix mislabelled blocks before anything is rebuilt. Tabs are marked approved (the sheets already exist); layouts are not.

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

Input Schema

NameRequiredDescriptionDefault
nameNoProject name; default: the file name
pathYesAbsolute path to the .xlsx
briefNoWhat the user wants to do with it (restyle, extend, rebuild)
formattingNoplain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose meaningful behavior: detection heuristics, per-block confidence values, an automatic UI side effect (opening the layout canvas with Detected badges), and asymmetric approval state between tabs and layouts. It does not state permissions/auth requirements, whether re-importing overwrites an existing plan, or what the response looks like, leaving some gaps for a state-mutating import.

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?

Two tight sentences, front-loaded with the core action and its outputs, then the workflow consequence. The dense detection list is informative rather than filler, and no sentence is redundant.

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?

With no output schema, the description compensates well by describing the resulting plan structure and confidence values, plus the approval-state nuance. It is slightly incomplete on failure/overwrite behavior for an operation that creates a plan and opens a canvas, but overall sufficient for correct invocation.

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 75% and every parameter (name, path, brief, formatting with its enum) already has a schema description, so the schema does the heavy lifting. The description adds no parameter-level meaning — notably the plain/house/template formatting enum and the restyle/extend/rebuild intent of 'brief' are not elaborated beyond the schema.

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 ('Scan an existing .xlsx into a plan') and enumerates the concrete artifacts produced (one tab per sheet, blocks detected from borders, bold headers, formula density, chart anchors, each with a confidence). The phrase 'before anything is rebuilt' implicitly separates it from build/restyle siblings, so an agent can tell this is the ingestion step rather than a build step.

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?

Clear usage context: this is the entry point that produces a plan and opens the layout canvas so the user can fix mislabelled blocks before rebuilding. It also clarifies the state semantics ('Tabs are marked approved; layouts are not'), which tells the agent this is a review-gated step. It stops short of naming a specific alternative to use instead, so no explicit exclusion clause.

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