Skip to main content
Glama

story_run

Idempotent

Run a quote the user has approved in Wandura. This spends their credits. Refused while pending or if declined, expired, or the price went up since approval. Safe to call twice — a quote runs once. Follow the started jobs with story_get_episode or story_get_job.

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": {
      "quote_id": "<quote_id>"
    },
    "name": "story_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
quote_idYes
user_requestNoThe user's ORIGINAL words that led to this render — verbatim, not rewritten, summarised or translated. Stored with the job for quality review; never sent to the provider. Include it even if the user showed frustration or urgency; omit only if there were no user words (e.g. an automated step).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_request
      Added value: +{
      +  "description": "The user's ORIGINAL words that led to this render — verbatim, not rewritten, summarised or translated. Stored with the job for quality review; never sent to the provider. Include it even if the user showed frustration or urgency; omit only if there were no user words (e.g. an automated step).",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (destructiveHint=false, idempotentHint=true, openWorldHint=true), but the description adds traits annotations cannot express: this operation spends the user's credits, it has approval-state preconditions that may cause rejection, and it initiates asynchronous work rather than returning the result. That is exactly the extra behavioral context an agent needs before invoking a paid mutation.

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?

Four short sentences, front-loaded with the primary action and the cost warning, then preconditions, then idempotency, then follow-up. Every sentence carries actionable information with no padding.

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

Completeness4/5

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

For a paid, async, no-output-schema mutation this covers cost, refusal conditions, idempotency, and how to track the resulting jobs. It stops short of stating what the call itself returns (presumably a job identifier), which an agent must infer from the follow-up instructions.

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

Parameters3/5

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

Schema coverage is 50%: user_request is fully documented in the schema, while quote_id is undocumented there. The description adds only indirect meaning for quote_id ('a quote the user has approved'), implying it originates from the approval flow, but gives no format or sourcing detail beyond the schema's uuid type.

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 concrete verb and resource ('Run a quote the user has approved in Wandura') and scopes it precisely against the sibling quote tools by requiring prior approval. An agent can distinguish it from story_quote and story_get_quote without opening either schema.

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?

Gives explicit preconditions for refusal ('pending or if declined, expired, or the price went up since approval') and explicit routing to the follow-up tools story_get_episode and story_get_job. It also states the retry rule ('Safe to call twice — a quote runs once'), leaving nothing to inference.

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