Skip to main content
Glama

run_recipe

Read-only

Run a saved recipe and return its rows. args sets parameters and picks sets slots (describe_recipe lists both, unless the search hit already did); omitted ones take the recipe's defaults. Values are bound as typed values, so they only select rows; one outside what a parameter declares is refused. Results have run_sql's shape.

truncated: true means rows were left out: before raising max_rows, narrow with args or picks, or keep the whole answer with materialize_recipe and aggregate it with run_sql.

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": {
      "recipe_id": "<recipe_id>"
    },
    "name": "run_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments by parameter name: `{"country": "DE", "since": "2026-01-01"}`. Omitted or null takes the default; a required one missing is refused. Plain values, never tagged `{t,v}`.
lensNo`"latest"` (default) or `"released"`. Only a PRIVATE recipe takes it; a published one is pinned to `released` and refuses it.
picksNoSlot picks by slot name, each naming its kind: `{"month": {"kind": "grain", "grain": "month"}}`, `{"by": {"kind": "dimension", "column": "col-..."}}`, `{"only_paid": {"kind": "filter", "present": false}}`. Omitted: the defaults.
versionNoA specific version. Omitted, the current one.
max_rowsNoMaximum result rows: default 1000, cap 100000.
recipe_idYes
include_join_detailsNoFalse: unlinked joins as counts and tables, without their conditions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint, and the description adds real behavior beyond that: omitted args/picks fall back to recipe defaults, values are bound as typed values rather than injected, out-of-declaration values and missing required params are refused, and `truncated: true` signals dropped rows. The max_rows cap is left to the schema rather than restated with consequences, which keeps it short of a 5.

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?

Two tight paragraphs, front-loaded with the core action and followed by the truncation escape hatch. Parenthetical asides and the dense backtick-heavy phrasing cost a little readability but nothing 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 by saying results have run_sql's shape and by explaining the `truncated` flag and how to react to it. It does not enumerate the error cases the refusals produce, but for a read-only 7-parameter tool this is close to complete.

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 86%, so the baseline is 3; the description earns more by explaining the distinction between `args` (parameters) and `picks` (slots), that omitted values take defaults, and that plain values are bound as typed values rather than tagged `{t,v}` forms. This is meaning the schema descriptions do not fully convey on their own.

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?

"Run a saved recipe and return its rows" gives a specific verb and resource, and the surrounding text ties it to run_sql (same result shape), describe_recipe (parameter/slot discovery) and materialize_recipe (large-result handling). An agent can distinguish it from the ad-hoc SQL sibling without opening any schema.

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?

It explicitly routes the agent to describe_recipe (or a prior search hit) to learn args and picks, and states a decision rule for truncated results: narrow via args/picks or switch to materialize_recipe. It does not state when to prefer run_sql over run_recipe, but the guidance it does give is actionable.

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.

Resources