Update to StewAI
Snapshot Oct 24, 2026 · 13:07 UTC · version 1.1.0
Collection source: downloaded plugin package. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.
Payment or plan references changed
Full description — Now says: find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions...
Observed in published text. Live prices and checkout terms have not been verified by this change.
Up to 3 plugins free · no card required.
All fields and original values.
Full description
Sep 30, 2026 · 23:07 UTC
discover workflow examples, search and preview live recipes after email sign-in, estimate credits, run recipes, and retrieve final declared results without managing an API key. Use when the user mentions the StewAI plugin, StewAI MCP, or...
Oct 24, 2026 · 13:07 UTC
find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a...
Skill instructions
Sep 30, 2026 · 23:07 UTC
discover workflow examples, search and preview live recipes after email sign-in, estimate credits, run recipes, and retrieve final declared results without managing an API key. Use when the user mentions the StewAI plugin, StewAI MCP, or...
Oct 24, 2026 · 13:07 UTC
find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a...
Supporting files
Sep 30, 2026 · 23:07 UTC
[{"relative_path":"LICENSE","size_in_bytes":10776}]
Oct 24, 2026 · 13:07 UTC
[]
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -1,85 +1,352 @@ --- name: stewai-mcp -description: "Use the StewAI MCP plugin to discover workflow examples, search and preview live recipes after email sign-in, estimate credits, run recipes, and retrieve final declared results without managing an API key. Use when the user mentions the StewAI plugin, StewAI MCP, or wants keyless access to an existing StewAI recipe. Do not use for Python SDK or recipe-authoring work." +description: "Use the StewAI MCP plugin to find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a tested recipe. Do not use for the Python SDK." --- # StewAI MCP -Use StewAI recipes through the plugin without installing a package or managing an API key. +Use StewAI as one capability system: reuse a suitable published recipe when possible; otherwise +build, qualify, and privately run a new one. Do not ask the user to choose between marketplace and +authoring workflows. ## MCP-only routing -Use only the StewAI MCP tools listed below. Never fall back to the Python SDK, an API key, a -browser search, shell commands, or workspace files when an MCP tool needs authentication or is +Use only the StewAI MCP tools listed here. Never fall back to the Python SDK, an API key, browser +search, shell commands, or workspace files when an MCP tool needs authentication or is unavailable. Ask the user to connect or reauthenticate StewAI, then retry the same MCP tool. -## Access model - -`discover_stewai` is anonymous and returns fixed workflow examples. Every live marketplace, -preview, execution, status, or result request starts with a one-time email sign-in. +`discover_stewai` is anonymous. Every live search, preview, run, result, or authoring operation +uses the signed-in StewAI account and its current organization. New 1.1.0 scopes may require the +user to reconnect an older installation. + +## Required workflow + +1. Call `discover_stewai` once in a fresh connection, then call `search_recipes` with a meaningful + problem statement and, when known, required input and output labels. Synthetic handles remain + accepted for compatibility, but normally use semantic labels such as `Contract text` and + `Risk note`. +2. When more than one result plausibly fits, preview and compare at least the top two. Compare + contract fit (`output_contract_state`), qualification and `evidence_note`, past-run cost + `history`, duration, and current access. `results` are direct fits; `related_results` are + adjacent recipes, so say so rather than presenting one as the requested task. Do not invent an + overall quality score. +3. If a candidate is sufficient, call `run_recipe` with `dry_run: true`. Tell the user what past + runs of the recipe cost (`history`), any fee, and their balance, and obtain the user's approval + before a real run when execution could spend credits or affect an external system. The user + decides; the balance does not have to cover the theoretical worst case. Then run once, poll `get_run`, read declared outputs with `get_results`, and + inspect its paginated `steps` view when the user needs an explanation, the run fails, or the + workflow is being dogfooded. +4. If no candidate is sufficient, call `get_recipe_build` without `build_ref` to check recent + owned builds before starting another one. +5. Start or continue one build. Apply the smallest useful draft change, run deterministic checks, + and repair concrete failures before any paid review. +6. Quote every paid review or acceptance action before executing it. Use bounded research only + when the risk or research policy warrants it and when evidence can change the method or a + safety control. +7. Run selected failing cases during repair. Run the complete acceptance suite only when the + revision is ready to qualify. Any draft, contract, evidence, suite, or policy change creates a + new revision and invalidates earlier qualification. + At least one normal case must match or exceed the intended production input's size, variety, + and likely output cardinality. Never shrink the only representative fixture merely to fit the + per-case quote ceiling; simplify the prompt, schema, graph, or output cardinality instead. +8. Preflight and commit only the exact revision with a green complete acceptance suite, required + review or research evidence, and settled billing. +9. The commit is private, unlisted, and unreviewed. Pass its `recipe_ref` to + `get_recipe_preview` first, use only the preview's positional `input_N` handles and refreshed + reference, then dry-run that exact private revision. Obtain any required approval and run one + representative real-world probe before calling the recipe stable. Read every declared output, + not just terminal status. Because V1 cannot revise a committed build, a reproducible defect in + that probe requires a corrected replacement build; never describe the flawed revision as + qualified in practice merely because its acceptance batch was green. + +Skip the initial search only when the user supplies an explicit `build_ref` to continue or repair. +Even then, inspect the current build before changing it. + +When resuming a build in a fresh agent context, request its `activity` view. Each recent row +contains a fresh `activity_ref`, the exact revision, state, and any stable terminal error code; +continue polling that reference instead of starting and paying for a duplicate activity. ## Tools <!-- BEGIN TOOL TABLE --> -| Tool | Auth | Purpose | -| -------------------- | ------------- | ----------------------------------------------------------------------- | -| `discover_stewai` | none | Show fixed examples of what StewAI can automate. | -| `search_recipes` | email sign-in | Search the live marketplace with a meaningful query. | -| `get_recipe_preview` | email sign-in | Preview safe labels, synthetic inputs, outputs, and historical pricing. | -| `run_recipe` | email sign-in | Estimate credits or run a previewed recipe idempotently. | -| `get_run` | email sign-in | Read caller-owned status and terminal billing settlement. | -| `get_results` | email sign-in | Read available final author-declared outputs for a completed owned run. | +| Tool | Purpose | +| --------------------------- | -------------------------------------------------------------------------- | +| `discover_stewai` | Learn connection rules and the exact consumer and authoring journeys. | +| `search_recipes` | Search public and currently authorized published recipes. | +| `get_recipe_preview` | Compare safe contracts, access, evidence, duration, and pricing. | +| `run_recipe` | Estimate or idempotently run a previewed public or authorized recipe. | +| `get_run` | Read owned-run status and authoritative terminal billing. | +| `get_results` | Read declared outputs or a sanitized, paginated owned-run step trace. | +| `start_recipe_build` | Create one owned private draft from an intent and declared contracts. | +| `get_recipe_build` | List recent builds or inspect one bounded build view. | +| `update_recipe_build` | Change a draft, contracts, acceptance suite, research evidence, or chunks. | +| `check_recipe_build` | Run free deterministic lint, render, policy, graph, and compiler checks. | +| `review_recipe_build` | Quote or run bounded semantic review and permitted research. | +| `run_recipe_acceptance` | Quote or run selected or complete behavioral cases. | +| `get_recipe_build_activity` | Poll review or aggregate acceptance evidence and settled billing. | +| `commit_recipe_build` | Preflight and privately publish only the exact qualified revision. | <!-- END TOOL TABLE --> -## Recipe references and inputs - -`search_recipes` returns an opaque `recipe_ref`. Pass that reference to `get_recipe_preview`. The -preview returns a refreshed `recipe_ref`; pass that preview-issued reference to `run_recipe`. A -reference is bound to the signed-in account and expires after one hour. Search again when a -reference is stale. Never replace it with a recipe ID. +## Search, preview, and references -The preview names accepted inputs as `input_1`, `input_2`, and so on. Send only those synthetic -handles to `run_recipe`. +Search results may come from `public`, `owned`, `organization`, or `shared` sources. Source is not +proof of quality or permission. The server rechecks current user, tenant, revision, contract, +ownership, and sharing grants before every preview or run. +The public lane contains only listed recipes whose safety approval is pinned to their exact current +published revision. It is the currently approved, runnable public catalog, not every row that may +have been visible in historical Marketplace data. + +When `match_status` is `no_suitable_match`, do not invent or recommend a weak result. Follow its +`next_action`: list recent private builds, continue a suitable one if present, otherwise offer to +start a new build. `authorization_required` means a requested search lane was not searched; it is +not evidence that no recipe exists. + +`search_recipes` returns an opaque `recipe_ref`. Pass it to `get_recipe_preview`. The preview +returns a refreshed `recipe_ref`; pass that preview-issued reference to `run_recipe`. References are account- and tenant-bound and +expire. Search again after expiry, tenant switching, access changes, or revision changes. Never +replace a reference with a recipe ID. + +Preview input handles are the only accepted run input keys. Send exactly those handles and values +that satisfy the declared schemas. Preview states whether each input must be supplied, whether a +default exists, and the applicable character and UTF-8 byte limits. When dry-run or execution +reports `invalid_inputs`, repair every issue by its `path`, `code`, `hint`, and `limit`; the +response never echoes submitted values or hidden defaults. Do not ask for recipe source, +authoring fixtures, credentials, +or provider payloads. When the user owns the run, use only the bounded sanitized trace returned by +`get_results`; do not infer access to another user's run from recipe visibility. ## Estimate, execute, and read -Search and preview return a `pricing` object based only on the recipe's historical average across -successful runs. Its `credit_band` is context, not an input-aware estimate or affordability -check. Always call `run_recipe` with `dry_run: true` before recommending or starting execution. - -Every `run_recipe` call, including a dry run, requires a valid `idempotency_key`. Call it with -`dry_run: true` to receive `estimated_credits`, `available_credits`, and `sufficient` without -executing or consuming that key. For a real run, provide a fresh key. Reusing a consumed key with -the same request returns the same run. Reusing it with changed inputs is a conflict. - -If `run_recipe` returns `account_unavailable`, the signed-in identity does not have a runnable -StewAI workspace. Do not change or retry the recipe inputs. Ask the user to reconnect with an -ordinarily provisioned Free account or contact StewAI support for account repair. - -The client may ask the user to confirm a real run because `run_recipe` is marked destructive and -open-world. Use `get_run` to check status. After the run is terminal, continue polling `get_run` at -its supplied interval while `billing.state` is `pending`, stopping after the 300-second settlement -window. A settled response reports the authoritative run-tree charge; tokens allowed to run also -receive the account's current available balance and its timestamp. Do not interpret that balance -as this run's isolated before/after effect. If billing becomes `unavailable`, explain that the -charge could not be verified through the connector. - -Call `get_results` only when the status is `done` and `results_available` is `true`. A successful -result contains only the final author-declared outputs as `{label, value}` entries. Billing never -comes from `get_results`. If the response is `result_unavailable` or `result_too_large`, explain -that no declared result payload is available; do not look for internal run data instead. +Always call `run_recipe` with `dry_run: true` before recommending or starting execution. Report +the facts plainly and let the user decide: + +- `history`: credits charged by past successful runs of this recipe's current version (average, + median, p90, run counts, last run). With fewer than three runs the statistics are null and + `recent_charges` lists the actual charges; say there is little history. +- `fee_credits`: any marketplace fee. Authorized non-marketplace recipes have no creator fee. +- `available_credits` and `balance_as_of`: the user's spendable balance at that moment. +- `estimated_credits`: a theoretical worst case (every model call retried at its maximum limits). + It is rarely approached; mention it as the upper bound, not as the expected price. `sufficient` + only says whether that worst case fits. + +A run is not refused because the worst case exceeds the balance. If credits run out during a run, +the run pauses (`blocked`, with `credit_pause` in `get_run`) and can be resumed from the StewAI web +app after adding credits. + +Every `run_recipe` call, including a dry run, requires a valid `idempotency_key`. A dry run does not consume its key. Use a fresh +key for the real run. Replaying the same consumed key and request returns the same run; changing +the request is a conflict. Do not loop after insufficient credits, exhausted authoring budget, an +inaccessible reference, or a stable permanent error. + +The client may request confirmation because `run_recipe` is destructive and open-world: a real +recipe can spend credits and may call external systems. Once approved, run exactly once. Poll `get_run` at its supplied interval. +While the run is active, `progress` shows the phase, active steps with elapsed time, and +`last_step_activity_at`; `updated_at` is only the run record's time, so do not treat an unchanged +`updated_at` as a stuck run. After terminal +status, keep polling while billing is `pending`, stopping at the documented settlement window. +Call `get_results` without a `view`, or with `view:"declared_outputs"`, only when the status is +`done` and `results_available` is `true`. Billing comes from `get_run`, never from results. If that +response is `result_unavailable` or `result_too_large`, explain that no declared output payload is +available. + +For an owned run, `get_results` with `view:"steps"` returns ordered pages of compact step +summaries (ID, title, kind, state, timing, result type), 10 per page by default and at most 20 +(`limit`). Pass `detail:"full"` for dependencies, sanitized configured parameters, optional +rendered input, and the same normalized result shape used by the SDK. Follow `next_cursor` until +it is null. While `provisional` is true the run is unfinished: unfinished steps show a pending +result, so never report a provisional snapshot as a failure. `diagnostic_notes` explain nonfatal +warnings such as `schema_urn_missing`. Use +`view:"step"` plus `step_id` for one exact step. These trace views work for running, blocked, +failed, cancelled, and completed runs, so use them to diagnose failures and to explain how a +successful workflow reached its result. `parameters` are compile-time configuration and +`rendered_input` exists only for handlers that persist it; never describe either as a universal +exact runtime-input snapshot. Respect `redaction_reasons`: sensitive inputs remain masked and +execute-only public recipes expose only their public interface. Public-open recipes and private +recipes owned by the signed-in account expose their full sanitized trace. A recipe being public +never grants access to another user's run. If a paginated request reports `step_too_large`, explain +that the one step cannot fit the bounded response and continue from its `next_cursor` when present. + +If execution returns `account_unavailable`, do not modify recipe inputs. Ask the user to reconnect +an ordinarily provisioned StewAI account or contact support. + +### When a run goes wrong + +Errors are normal. Recipes, including marketplace recipes, can fail or produce weak output, and the +user decides what to do next. Handle each case plainly: + +- **Run failed:** read the failed step with `view:"step"` and tell the user what it says. Then retry + once with the same inputs, adjust the inputs, or choose another recipe. +- **Run paused for credits** (`blocked` with `credit_pause`): tell the user. The run resumes from the + StewAI web app after credits are added. +- **`recipe_ref_expired`:** search again or preview the recipe for a new `recipe_ref`, then retry with + the same inputs. +- **`invalid_inputs`:** fix the input named in each issue `path` and try again. +- **`outputs` is empty:** the recipe declares no outputs. Read `view:"steps"`; the result is in the + last steps. +- **Output looks wrong or incomplete:** show the user what came back and let them decide. Do not + report it as a platform failure. + +## Authoring loop + +Treat tool schemas and returned guidance as authoritative; never invent recipe syntax. A useful +loop is: + +1. Declare narrow input/output contracts and a measurable acceptance suite. +2. Add the smallest graph that can satisfy them. +3. Call `check_recipe_build` after every structural change; deterministic failures cost nothing. +4. For methodology-sensitive work, record bounded external evidence with a URL, title, supported + claim, retrieval time, and applicability. Evidence informs a method; it does not override the + user's domain policy. +5. Quote, then execute semantic review only when deterministic checks pass. + A passing review can still contain advisory observations. Do not churn a working revision to + eliminate wording-level observations that are already covered by a concrete acceptance case. + Change the draft again only for a reproducible defect, an uncovered material risk, or a + specific counterexample; otherwise freeze the revision and proceed to behavioral tests. +6. Quote, then run the smallest selected set that reproduces a failure. +7. Repair the draft and repeat deterministic checks. +8. Run the complete suite once the candidate is ready. Only a green complete suite can qualify + that exact revision. + +Poll review and acceptance through `get_recipe_build_activity`. It intentionally omits provider +payloads, credentials, raw exceptions, wallet identifiers, acceptance-run traces, and partial +credit totals. Do not seek those through other tools. + +Before choosing authoring syntax, call `get_recipe_build` with `view:"capabilities"`. Its 24-entry +catalog is derived from the runtime handler registry and states which nodes are draft-authorable, +whether they can qualify through unattended acceptance, their side-effect class, and when a human +handoff is required. A draft can be structurally valid even when +`automatic_acceptance_eligible` is false; explain that distinction instead of calling it invalid. + +### Exact authoring syntax + +Do not guess mutation names or payload fields. `update_recipe_build.ops` accepts only these exact +forms: + +- `{"op":"replace_spec","spec":{...}}` +- `{"op":"set_metadata","metadata":{"name":"...","description":"..."}}` +- `{"op":"upsert_node","node":{"id":"...","type":"..."}}` +- `{"op":"remove_node","node_id":"..."}` +- `{"op":"reorder_nodes","node_ids":["..."]}` +- `{"op":"upsert_schema","schema_id":"...","schema":{...}}` +- `{"op":"remove_schema","schema_id":"..."}` +- `{"op":"set_acceptance_cases","suite":{...}}` +- `{"op":"record_research","evidence":[...]}` +- `{"op":"set_budget","budget_capability":"..."}` +- `{"op":"restore"}`, or the documented `begin_chunk`, `append_chunk`, and `commit_chunk` + forms for large payloads. + +A single-field `recipe_input` is executable text input. Match contract `maxLength` with node +`max_length`; `required:true` already enforces nonblank input. For structured LLM output, put the +complete object schema in `llm_call.response.schema`. Export the complete object with +`{{ analyze.pydantic.value | json }}`, or export a declared field with +`{{ analyze.pydantic.value.field_handle | json }}`. Here, `analyze` is the ID of the producing +node. A sibling `schema` inside a `recipe_output` +mapping is descriptive metadata and does not establish the executable contract. + +For semantic MCP result labels, create one top-level `recipe_output` node per user-facing output +field, give the node the intended user-facing `title`, and give it a one-key `mapping`. A single +`recipe_output` with several mapping keys is valid, but disclosure deliberately labels those +positions `Output 1`, `Output 2`, and so on. Mapping keys remain internal and must never be used as +run input or public result handles. + +The acceptance mutation is named `set_acceptance_cases`, not `set_acceptance_suite`. Its suite +starts with: + +```json +{ + "version": 1, + "cases": [ + { + "case_id": "normal_1", + "label": "Normal input", + "kind": "normal", + "fixtures": [ + { + "target": "input_handle", + "content_type": "text/plain", + "value": "..." + } + ], + "assertions": [ + { + "assertion_id": "result_exists", + "type": "scalar", + "operator": "exists", + "path": "/result" + } + ] + } + ] +} +``` + +Every case needs at least one assertion. Use only the assertion fields allowed by the tool schema. +Use `scalar` equality only for JSON scalar values. To prove an array is empty, use a `collection` +assertion with `operator:"count_equals"` and `expected:0`; `exists` proves only that the array is +present. A full suite rejects a normal case whose assertions prove only `exists` or `type`; every +normal case needs at least one behavioral oracle over its actual value, count, relationship, +classification, coverage, or safety property. Every decision-bearing output needs a behavioral +oracle. For paired invariance checks, prefer one material output field per `fields_unchanged` +assertion so a failure identifies the unstable field instead of collapsing several differences +into one opaque result. +Before qualification, compare the normal fixtures with the user's planned real input. Include one +case that is at least as demanding for rendered-input size and structured-output length. A green +suite built only from smaller inputs does not establish that the committed recipe can finish the +real run. When the per-case quote rejects a realistic fixture, reduce response verbosity or schema +complexity rather than weakening the fixture. +When the recipe accepts a user-supplied rubric, policy, taxonomy, score scale, weight set, or +decision threshold, test at least two materially different configurations. Derive arithmetic from +the supplied scale maximum and apply the supplied thresholds exactly; never hide a fixed +denominator or fallback policy behind a configurable-looking input. For reconciliation, state +whether identity is exact-ID or semantic cross-ID matching and include a case that distinguishes +the two. For bounded prose, set field limits large enough for a complete action or rationale and +assert a representative complete phrase so a clipped or unfinished sentence cannot qualify. +Call `check_recipe_build` without `fixtures` for the ordinary structural/compiler check. Supply +fixtures only for intentional template probes, and then provide a fixture for every referenced +dependency whose output is not produced during that free render-only pass. + +`commit_recipe_build` first issues a short-lived single-use commit capability. Use it only for the +unchanged qualified revision. A successful commit returns a private editor URL and, when current +run access permits it, a `recipe_ref`. Preview that reference before dry-run: the authoring +contract handles and recipe node IDs are not the positional `input_N` handles accepted by +`run_recipe`. Say explicitly that the recipe is private. Never claim that commit submitted, +reviewed, listed, priced, or published it in the public marketplace. + +## Approval and budget stops + +- Quote before every paid review or acceptance action. +- Explain the maximum credits and remaining authoring budget before spending. +- After a quote, follow its `next_action` exactly: redeem `budget_capability` with + `update_recipe_build` operation `set_budget`, then execute the quoted request. +- When full acceptance returns `supervised_required`, inspect every returned resource requirement + first. Call `update_recipe_build` operation `bind_resource` once for each required selector, + using the exact selector already frozen in the draft. Only then ask the user to open + `action_url` and approve. After approval, resume the same activity with `resume_activity`. +- Obtain user approval before a real recipe run when the action spends credits or can affect an + external system. +- Prefer selected failing cases while repairing; do not repeatedly pay for a complete suite. +- Do not retry when the server reports insufficient credits for a fee, a spent or expired capability, + exhausted cumulative budget, or a durable permanent error. -## Not available +## Not available in 1.1.0 <!-- BEGIN NOT-AVAILABLE --> -This plugin does not provide a recipe specification, graph, nodes, edges, step ids, internal -prompts, models, parameters, code, output schemas, execution contracts, or run traces. No tool -named `get_recipe`, `get_recipe_spec`, `list_recipes`, `export_recipe`, -`get_execution_contract`, or `get_run_steps` exists. There is no browse or list-all mode. -Search requires a real query. +The plugin does not expose recipe source, authoring acceptance-run traces, provider payloads, +credentials, raw exceptions, or unrestricted research evidence. Owned normal runs expose a +bounded sanitized step trace; this is not a source export or a universal raw runtime-input log. It +cannot publish to the marketplace, approve safety, set public pricing, or claim creator +compensation. Authoring +qualification is parameter-sensitive: deterministic nodes, short pauses, and literal or +step-backed vector search can qualify automatically; literal HTTPS ingest and the approved +read-only Brave Search integration use the conditional route. Resource-bound or effectful nodes +such as document, email, export, long pauses, subrecipes, managed agents, and other integrations +use the returned supervised handoff. Bind every required frozen selector, obtain approval through +`action_url`, then resume the same blocked activity. Unknown modes fail closed and must be repaired. +For a subrecipe, pass the `recipe_ref` returned by search or preview as `child_recipe_ref`; +StewAI resolves and pins the runnable revision without exposing internal recipe identifiers. <!-- END NOT-AVAILABLE --> @@ -87,15 +354,13 @@ <!-- BEGIN STARTER PROMPTS --> -What can StewAI help me automate? -Show me examples of StewAI workflows. -Find a live StewAI recipe for contract review. -This starts a one-time email sign-in before StewAI searches the live marketplace. +Find and compare the best accessible StewAI recipes for my task, then preview the strongest option without running it. +Run a StewAI recipe with my input, monitor it, then summarize its declared results, step trace, and settled credit charge. +Build a private StewAI recipe for a recurring task, test it, repair failures, and commit a qualified version. <!-- END STARTER PROMPTS --> -## Route related requests +## Related local skill -Use `stewai-create-recipe` when the recipe does not exist yet or needs changing. Use `stewai` when -the user explicitly asks to work through the Python SDK with an API key. A failed or unauthenticated -MCP call never authorizes that fallback. +Use `stewai` only when the user explicitly asks for the Python SDK with an API key. A failed or +unauthenticated MCP call never authorizes that fallback.
Full technical diff · 3 changed fields
changed /description
"Use the StewAI MCP plugin to discover workflow examples, search and preview live recipes after email sign-in, estimate credits, run recipes, and retrieve final declared results without managing an API key. Use when the user mentions the StewAI plugin, StewAI MCP, or wants keyless access to an existing StewAI recipe. Do not use for Python SDK or recipe-authoring work."
"Use the StewAI MCP plugin to find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a tested recipe. Do not use for the Python SDK."
changed /included_files
[
{
"relative_path": "LICENSE",
"size_in_bytes": 10776
}
][]
changed /skill_md_contents
"---\nname: stewai-mcp\ndescription: \"Use the StewAI MCP plugin to discover workflow examples, search and preview live recipes after email sign-in, estimate credits, run recipes, and retrieve final declared results without managing an API key. Use when the user mentions the StewAI plugin, StewAI MCP, or wants keyless access to an existing StewAI recipe. Do not use for Python SDK or recipe-authoring work.\"\n---\n\n# StewAI MCP\n\nUse StewAI recipes through the plugin without installing a package or managing an API key.\n\n## MCP-only routing\n\nUse only the StewAI MCP tools listed below. Never fall back to the Python SDK, an API key, a\nbrowser search, shell commands, or workspace files when an MCP tool needs authentication or is\nunavailable. Ask the user to connect or reauthenticate StewAI, then retry the same MCP tool.\n\n## Access model\n\n`discover_stewai` is anonymous and returns fixed workflow examples. Every live marketplace,\npreview, execution, status, or result request starts with a one-time email sign-in.\n\n## Tools\n\n<!-- BEGIN TOOL TABLE -->\n\n| Tool | Auth | Purpose |\n| -------------------- | ------------- | ----------------------------------------------------------------------- |\n| `discover_stewai` | none | Show fixed examples of what StewAI can automate. |\n| `search_recipes` | email sign-in | Search the live marketplace with a meaningful query. |\n| `get_recipe_preview` | email sign-in | Preview safe labels, synthetic inputs, outputs, and historical pricing. |\n| `run_recipe` | email sign-in | Estimate credits or run a previewed recipe idempotently. |\n| `get_run` | email sign-in | Read caller-owned status and terminal billing settlement. |\n| `get_results` | email sign-in | Read available final author-declared outputs for a completed owned run. |\n\n<!-- END TOOL TABLE -->\n\n## Recipe references and inputs\n\n`search_recipes` returns an opaque `recipe_ref`. Pass that reference to `get_recipe_preview`. The\npreview returns a refreshed `recipe_ref`; pass that preview-issued reference to `run_recipe`. A\nreference is bound to the signed-in account and expires after one hour. Search again when a\nreference is stale. Never replace it with a recipe ID.\n\nThe preview names accepted inputs as `input_1`, `input_2`, and so on. Send only those synthetic\nhandles to `run_recipe`.\n\n## Estimate, execute, and read\n\nSearch and preview return a `pricing` object based only on the recipe's historical average across\nsuccessful runs. Its `credit_band` is context, not an input-aware estimate or affordability\ncheck. Always call `run_recipe` with `dry_run: true` before recommending or starting execution.\n\nEvery `run_recipe` call, including a dry run, requires a valid `idempotency_key`. Call it with\n`dry_run: true` to receive `estimated_credits`, `available_credits`, and `sufficient` without\nexecuting or consuming that key. For a real run, provide a fresh key. Reusing a consumed key with\nthe same request returns the same run. Reusing it with changed inputs is a conflict.\n\nIf `run_recipe` returns `account_unavailable`, the signed-in identity does not have a runnable\nStewAI workspace. Do not change or retry the recipe inputs. Ask the user to reconnect with an\nordinarily provisioned Free account or contact StewAI support for account repair.\n\nThe client may ask the user to confirm a real run because `run_recipe` is marked destructive and\nopen-world. Use `get_run` to check status. After the run is terminal, continue polling `get_run` at\nits supplied interval while `billing.state` is `pending`, stopping after the 300-second settlement\nwindow. A settled response reports the authoritative run-tree charge; tokens allowed to run also\nreceive the account's current available balance and its timestamp. Do not interpret that balance\nas this run's isolated before/after effect. If billing becomes `unavailable`, explain that the\ncharge could not be verified through the connector.\n\nCall `get_results` only when the status is `done` and `results_available` is `true`. A successful\nresult contains only the final author-declared outputs as `{label, value}` entries. Billing never\ncomes from `get_results`. If the response is `result_unavailable` or `result_too_large`, explain\nthat no declared result payload is available; do not look for internal run data instead.\n\n## Not available\n\n<!-- BEGIN NOT-AVAILABLE -->\n\nThis plugin does not provide a recipe specification, graph, nodes, edges, step ids, internal\nprompts, models, parameters, code, output schemas, execution contracts, or run traces. No tool\nnamed `get_recipe`, `get_recipe_spec`, `list_recipes`, `export_recipe`,\n`get_execution_contract`, or `get_run_steps` exists. There is no browse or list-all mode.\nSearch requires a real query.\n\n<!-- END NOT-AVAILABLE -->\n\n## Starter prompts\n\n<!-- BEGIN STARTER PROMPTS -->\n\nWhat can StewAI help me automate?\nShow me examples of StewAI workflows.\nFind a live StewAI recipe for contract review.\nThis starts a one-time email sign-in before StewAI searches the live marketplace.\n\n<!-- END STARTER PROMPTS -->\n\n## Route related requests\n\nUse `stewai-create-recipe` when the recipe does not exist yet or needs changing. Use `stewai` when\nthe user explicitly asks to work through the Python SDK with an API key. A failed or unauthenticated\nMCP call never authorizes that fallback.\n""---\nname: stewai-mcp\ndescription: \"Use the StewAI MCP plugin to find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a tested recipe. Do not use for the Python SDK.\"\n---\n\n# StewAI MCP\n\nUse StewAI as one capability system: reuse a suitable published recipe when possible; otherwise\nbuild, qualify, and privately run a new one. Do not ask the user to choose between marketplace and\nauthoring workflows.\n\n## MCP-only routing\n\nUse only the StewAI MCP tools listed here. Never fall back to the Python SDK, an API key, browser\nsearch, shell commands, or workspace files when an MCP tool needs authentication or is\nunavailable. Ask the user to connect or reauthenticate StewAI, then retry the same MCP tool.\n\n`discover_stewai` is anonymous. Every live search, preview, run, result, or authoring operation\nuses the signed-in StewAI account and its current organization. New 1.1.0 scopes may require the\nuser to reconnect an older installation.\n\n## Required workflow\n\n1. Call `discover_stewai` once in a fresh connection, then call `search_recipes` with a meaningful\n problem statement and, when known, required input and output labels. Synthetic handles remain\n accepted for compatibility, but normally use semantic labels such as `Contract text` and\n `Risk note`.\n2. When more than one result plausibly fits, preview and compare at least the top two. Compare\n contract fit (`output_contract_state`), qualification and `evidence_note`, past-run cost\n `history`, duration, and current access. `results` are direct fits; `related_results` are\n adjacent recipes, so say so rather than presenting one as the requested task. Do not invent an\n overall quality score.\n3. If a candidate is sufficient, call `run_recipe` with `dry_run: true`. Tell the user what past\n runs of the recipe cost (`history`), any fee, and their balance, and obtain the user's approval\n before a real run when execution could spend credits or affect an external system. The user\n decides; the balance does not have to cover the theoretical worst case. Then run once, poll `get_run`, read declared outputs with `get_results`, and\n inspect its paginated `steps` view when the user needs an explanation, the run fails, or the\n workflow is being dogfooded.\n4. If no candidate is sufficient, call `get_recipe_build` without `build_ref` to check recent\n owned builds before starting another one.\n5. Start or continue one build. Apply the smallest useful draft change, run deterministic checks,\n and repair concrete failures before any paid review.\n6. Quote every paid review or acceptance action before executing it. Use bounded research only\n when the risk or research policy warrants it and when evidence can change the method or a\n safety control.\n7. Run selected failing cases during repair. Run the complete acceptance suite only when the\n revision is ready to qualify. Any draft, contract, evidence, suite, or policy change creates a\n new revision and invalidates earlier qualification.\n At least one normal case must match or exceed the intended production input's size, variety,\n and likely output cardinality. Never shrink the only representative fixture merely to fit the\n per-case quote ceiling; simplify the prompt, schema, graph, or output cardinality instead.\n8. Preflight and commit only the exact revision with a green complete acceptance suite, required\n review or research evidence, and settled billing.\n9. The commit is private, unlisted, and unreviewed. Pass its `recipe_ref` to\n `get_recipe_preview` first, use only the preview's positional `input_N` handles and refreshed\n reference, then dry-run that exact private revision. Obtain any required approval and run one\n representative real-world probe before calling the recipe stable. Read every declared output,\n not just terminal status. Because V1 cannot revise a committed build, a reproducible defect in\n that probe requires a corrected replacement build; never describe the flawed revision as\n qualified in practice merely because its acceptance batch was green.\n\nSkip the initial search only when the user supplies an explicit `build_ref` to continue or repair.\nEven then, inspect the current build before changing it.\n\nWhen resuming a build in a fresh agent context, request its `activity` view. Each recent row\ncontains a fresh `activity_ref`, the exact revision, state, and any stable terminal error code;\ncontinue polling that reference instead of starting and paying for a duplicate activity.\n\n## Tools\n\n<!-- BEGIN TOOL TABLE -->\n\n| Tool | Purpose |\n| --------------------------- | -------------------------------------------------------------------------- |\n| `discover_stewai` | Learn connection rules and the exact consumer and authoring journeys. |\n| `search_recipes` | Search public and currently authorized published recipes. |\n| `get_recipe_preview` | Compare safe contracts, access, evidence, duration, and pricing. |\n| `run_recipe` | Estimate or idempotently run a previewed public or authorized recipe. |\n| `get_run` | Read owned-run status and authoritative terminal billing. |\n| `get_results` | Read declared outputs or a sanitized, paginated owned-run step trace. |\n| `start_recipe_build` | Create one owned private draft from an intent and declared contracts. |\n| `get_recipe_build` | List recent builds or inspect one bounded build view. |\n| `update_recipe_build` | Change a draft, contracts, acceptance suite, research evidence, or chunks. |\n| `check_recipe_build` | Run free deterministic lint, render, policy, graph, and compiler checks. |\n| `review_recipe_build` | Quote or run bounded semantic review and permitted research. |\n| `run_recipe_acceptance` | Quote or run selected or complete behavioral cases. |\n| `get_recipe_build_activity` | Poll review or aggregate acceptance evidence and settled billing. |\n| `commit_recipe_build` | Preflight and privately publish only the exact qualified revision. |\n\n<!-- END TOOL TABLE -->\n\n## Search, preview, and references\n\nSearch results may come from `public`, `owned`, `organization`, or `shared` sources. Source is not\nproof of quality or permission. The server rechecks current user, tenant, revision, contract,\nownership, and sharing grants before every preview or run.\nThe public lane contains only listed recipes whose safety approval is pinned to their exact current\npublished revision. It is the currently approved, runnable public catalog, not every row that may\nhave been visible in historical Marketplace data.\n\nWhen `match_status` is `no_suitable_match`, do not invent or recommend a weak result. Follow its\n`next_action`: list recent private builds, continue a suitable one if present, otherwise offer to\nstart a new build. `authorization_required` means a requested search lane was not searched; it is\nnot evidence that no recipe exists.\n\n`search_recipes` returns an opaque `recipe_ref`. Pass it to `get_recipe_preview`. The preview\nreturns a refreshed `recipe_ref`; pass that preview-issued reference to `run_recipe`. References are account- and tenant-bound and\nexpire. Search again after expiry, tenant switching, access changes, or revision changes. Never\nreplace a reference with a recipe ID.\n\nPreview input handles are the only accepted run input keys. Send exactly those handles and values\nthat satisfy the declared schemas. Preview states whether each input must be supplied, whether a\ndefault exists, and the applicable character and UTF-8 byte limits. When dry-run or execution\nreports `invalid_inputs`, repair every issue by its `path`, `code`, `hint`, and `limit`; the\nresponse never echoes submitted values or hidden defaults. Do not ask for recipe source,\nauthoring fixtures, credentials,\nor provider payloads. When the user owns the run, use only the bounded sanitized trace returned by\n`get_results`; do not infer access to another user's run from recipe visibility.\n\n## Estimate, execute, and read\n\nAlways call `run_recipe` with `dry_run: true` before recommending or starting execution. Report\nthe facts plainly and let the user decide:\n\n- `history`: credits charged by past successful runs of this recipe's current version (average,\n median, p90, run counts, last run). With fewer than three runs the statistics are null and\n `recent_charges` lists the actual charges; say there is little history.\n- `fee_credits`: any marketplace fee. Authorized non-marketplace recipes have no creator fee.\n- `available_credits` and `balance_as_of`: the user's spendable balance at that moment.\n- `estimated_credits`: a theoretical worst case (every model call retried at its maximum limits).\n It is rarely approached; mention it as the upper bound, not as the expected price. `sufficient`\n only says whether that worst case fits.\n\nA run is not refused because the worst case exceeds the balance. If credits run out during a run,\nthe run pauses (`blocked`, with `credit_pause` in `get_run`) and can be resumed from the StewAI web\napp after adding credits.\n\nEvery `run_recipe` call, including a dry run, requires a valid `idempotency_key`. A dry run does not consume its key. Use a fresh\nkey for the real run. Replaying the same consumed key and request returns the same run; changing\nthe request is a conflict. Do not loop after insufficient credits, exhausted authoring budget, an\ninaccessible reference, or a stable permanent error.\n\nThe client may request confirmation because `run_recipe` is destructive and open-world: a real\nrecipe can spend credits and may call external systems. Once approved, run exactly once. Poll `get_run` at its supplied interval.\nWhile the run is active, `progress` shows the phase, active steps with elapsed time, and\n`last_step_activity_at`; `updated_at` is only the run record's time, so do not treat an unchanged\n`updated_at` as a stuck run. After terminal\nstatus, keep polling while billing is `pending`, stopping at the documented settlement window.\nCall `get_results` without a `view`, or with `view:\"declared_outputs\"`, only when the status is\n`done` and `results_available` is `true`. Billing comes from `get_run`, never from results. If that\nresponse is `result_unavailable` or `result_too_large`, explain that no declared output payload is\navailable.\n\nFor an owned run, `get_results` with `view:\"steps\"` returns ordered pages of compact step\nsummaries (ID, title, kind, state, timing, result type), 10 per page by default and at most 20\n(`limit`). Pass `detail:\"full\"` for dependencies, sanitized configured parameters, optional\nrendered input, and the same normalized result shape used by the SDK. Follow `next_cursor` until\nit is null. While `provisional` is true the run is unfinished: unfinished steps show a pending\nresult, so never report a provisional snapshot as a failure. `diagnostic_notes` explain nonfatal\nwarnings such as `schema_urn_missing`. Use\n`view:\"step\"` plus `step_id` for one exact step. These trace views work for running, blocked,\nfailed, cancelled, and completed runs, so use them to diagnose failures and to explain how a\nsuccessful workflow reached its result. `parameters` are compile-time configuration and\n`rendered_input` exists only for handlers that persist it; never describe either as a universal\nexact runtime-input snapshot. Respect `redaction_reasons`: sensitive inputs remain masked and\nexecute-only public recipes expose only their public interface. Public-open recipes and private\nrecipes owned by the signed-in account expose their full sanitized trace. A recipe being public\nnever grants access to another user's run. If a paginated request reports `step_too_large`, explain\nthat the one step cannot fit the bounded response and continue from its `next_cursor` when present.\n\nIf execution returns `account_unavailable`, do not modify recipe inputs. Ask the user to reconnect\nan ordinarily provisioned StewAI account or contact support.\n\n### When a run goes wrong\n\nErrors are normal. Recipes, including marketplace recipes, can fail or produce weak output, and the\nuser decides what to do next. Handle each case plainly:\n\n- **Run failed:** read the failed step with `view:\"step\"` and tell the user what it says. Then retry\n once with the same inputs, adjust the inputs, or choose another recipe.\n- **Run paused for credits** (`blocked` with `credit_pause`): tell the user. The run resumes from the\n StewAI web app after credits are added.\n- **`recipe_ref_expired`:** search again or preview the recipe for a new `recipe_ref`, then retry with\n the same inputs.\n- **`invalid_inputs`:** fix the input named in each issue `path` and try again.\n- **`outputs` is empty:** the recipe declares no outputs. Read `view:\"steps\"`; the result is in the\n last steps.\n- **Output looks wrong or incomplete:** show the user what came back and let them decide. Do not\n report it as a platform failure.\n\n## Authoring loop\n\nTreat tool schemas and returned guidance as authoritative; never invent recipe syntax. A useful\nloop is:\n\n1. Declare narrow input/output contracts and a measurable acceptance suite.\n2. Add the smallest graph that can satisfy them.\n3. Call `check_recipe_build` after every structural change; deterministic failures cost nothing.\n4. For methodology-sensitive work, record bounded external evidence with a URL, title, supported\n claim, retrieval time, and applicability. Evidence informs a method; it does not override the\n user's domain policy.\n5. Quote, then execute semantic review only when deterministic checks pass.\n A passing review can still contain advisory observations. Do not churn a working revision to\n eliminate wording-level observations that are already covered by a concrete acceptance case.\n Change the draft again only for a reproducible defect, an uncovered material risk, or a\n specific counterexample; otherwise freeze the revision and proceed to behavioral tests.\n6. Quote, then run the smallest selected set that reproduces a failure.\n7. Repair the draft and repeat deterministic checks.\n8. Run the complete suite once the candidate is ready. Only a green complete suite can qualify\n that exact revision.\n\nPoll review and acceptance through `get_recipe_build_activity`. It intentionally omits provider\npayloads, credentials, raw exceptions, wallet identifiers, acceptance-run traces, and partial\ncredit totals. Do not seek those through other tools.\n\nBefore choosing authoring syntax, call `get_recipe_build` with `view:\"capabilities\"`. Its 24-entry\ncatalog is derived from the runtime handler registry and states which nodes are draft-authorable,\nwhether they can qualify through unattended acceptance, their side-effect class, and when a human\nhandoff is required. A draft can be structurally valid even when\n`automatic_acceptance_eligible` is false; explain that distinction instead of calling it invalid.\n\n### Exact authoring syntax\n\nDo not guess mutation names or payload fields. `update_recipe_build.ops` accepts only these exact\nforms:\n\n- `{\"op\":\"replace_spec\",\"spec\":{...}}`\n- `{\"op\":\"set_metadata\",\"metadata\":{\"name\":\"...\",\"description\":\"...\"}}`\n- `{\"op\":\"upsert_node\",\"node\":{\"id\":\"...\",\"type\":\"...\"}}`\n- `{\"op\":\"remove_node\",\"node_id\":\"...\"}`\n- `{\"op\":\"reorder_nodes\",\"node_ids\":[\"...\"]}`\n- `{\"op\":\"upsert_schema\",\"schema_id\":\"...\",\"schema\":{...}}`\n- `{\"op\":\"remove_schema\",\"schema_id\":\"...\"}`\n- `{\"op\":\"set_acceptance_cases\",\"suite\":{...}}`\n- `{\"op\":\"record_research\",\"evidence\":[...]}`\n- `{\"op\":\"set_budget\",\"budget_capability\":\"...\"}`\n- `{\"op\":\"restore\"}`, or the documented `begin_chunk`, `append_chunk`, and `commit_chunk`\n forms for large payloads.\n\nA single-field `recipe_input` is executable text input. Match contract `maxLength` with node\n`max_length`; `required:true` already enforces nonblank input. For structured LLM output, put the\ncomplete object schema in `llm_call.response.schema`. Export the complete object with\n`{{ analyze.pydantic.value | json }}`, or export a declared field with\n`{{ analyze.pydantic.value.field_handle | json }}`. Here, `analyze` is the ID of the producing\nnode. A sibling `schema` inside a `recipe_output`\nmapping is descriptive metadata and does not establish the executable contract.\n\nFor semantic MCP result labels, create one top-level `recipe_output` node per user-facing output\nfield, give the node the intended user-facing `title`, and give it a one-key `mapping`. A single\n`recipe_output` with several mapping keys is valid, but disclosure deliberately labels those\npositions `Output 1`, `Output 2`, and so on. Mapping keys remain internal and must never be used as\nrun input or public result handles.\n\nThe acceptance mutation is named `set_acceptance_cases`, not `set_acceptance_suite`. Its suite\nstarts with:\n\n```json\n{\n \"version\": 1,\n \"cases\": [\n {\n \"case_id\": \"normal_1\",\n \"label\": \"Normal input\",\n \"kind\": \"normal\",\n \"fixtures\": [\n {\n \"target\": \"input_handle\",\n \"content_type\": \"text/plain\",\n \"value\": \"...\"\n }\n ],\n \"assertions\": [\n {\n \"assertion_id\": \"result_exists\",\n \"type\": \"scalar\",\n \"operator\": \"exists\",\n \"path\": \"/result\"\n }\n ]\n }\n ]\n}\n```\n\nEvery case needs at least one assertion. Use only the assertion fields allowed by the tool schema.\nUse `scalar` equality only for JSON scalar values. To prove an array is empty, use a `collection`\nassertion with `operator:\"count_equals\"` and `expected:0`; `exists` proves only that the array is\npresent. A full suite rejects a normal case whose assertions prove only `exists` or `type`; every\nnormal case needs at least one behavioral oracle over its actual value, count, relationship,\nclassification, coverage, or safety property. Every decision-bearing output needs a behavioral\noracle. For paired invariance checks, prefer one material output field per `fields_unchanged`\nassertion so a failure identifies the unstable field instead of collapsing several differences\ninto one opaque result.\nBefore qualification, compare the normal fixtures with the user's planned real input. Include one\ncase that is at least as demanding for rendered-input size and structured-output length. A green\nsuite built only from smaller inputs does not establish that the committed recipe can finish the\nreal run. When the per-case quote rejects a realistic fixture, reduce response verbosity or schema\ncomplexity rather than weakening the fixture.\nWhen the recipe accepts a user-supplied rubric, policy, taxonomy, score scale, weight set, or\ndecision threshold, test at least two materially different configurations. Derive arithmetic from\nthe supplied scale maximum and apply the supplied thresholds exactly; never hide a fixed\ndenominator or fallback policy behind a configurable-looking input. For reconciliation, state\nwhether identity is exact-ID or semantic cross-ID matching and include a case that distinguishes\nthe two. For bounded prose, set field limits large enough for a complete action or rationale and\nassert a representative complete phrase so a clipped or unfinished sentence cannot qualify.\nCall `check_recipe_build` without `fixtures` for the ordinary structural/compiler check. Supply\nfixtures only for intentional template probes, and then provide a fixture for every referenced\ndependency whose output is not produced during that free render-only pass.\n\n`commit_recipe_build` first issues a short-lived single-use commit capability. Use it only for the\nunchanged qualified revision. A successful commit returns a private editor URL and, when current\nrun access permits it, a `recipe_ref`. Preview that reference before dry-run: the authoring\ncontract handles and recipe node IDs are not the positional `input_N` handles accepted by\n`run_recipe`. Say explicitly that the recipe is private. Never claim that commit submitted,\nreviewed, listed, priced, or published it in the public marketplace.\n\n## Approval and budget stops\n\n- Quote before every paid review or acceptance action.\n- Explain the maximum credits and remaining authoring budget before spending.\n- After a quote, follow its `next_action` exactly: redeem `budget_capability` with\n `update_recipe_build` operation `set_budget`, then execute the quoted request.\n- When full acceptance returns `supervised_required`, inspect every returned resource requirement\n first. Call `update_recipe_build` operation `bind_resource` once for each required selector,\n using the exact selector already frozen in the draft. Only then ask the user to open\n `action_url` and approve. After approval, resume the same activity with `resume_activity`.\n- Obtain user approval before a real recipe run when the action spends credits or can affect an\n external system.\n- Prefer selected failing cases while repairing; do not repeatedly pay for a complete suite.\n- Do not retry when the server reports insufficient credits for a fee, a spent or expired capability,\n exhausted cumulative budget, or a durable permanent error.\n\n## Not available in 1.1.0\n\n<!-- BEGIN NOT-AVAILABLE -->\n\nThe plugin does not expose recipe source, authoring acceptance-run traces, provider payloads,\ncredentials, raw exceptions, or unrestricted research evidence. Owned normal runs expose a\nbounded sanitized step trace; this is not a source export or a universal raw runtime-input log. It\ncannot publish to the marketplace, approve safety, set public pricing, or claim creator\ncompensation. Authoring\nqualification is parameter-sensitive: deterministic nodes, short pauses, and literal or\nstep-backed vector search can qualify automatically; literal HTTPS ingest and the approved\nread-only Brave Search integration use the conditional route. Resource-bound or effectful nodes\nsuch as document, email, export, long pauses, subrecipes, managed agents, and other integrations\nuse the returned supervised handoff. Bind every required frozen selector, obtain approval through\n`action_url`, then resume the same blocked activity. Unknown modes fail closed and must be repaired.\nFor a subrecipe, pass the `recipe_ref` returned by search or preview as `child_recipe_ref`;\nStewAI resolves and pins the runnable revision without exposing internal recipe identifiers.\n\n<!-- END NOT-AVAILABLE -->\n\n## Starter prompts\n\n<!-- BEGIN STARTER PROMPTS -->\n\nFind and compare the best accessible StewAI recipes for my task, then preview the strongest option without running it.\nRun a StewAI recipe with my input, monitor it, then summarize its declared results, step trace, and settled credit charge.\nBuild a private StewAI recipe for a recurring task, test it, repair failures, and commit a qualified version.\n\n<!-- END STARTER PROMPTS -->\n\n## Related local skill\n\nUse `stewai` only when the user explicitly asks for the Python SDK with an API key. A failed or\nunauthenticated MCP call never authorizes that fallback.\n"Full snapshot data
{
"description": "Use the StewAI MCP plugin to find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a tested recipe. Do not use for the Python SDK.",
"included_files": [],
"name": "stewai-mcp",
"skill_md_contents": "---\nname: stewai-mcp\ndescription: \"Use the StewAI MCP plugin to find, compare, run, create, test, repair, and privately reuse StewAI recipes after email sign-in, without managing an API key. Use when the user mentions StewAI, reusable AI workflows, or wants an agent to turn a recurring problem into a tested recipe. Do not use for the Python SDK.\"\n---\n\n# StewAI MCP\n\nUse StewAI as one capability system: reuse a suitable published recipe when possible; otherwise\nbuild, qualify, and privately run a new one. Do not ask the user to choose between marketplace and\nauthoring workflows.\n\n## MCP-only routing\n\nUse only the StewAI MCP tools listed here. Never fall back to the Python SDK, an API key, browser\nsearch, shell commands, or workspace files when an MCP tool needs authentication or is\nunavailable. Ask the user to connect or reauthenticate StewAI, then retry the same MCP tool.\n\n`discover_stewai` is anonymous. Every live search, preview, run, result, or authoring operation\nuses the signed-in StewAI account and its current organization. New 1.1.0 scopes may require the\nuser to reconnect an older installation.\n\n## Required workflow\n\n1. Call `discover_stewai` once in a fresh connection, then call `search_recipes` with a meaningful\n problem statement and, when known, required input and output labels. Synthetic handles remain\n accepted for compatibility, but normally use semantic labels such as `Contract text` and\n `Risk note`.\n2. When more than one result plausibly fits, preview and compare at least the top two. Compare\n contract fit (`output_contract_state`), qualification and `evidence_note`, past-run cost\n `history`, duration, and current access. `results` are direct fits; `related_results` are\n adjacent recipes, so say so rather than presenting one as the requested task. Do not invent an\n overall quality score.\n3. If a candidate is sufficient, call `run_recipe` with `dry_run: true`. Tell the user what past\n runs of the recipe cost (`history`), any fee, and their balance, and obtain the user's approval\n before a real run when execution could spend credits or affect an external system. The user\n decides; the balance does not have to cover the theoretical worst case. Then run once, poll `get_run`, read declared outputs with `get_results`, and\n inspect its paginated `steps` view when the user needs an explanation, the run fails, or the\n workflow is being dogfooded.\n4. If no candidate is sufficient, call `get_recipe_build` without `build_ref` to check recent\n owned builds before starting another one.\n5. Start or continue one build. Apply the smallest useful draft change, run deterministic checks,\n and repair concrete failures before any paid review.\n6. Quote every paid review or acceptance action before executing it. Use bounded research only\n when the risk or research policy warrants it and when evidence can change the method or a\n safety control.\n7. Run selected failing cases during repair. Run the complete acceptance suite only when the\n revision is ready to qualify. Any draft, contract, evidence, suite, or policy change creates a\n new revision and invalidates earlier qualification.\n At least one normal case must match or exceed the intended production input's size, variety,\n and likely output cardinality. Never shrink the only representative fixture merely to fit the\n per-case quote ceiling; simplify the prompt, schema, graph, or output cardinality instead.\n8. Preflight and commit only the exact revision with a green complete acceptance suite, required\n review or research evidence, and settled billing.\n9. The commit is private, unlisted, and unreviewed. Pass its `recipe_ref` to\n `get_recipe_preview` first, use only the preview's positional `input_N` handles and refreshed\n reference, then dry-run that exact private revision. Obtain any required approval and run one\n representative real-world probe before calling the recipe stable. Read every declared output,\n not just terminal status. Because V1 cannot revise a committed build, a reproducible defect in\n that probe requires a corrected replacement build; never describe the flawed revision as\n qualified in practice merely because its acceptance batch was green.\n\nSkip the initial search only when the user supplies an explicit `build_ref` to continue or repair.\nEven then, inspect the current build before changing it.\n\nWhen resuming a build in a fresh agent context, request its `activity` view. Each recent row\ncontains a fresh `activity_ref`, the exact revision, state, and any stable terminal error code;\ncontinue polling that reference instead of starting and paying for a duplicate activity.\n\n## Tools\n\n<!-- BEGIN TOOL TABLE -->\n\n| Tool | Purpose |\n| --------------------------- | -------------------------------------------------------------------------- |\n| `discover_stewai` | Learn connection rules and the exact consumer and authoring journeys. |\n| `search_recipes` | Search public and currently authorized published recipes. |\n| `get_recipe_preview` | Compare safe contracts, access, evidence, duration, and pricing. |\n| `run_recipe` | Estimate or idempotently run a previewed public or authorized recipe. |\n| `get_run` | Read owned-run status and authoritative terminal billing. |\n| `get_results` | Read declared outputs or a sanitized, paginated owned-run step trace. |\n| `start_recipe_build` | Create one owned private draft from an intent and declared contracts. |\n| `get_recipe_build` | List recent builds or inspect one bounded build view. |\n| `update_recipe_build` | Change a draft, contracts, acceptance suite, research evidence, or chunks. |\n| `check_recipe_build` | Run free deterministic lint, render, policy, graph, and compiler checks. |\n| `review_recipe_build` | Quote or run bounded semantic review and permitted research. |\n| `run_recipe_acceptance` | Quote or run selected or complete behavioral cases. |\n| `get_recipe_build_activity` | Poll review or aggregate acceptance evidence and settled billing. |\n| `commit_recipe_build` | Preflight and privately publish only the exact qualified revision. |\n\n<!-- END TOOL TABLE -->\n\n## Search, preview, and references\n\nSearch results may come from `public`, `owned`, `organization`, or `shared` sources. Source is not\nproof of quality or permission. The server rechecks current user, tenant, revision, contract,\nownership, and sharing grants before every preview or run.\nThe public lane contains only listed recipes whose safety approval is pinned to their exact current\npublished revision. It is the currently approved, runnable public catalog, not every row that may\nhave been visible in historical Marketplace data.\n\nWhen `match_status` is `no_suitable_match`, do not invent or recommend a weak result. Follow its\n`next_action`: list recent private builds, continue a suitable one if present, otherwise offer to\nstart a new build. `authorization_required` means a requested search lane was not searched; it is\nnot evidence that no recipe exists.\n\n`search_recipes` returns an opaque `recipe_ref`. Pass it to `get_recipe_preview`. The preview\nreturns a refreshed `recipe_ref`; pass that preview-issued reference to `run_recipe`. References are account- and tenant-bound and\nexpire. Search again after expiry, tenant switching, access changes, or revision changes. Never\nreplace a reference with a recipe ID.\n\nPreview input handles are the only accepted run input keys. Send exactly those handles and values\nthat satisfy the declared schemas. Preview states whether each input must be supplied, whether a\ndefault exists, and the applicable character and UTF-8 byte limits. When dry-run or execution\nreports `invalid_inputs`, repair every issue by its `path`, `code`, `hint`, and `limit`; the\nresponse never echoes submitted values or hidden defaults. Do not ask for recipe source,\nauthoring fixtures, credentials,\nor provider payloads. When the user owns the run, use only the bounded sanitized trace returned by\n`get_results`; do not infer access to another user's run from recipe visibility.\n\n## Estimate, execute, and read\n\nAlways call `run_recipe` with `dry_run: true` before recommending or starting execution. Report\nthe facts plainly and let the user decide:\n\n- `history`: credits charged by past successful runs of this recipe's current version (average,\n median, p90, run counts, last run). With fewer than three runs the statistics are null and\n `recent_charges` lists the actual charges; say there is little history.\n- `fee_credits`: any marketplace fee. Authorized non-marketplace recipes have no creator fee.\n- `available_credits` and `balance_as_of`: the user's spendable balance at that moment.\n- `estimated_credits`: a theoretical worst case (every model call retried at its maximum limits).\n It is rarely approached; mention it as the upper bound, not as the expected price. `sufficient`\n only says whether that worst case fits.\n\nA run is not refused because the worst case exceeds the balance. If credits run out during a run,\nthe run pauses (`blocked`, with `credit_pause` in `get_run`) and can be resumed from the StewAI web\napp after adding credits.\n\nEvery `run_recipe` call, including a dry run, requires a valid `idempotency_key`. A dry run does not consume its key. Use a fresh\nkey for the real run. Replaying the same consumed key and request returns the same run; changing\nthe request is a conflict. Do not loop after insufficient credits, exhausted authoring budget, an\ninaccessible reference, or a stable permanent error.\n\nThe client may request confirmation because `run_recipe` is destructive and open-world: a real\nrecipe can spend credits and may call external systems. Once approved, run exactly once. Poll `get_run` at its supplied interval.\nWhile the run is active, `progress` shows the phase, active steps with elapsed time, and\n`last_step_activity_at`; `updated_at` is only the run record's time, so do not treat an unchanged\n`updated_at` as a stuck run. After terminal\nstatus, keep polling while billing is `pending`, stopping at the documented settlement window.\nCall `get_results` without a `view`, or with `view:\"declared_outputs\"`, only when the status is\n`done` and `results_available` is `true`. Billing comes from `get_run`, never from results. If that\nresponse is `result_unavailable` or `result_too_large`, explain that no declared output payload is\navailable.\n\nFor an owned run, `get_results` with `view:\"steps\"` returns ordered pages of compact step\nsummaries (ID, title, kind, state, timing, result type), 10 per page by default and at most 20\n(`limit`). Pass `detail:\"full\"` for dependencies, sanitized configured parameters, optional\nrendered input, and the same normalized result shape used by the SDK. Follow `next_cursor` until\nit is null. While `provisional` is true the run is unfinished: unfinished steps show a pending\nresult, so never report a provisional snapshot as a failure. `diagnostic_notes` explain nonfatal\nwarnings such as `schema_urn_missing`. Use\n`view:\"step\"` plus `step_id` for one exact step. These trace views work for running, blocked,\nfailed, cancelled, and completed runs, so use them to diagnose failures and to explain how a\nsuccessful workflow reached its result. `parameters` are compile-time configuration and\n`rendered_input` exists only for handlers that persist it; never describe either as a universal\nexact runtime-input snapshot. Respect `redaction_reasons`: sensitive inputs remain masked and\nexecute-only public recipes expose only their public interface. Public-open recipes and private\nrecipes owned by the signed-in account expose their full sanitized trace. A recipe being public\nnever grants access to another user's run. If a paginated request reports `step_too_large`, explain\nthat the one step cannot fit the bounded response and continue from its `next_cursor` when present.\n\nIf execution returns `account_unavailable`, do not modify recipe inputs. Ask the user to reconnect\nan ordinarily provisioned StewAI account or contact support.\n\n### When a run goes wrong\n\nErrors are normal. Recipes, including marketplace recipes, can fail or produce weak output, and the\nuser decides what to do next. Handle each case plainly:\n\n- **Run failed:** read the failed step with `view:\"step\"` and tell the user what it says. Then retry\n once with the same inputs, adjust the inputs, or choose another recipe.\n- **Run paused for credits** (`blocked` with `credit_pause`): tell the user. The run resumes from the\n StewAI web app after credits are added.\n- **`recipe_ref_expired`:** search again or preview the recipe for a new `recipe_ref`, then retry with\n the same inputs.\n- **`invalid_inputs`:** fix the input named in each issue `path` and try again.\n- **`outputs` is empty:** the recipe declares no outputs. Read `view:\"steps\"`; the result is in the\n last steps.\n- **Output looks wrong or incomplete:** show the user what came back and let them decide. Do not\n report it as a platform failure.\n\n## Authoring loop\n\nTreat tool schemas and returned guidance as authoritative; never invent recipe syntax. A useful\nloop is:\n\n1. Declare narrow input/output contracts and a measurable acceptance suite.\n2. Add the smallest graph that can satisfy them.\n3. Call `check_recipe_build` after every structural change; deterministic failures cost nothing.\n4. For methodology-sensitive work, record bounded external evidence with a URL, title, supported\n claim, retrieval time, and applicability. Evidence informs a method; it does not override the\n user's domain policy.\n5. Quote, then execute semantic review only when deterministic checks pass.\n A passing review can still contain advisory observations. Do not churn a working revision to\n eliminate wording-level observations that are already covered by a concrete acceptance case.\n Change the draft again only for a reproducible defect, an uncovered material risk, or a\n specific counterexample; otherwise freeze the revision and proceed to behavioral tests.\n6. Quote, then run the smallest selected set that reproduces a failure.\n7. Repair the draft and repeat deterministic checks.\n8. Run the complete suite once the candidate is ready. Only a green complete suite can qualify\n that exact revision.\n\nPoll review and acceptance through `get_recipe_build_activity`. It intentionally omits provider\npayloads, credentials, raw exceptions, wallet identifiers, acceptance-run traces, and partial\ncredit totals. Do not seek those through other tools.\n\nBefore choosing authoring syntax, call `get_recipe_build` with `view:\"capabilities\"`. Its 24-entry\ncatalog is derived from the runtime handler registry and states which nodes are draft-authorable,\nwhether they can qualify through unattended acceptance, their side-effect class, and when a human\nhandoff is required. A draft can be structurally valid even when\n`automatic_acceptance_eligible` is false; explain that distinction instead of calling it invalid.\n\n### Exact authoring syntax\n\nDo not guess mutation names or payload fields. `update_recipe_build.ops` accepts only these exact\nforms:\n\n- `{\"op\":\"replace_spec\",\"spec\":{...}}`\n- `{\"op\":\"set_metadata\",\"metadata\":{\"name\":\"...\",\"description\":\"...\"}}`\n- `{\"op\":\"upsert_node\",\"node\":{\"id\":\"...\",\"type\":\"...\"}}`\n- `{\"op\":\"remove_node\",\"node_id\":\"...\"}`\n- `{\"op\":\"reorder_nodes\",\"node_ids\":[\"...\"]}`\n- `{\"op\":\"upsert_schema\",\"schema_id\":\"...\",\"schema\":{...}}`\n- `{\"op\":\"remove_schema\",\"schema_id\":\"...\"}`\n- `{\"op\":\"set_acceptance_cases\",\"suite\":{...}}`\n- `{\"op\":\"record_research\",\"evidence\":[...]}`\n- `{\"op\":\"set_budget\",\"budget_capability\":\"...\"}`\n- `{\"op\":\"restore\"}`, or the documented `begin_chunk`, `append_chunk`, and `commit_chunk`\n forms for large payloads.\n\nA single-field `recipe_input` is executable text input. Match contract `maxLength` with node\n`max_length`; `required:true` already enforces nonblank input. For structured LLM output, put the\ncomplete object schema in `llm_call.response.schema`. Export the complete object with\n`{{ analyze.pydantic.value | json }}`, or export a declared field with\n`{{ analyze.pydantic.value.field_handle | json }}`. Here, `analyze` is the ID of the producing\nnode. A sibling `schema` inside a `recipe_output`\nmapping is descriptive metadata and does not establish the executable contract.\n\nFor semantic MCP result labels, create one top-level `recipe_output` node per user-facing output\nfield, give the node the intended user-facing `title`, and give it a one-key `mapping`. A single\n`recipe_output` with several mapping keys is valid, but disclosure deliberately labels those\npositions `Output 1`, `Output 2`, and so on. Mapping keys remain internal and must never be used as\nrun input or public result handles.\n\nThe acceptance mutation is named `set_acceptance_cases`, not `set_acceptance_suite`. Its suite\nstarts with:\n\n```json\n{\n \"version\": 1,\n \"cases\": [\n {\n \"case_id\": \"normal_1\",\n \"label\": \"Normal input\",\n \"kind\": \"normal\",\n \"fixtures\": [\n {\n \"target\": \"input_handle\",\n \"content_type\": \"text/plain\",\n \"value\": \"...\"\n }\n ],\n \"assertions\": [\n {\n \"assertion_id\": \"result_exists\",\n \"type\": \"scalar\",\n \"operator\": \"exists\",\n \"path\": \"/result\"\n }\n ]\n }\n ]\n}\n```\n\nEvery case needs at least one assertion. Use only the assertion fields allowed by the tool schema.\nUse `scalar` equality only for JSON scalar values. To prove an array is empty, use a `collection`\nassertion with `operator:\"count_equals\"` and `expected:0`; `exists` proves only that the array is\npresent. A full suite rejects a normal case whose assertions prove only `exists` or `type`; every\nnormal case needs at least one behavioral oracle over its actual value, count, relationship,\nclassification, coverage, or safety property. Every decision-bearing output needs a behavioral\noracle. For paired invariance checks, prefer one material output field per `fields_unchanged`\nassertion so a failure identifies the unstable field instead of collapsing several differences\ninto one opaque result.\nBefore qualification, compare the normal fixtures with the user's planned real input. Include one\ncase that is at least as demanding for rendered-input size and structured-output length. A green\nsuite built only from smaller inputs does not establish that the committed recipe can finish the\nreal run. When the per-case quote rejects a realistic fixture, reduce response verbosity or schema\ncomplexity rather than weakening the fixture.\nWhen the recipe accepts a user-supplied rubric, policy, taxonomy, score scale, weight set, or\ndecision threshold, test at least two materially different configurations. Derive arithmetic from\nthe supplied scale maximum and apply the supplied thresholds exactly; never hide a fixed\ndenominator or fallback policy behind a configurable-looking input. For reconciliation, state\nwhether identity is exact-ID or semantic cross-ID matching and include a case that distinguishes\nthe two. For bounded prose, set field limits large enough for a complete action or rationale and\nassert a representative complete phrase so a clipped or unfinished sentence cannot qualify.\nCall `check_recipe_build` without `fixtures` for the ordinary structural/compiler check. Supply\nfixtures only for intentional template probes, and then provide a fixture for every referenced\ndependency whose output is not produced during that free render-only pass.\n\n`commit_recipe_build` first issues a short-lived single-use commit capability. Use it only for the\nunchanged qualified revision. A successful commit returns a private editor URL and, when current\nrun access permits it, a `recipe_ref`. Preview that reference before dry-run: the authoring\ncontract handles and recipe node IDs are not the positional `input_N` handles accepted by\n`run_recipe`. Say explicitly that the recipe is private. Never claim that commit submitted,\nreviewed, listed, priced, or published it in the public marketplace.\n\n## Approval and budget stops\n\n- Quote before every paid review or acceptance action.\n- Explain the maximum credits and remaining authoring budget before spending.\n- After a quote, follow its `next_action` exactly: redeem `budget_capability` with\n `update_recipe_build` operation `set_budget`, then execute the quoted request.\n- When full acceptance returns `supervised_required`, inspect every returned resource requirement\n first. Call `update_recipe_build` operation `bind_resource` once for each required selector,\n using the exact selector already frozen in the draft. Only then ask the user to open\n `action_url` and approve. After approval, resume the same activity with `resume_activity`.\n- Obtain user approval before a real recipe run when the action spends credits or can affect an\n external system.\n- Prefer selected failing cases while repairing; do not repeatedly pay for a complete suite.\n- Do not retry when the server reports insufficient credits for a fee, a spent or expired capability,\n exhausted cumulative budget, or a durable permanent error.\n\n## Not available in 1.1.0\n\n<!-- BEGIN NOT-AVAILABLE -->\n\nThe plugin does not expose recipe source, authoring acceptance-run traces, provider payloads,\ncredentials, raw exceptions, or unrestricted research evidence. Owned normal runs expose a\nbounded sanitized step trace; this is not a source export or a universal raw runtime-input log. It\ncannot publish to the marketplace, approve safety, set public pricing, or claim creator\ncompensation. Authoring\nqualification is parameter-sensitive: deterministic nodes, short pauses, and literal or\nstep-backed vector search can qualify automatically; literal HTTPS ingest and the approved\nread-only Brave Search integration use the conditional route. Resource-bound or effectful nodes\nsuch as document, email, export, long pauses, subrecipes, managed agents, and other integrations\nuse the returned supervised handoff. Bind every required frozen selector, obtain approval through\n`action_url`, then resume the same blocked activity. Unknown modes fail closed and must be repaired.\nFor a subrecipe, pass the `recipe_ref` returned by search or preview as `child_recipe_ref`;\nStewAI resolves and pins the runnable revision without exposing internal recipe identifiers.\n\n<!-- END NOT-AVAILABLE -->\n\n## Starter prompts\n\n<!-- BEGIN STARTER PROMPTS -->\n\nFind and compare the best accessible StewAI recipes for my task, then preview the strongest option without running it.\nRun a StewAI recipe with my input, monitor it, then summarize its declared results, step trace, and settled credit charge.\nBuild a private StewAI recipe for a recurring task, test it, repair failures, and commit a qualified version.\n\n<!-- END STARTER PROMPTS -->\n\n## Related local skill\n\nUse `stewai` only when the user explicitly asks for the Python SDK with an API key. A failed or\nunauthenticated MCP call never authorizes that fallback.\n"
}SHA-256 of public snapshot: 8e67323aee379aff41167d431945b904e76423bf3e0df804d10441ebce999b20