Skip to main content
Glama
hilvana-mcp

hilvana-mcp

Official

Run a recipe

recipe_run
Idempotent

Run validated document recipes locally to produce new PDF or Word outputs, verify goals, and keep inputs unchanged. Destructive steps return a plan for confirmation before execution.

Instructions

Runs a recipe locally and writes the result to a NEW file (or, when the recipe ends with split, one new file per part in the output folder), then verifies the goals. Inputs are never modified. If the recipe has destructive steps it returns the plan and asks for confirmation instead of running; set confirm=true only after the user agreed.

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": {
      "files": "<files>",
      "output": "<output>"
    },
    "name": "recipe_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
eachNoApply the recipe to each PDF/Word input separately (a batch). Other inputs, like a signature image, are shared. The recipe must not name documents. Results go to the output folder.
langNoLanguage for the step descriptions and messages.
filesYes
savedNoNot available: no saved recipes folder is configured.
engineNoWord engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local.
outputYesPath of the new PDF, inside an allowed folder. Must not be an input. When the recipe ends with a split step, or with each=true, an existing folder for the results instead.
recipeNoA Hilvana recipe object (see resource hilvana://recipe-schema). Example: {"version":1,"steps":[{"op":"merge"},{"op":"sign","image":"firma.png"}],"goals":{"maxBytes":2000000}}
confirmNoRequired when the recipe has destructive steps, after the user agreed.
overwriteNoReplace the output if it already exists (never an input).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.2

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: inputs are never modified, output is a new file, goals are verified afterwards, and destructive steps are gated behind confirmation. It does not contradict destructiveHint=false because the destructive behavior is explicitly withheld pending confirmation. It could say more about what the verification result looks like, since no output schema exists.

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?

Three tight sentences, front-loaded with the main action and output behavior, then the safety gate. Every clause carries information an agent needs; no restatement of the title.

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 tool with a nested recipe object and no output schema, the description covers the key contract: new-file output, folder output for split/each, input immutability, and confirmation gating. The main gap is the shape of the returned verification/report result, which the description leaves unstated.

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 89%, so the schema already documents most parameters, and the description only reinforces the confirm and output-folder semantics already present there. It adds little parameter meaning beyond the schema, matching the baseline for high coverage.

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 ("Runs a recipe locally") plus the concrete effect ("writes the result to a NEW file... one new file per part"). It also implicitly contrasts with the planning sibling by describing the case where it "returns the plan and asks for confirmation instead of running", so an agent can tell execution apart from planning.

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 clear conditions: set confirm=true only after the user agreed, and destructive recipes return a plan rather than executing. It explains the split/each output-folder case as well. It stops short of naming recipe_plan as the preview alternative, so guidance is clear but not fully exhaustive.

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