Skip to main content
Glama

Quote Flow (Pipeline)

lab_flow_angebot

Use when the person wants a saved flow, pipeline or multi-step workflow priced, costed, calculated or checked against the balance BEFORE anything runs. Price a whole Flow (Pipeline) before running it: one quote over every node, checked against the credit balance and the project's cost cap. workflow is a FilmOS workflow in schema v1 (vault/workflows/_schema.md): nodes of type lab.tool call FilmLab tools by name, {{node_id.field}} passes one node's result into the next; parallel, condition and foreach over workflow input lists (including defaults) are supported. foreach is expanded before the run; lists from node results, nested loops and workflow.invoke are not supported yet. Every node whose tool costs money is priced with that tool's own get_cost preflight; a paid tool without a preflight, or a price that cannot be determined, rejects the whole quote by name — nothing is estimated. Nothing is generated and nothing is charged. Returns angebot_id (valid 24 h, for exactly this workflow, these inputs and this project), the total, one line per node, the balance and what the cap still allows. A node whose price only exists once its input exists (lab_upscale fed by a clip from another node) is listed with preis_folgt: true and is NOT in the total: the run stops before it, names the exact price and continues only after lab_flow_fortsetzen — tell the person so when you name the total.

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": {
      "project_id": "<project_id>",
      "workflow": "<workflow>"
    },
    "name": "lab_flow_angebot"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNoValues for the workflow's `inputs`, referenced as {{name}}
workflowYesThe Flow (Pipeline) as a FilmOS workflow object, schema_version "1"
project_idYesProject id (from lab_list_projects) — every node runs in this project

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the minimal annotations, it discloses that nothing is generated or charged, quotes are rejected rather than estimated when a paid tool lacks a determinable preflight price, and dynamically priced nodes are excluded from the total. It further documents quote expiry and binding, per-node pricing, balance and cap results, and the stop-and-continue behavior for `preis_folgt` nodes; none of this contradicts readOnlyHint=false or destructiveHint=false.

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 usage trigger and core pricing purpose are front-loaded, followed logically by workflow syntax, pricing rules, outputs, and the deferred-price exception. The material is useful, but packing this much technical detail into one long paragraph makes it dense; shorter paragraphs or bullets would improve scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with nested workflow input and no output schema, the definition covers the information needed to construct a supported request and interpret the result, including `angebot_id`, validity, total, node lines, balance, and cap allowance. It also addresses important failure and partial-total cases rather than leaving the agent to infer them during invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds substantial meaning for the nested `workflow` object: schema v1, the schema document location, `lab.tool` nodes, result-reference syntax, and supported control constructs. It also clarifies how workflow inputs and defaults affect `foreach`, lists unsupported input sources and nesting, and explains that the resulting quote is bound to the exact workflow, inputs, and project.

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 specific operation and scope: pricing a whole Flow across every node and checking the total against the credit balance and project cost cap. It clearly distinguishes this pre-execution quote from running the workflow and from the later continuation handled by lab_flow_fortsetzen.

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?

The opening gives an explicit trigger: use it when a saved flow, pipeline, or multi-step workflow must be priced or balance-checked before anything runs. It also supplies situational routing for deferred prices, explaining that execution stops and continues only after lab_flow_fortsetzen, and instructs the agent to disclose that caveat when presenting the total.

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