Skip to main content
Glama

Sigmora

Discard an automation run

recipes_runs_discard
DestructiveIdempotent

Discard a recipe run so none of its open outputs is posted. Free.

REST: POST /v1/recipes/{recipeInstanceId}/runs/{runId}/discard.

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": {
      "recipeInstanceId": "<recipeInstanceId>",
      "runId": "<runId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "recipes_runs_discard"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesThe run (`run.id` from GET /v1/recipes/{recipeInstanceId}/runs).
workspaceNoWorkspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored.
idempotencyKeyYesRequired for anything that spends or creates durable state. Generate a unique id per logical call. Retrying with the SAME id and the SAME arguments returns the stored result instead of doing — and charging for — the work twice; the same id with different arguments is refused with `conflict`.
recipeInstanceIdYesThe started recipe (`id` from GET /v1/recipes).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description still earns credit by specifying what is destroyed (open outputs will not be posted) and that the call is free, which is billing context not present in any structured field.

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

Conciseness5/5

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

Two sentences, no waste, with the behavioral consequence front-loaded ahead of the endpoint reference. Every clause carries information an agent cannot get from the schema alone.

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?

An output schema exists and annotations are rich, so the description does not need to explain returns or the safety profile. The only gap is edge-case behavior — what happens when discarding a run whose outputs were already decided or posted — which an agent deciding whether to call this would plausibly want to know.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3 and the schema already documents every parameter. The REST line adds modest but real value by revealing which identifiers are path segments (`{recipeInstanceId}/runs/{runId}`) and that the call has no body beyond the idempotency key, clarifying parameter roles rather than restating them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Discard a recipe run") and immediately names the concrete effect: none of its open outputs is posted. That effect clause is what separates it from siblings like recipes_runs_approve or recipes_runs_refine, which act on outputs rather than killing them.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this is the tool for abandoning a run whose outputs should not be published. There is no explicit when-to-use versus when-not-to-use statement, and no named alternative such as approve or refine for the case where the outputs should go out.

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