Skip to main content
Glama

Run GridCraft engine commands

run_gridcraft_commands
Destructive

Execute ordered GridCraft engine commands and spreadsheet actions on new, sample, or opened workbooks; save results or drive the live app.

Instructions

Advanced: run any GridCraft engine commands in order (cell., home., insert., formulas., data., review., view., pageLayout., chart., table., pivot., sheet....) plus the engine tools write_range / read_range / set_cell / get_cell / evaluate_formula / format_range / insert_chart / create_table / sort_range / filter / select / inspect_workbook (step id = the tool name), on a new, sample or opened workbook, then save. Parameters can use "$steps[N].field" for a value returned by step N (0-based). With live=true the steps drive the open GridCraft app instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
liveNoDrive the open GridCraft app (control port 7979) instead of a headless engine.
nameNogridcraft
stepsNo
sampleNoStart from a sample when there is no open_path.
formatsNoSave the result (needs output_dir or output_path).
open_pathNoAbsolute workbook to open first (never saved over; save a copy with formats).
overwriteNo
all_sheetsNo
output_dirNo
output_pathNo
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotency, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the $steps[N].field cross-step reference syntax, that live=true drives the open app, and that commands run sequentially with a save at the end. It does not, however, explain failure handling or exactly what is destroyed/overwritten.

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?

The action is front-loaded and nearly every clause carries information (command families, delegated tools, step-id convention, $steps reference, live mode). It is dense and runs long as essentially one sentence, which hurts scanability slightly, but there is little filler.

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 an 11-parameter composite runner with no output schema, the description conveys the core execution model (ordered steps, engine tool steps, source workbook options, save step, live mode) so an agent can call it correctly. Gaps remain around error handling, overwrite behavior, and the output_dir/output_path pairing, keeping it short of a full 5.

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 description coverage is only 36%, so the description must compensate. It does clarify live, sample, the steps/id model, and the $steps[N] reference syntax (which is not in the schema), but leaves name, overwrite, all_sheets, output_dir, output_path, and stop_on_error unaddressed. Partial compensation warrants the baseline 3.

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 ('run any GridCraft engine commands in order') and makes the batch/composite nature explicit by enumerating the command families (cell.*, home.*, etc.) and the engine tools it can delegate to. An agent can immediately distinguish this general-purpose executor from single-operation siblings like create_workbook or edit_workbook.

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?

The 'Advanced:' prefix and the description of operating on a new/sample/opened workbook imply context, and mentioning that it saves afterward gives a hint of when to reach for it. However, it never explicitly says when to prefer this batch tool over the plain sibling tools (create_workbook, edit_workbook, read_workbook), leaving the choice to inference.

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