Skip to main content
Glama

Execute Cookbook

execute_cookbook

Use this when you need evaluate_script (and optionally open_in_studio) for an industry / cookbook demo in ONE step — after lookup_cookbook for industry demos, prefer execute_cookbook when you need evaluate+Studio together; empty lookup is not a stop (freehand-author instead). Resolves a cookbook snippet by id or BM25 query (same ranking as lookup_cookbook), evaluates its body via evaluate_script with bounded vendor timeouts, and returns explicit status with stage resolve|evaluate|open_in_studio. Pass open_in_studio:true to publish the same script via open_in_studio after a green full evaluate (hosted MCP). dry_run:true is the fast capture-only path — it is NOT evidence the cookbook builds a solid or is safe to publish; finish with dry_run:false (default) before claiming success or opening Studio.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "execute_cookbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoCookbook snippet id (e.g. gt2-timing-belt-drive, extrude-rounded-rect-plate).
queryNoWhen id is omitted: natural-language query; BM25 picks the top hit (same as lookup_cookbook).
intentNoThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.
kernelNoSolid-modeling kernel forwarded to evaluate_script. Default 'occt'; opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics.
dry_runNoDefault false. dry_run:true is NOT evidence the cookbook builds a solid — capture-only checks; do not claim success or open Studio from a dry run alone.
projectNoSlug of an existing project. Adds a revision to that project. Omit to start a new project when this cookbook or design is different from the one this chat already saved.
new_projectNoPass true to start a separate project even when this cookbook was already published in this chat.
open_in_studioNoDefault false. When true, after a green full (non-dry_run) evaluate, call open_in_studio on the same script (hosted MCP).
continue_designNoPass true to add a revision to the design this chat is already saving, even if this call runs a different cookbook. Ignored when `project` is set.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / dryRun
      Removed value: -{
      -  "default": false,
      -  "description": "Default false. dryRun:true is NOT evidence the cookbook builds a solid — capture-only checks; do not claim success or open Studio from a dry run alone.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Default false. dry_run:true is NOT evidence the cookbook builds a solid — capture-only checks; do not claim success or open Studio from a dry run alone.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / openInStudio
      Removed value: -{
      -  "default": false,
      -  "description": "Default false. When true, after a green full (non-dryRun) evaluate, call open_in_studio on the same script (hosted MCP).",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / open_in_studio
      Added value: +{
      +  "default": false,
      +  "description": "Default false. When true, after a green full (non-dry_run) evaluate, call open_in_studio on the same script (hosted MCP).",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / kernel / description
      Previous value: -"Solid-modeling kernel forwarded to evaluate_script. Default 'occt'; 'smlib' is reserved and currently fails with recompute.kernel.unavailable."New value: +"Solid-modeling kernel forwarded to evaluate_script. Default 'occt'; opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics."
  3. Changed1 schema field changed
    • addedInput schema / properties / kernel
      Added value: +{
      +  "description": "Solid-modeling kernel forwarded to evaluate_script. Default 'occt'; 'smlib' is reserved and currently fails with recompute.kernel.unavailable.",
      +  "enum": [
      +    "occt",
      +    "smlib"
      +  ],
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "code": {
      -    "description": "Snippet body used for evaluate / Studio.",
      -    "type": "string"
      -  },
      -  "cookbookId": {
      -    "description": "Resolved cookbook snippet id.",
      -    "type": "string"
      -  },
      -  "dryRunNotEvidence": {
      -    "description": "Present when dryRun:true — dryRun success is not evidence the solid built.",
      -    "type": "boolean"
      -  },
      -  "error": {
      -    "type": "string"
      -  },
      -  "evaluate": {
      -    "additionalProperties": true,
      -    "description": "Full evaluate_script result (same shape).",
      -    "type": "object"
      -  },
      -  "executionId": {
      -    "description": "Short id for logs / correlation.",
      -    "type": "string"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "openInStudio": {
      -    "additionalProperties": true,
      -    "description": "open_in_studio result when openInStudio was requested.",
      -    "type": "object"
      -  },
      -  "stage": {
      -    "description": "'resolve' | 'evaluate' | 'open_in_studio' on failure.",
      -    "type": "string"
      -  },
      -  "title": {
      -    "description": "Resolved cookbook title.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "executionId"
      -]
  5. Changed2 schema fields changed
    • changedInput schema / properties / dryRun / description
      Previous value: -"Default false. dryRun:true is NOT evidence the cookbook builds under OCCT — capture-only checks; do not claim success or open Studio from a dry run alone."New value: +"Default false. dryRun:true is NOT evidence the cookbook builds a solid — capture-only checks; do not claim success or open Studio from a dry run alone."
    • changedOutput schema / properties / dryRunNotEvidence / description
      Previous value: -"Present when dryRun:true — dryRun success is NOT evidence of a real OCCT build."New value: +"Present when dryRun:true — dryRun success is not evidence the solid built."
  6. Changed3 schema fields changed
    • addedInput schema / properties / continue_design
      Added value: +{
      +  "description": "Pass true to add a revision to the design this chat is already saving, even if this call runs a different cookbook. Ignored when `project` is set.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / new_project
      Added value: +{
      +  "description": "Pass true to start a separate project even when this cookbook was already published in this chat.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Slug of an existing project. Adds a revision to that project. Omit to start a new project when this cookbook or design is different from the one this chat already saved.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "The user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
  8. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false, and the description is consistent with them while adding real context: bounded vendor timeouts, an explicit returned status with stage resolve|evaluate|open_in_studio, and the caution that dry_run is capture-only and not proof of a solid. It does not discuss cost or failure recovery beyond stage reporting, so it falls just short of the top mark.

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

Conciseness3/5

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

The when-to-use clause is correctly front-loaded and little is wasted, but the body is delivered as long em-dash-and-parenthesis run-ons that force re-reading, and the dry_run caveat is stated twice (opening and closing). It is dense rather than tidy.

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 orchestrator with an output schema, the description covers resolution, evaluation, publishing gate, and dry-run semantics well. Remaining gaps — how project, new_project, and continue_design interact, and kernel fallback behavior — are fully documented in the schema descriptions.

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 cross-parameter meaning the schema cannot: `query` uses the same BM25 ranking as lookup_cookbook, `open_in_studio` only fires after a green non-dry_run evaluate, and dry_run defaults to false and must be finished that way before claiming success. The project/new_project/continue_design interplay is left entirely to 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?

The description states a precise composite verb and resource: resolve a cookbook snippet by `id` or BM25 `query`, evaluate its body via evaluate_script, and optionally publish via open_in_studio. It explicitly contrasts itself with lookup_cookbook and with standalone evaluate_script, so an agent can route between the three without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit selection rule: after lookup_cookbook, prefer execute_cookbook when you need evaluate+Studio in one step, and an empty lookup is not a stop (freehand-author instead). It also states the gating condition for open_in_studio (green full evaluate, hosted MCP) and that dry_run must not be treated as evidence, which is when-to-use guidance at the parameter level.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.