Skip to main content
Glama

NightMarquee Studio

Spend credits on a quote

confirm_spend
Destructive

Spends the credits a quote priced and starts the work it priced: a take, the film or a redo. Call it only after the user agreed to that quote's price. Apps that can ask the user show them the price and ask before anything is spent. Returns the job; read it with get_job. The same quote never spends twice: calling again answers the same 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": "<quote>"
    },
    "name": "confirm_spend"
  }
}

Input Schema

NameRequiredDescriptionDefault
quoteYesThe quote id from quote, which the user agreed to.

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
errorYes
resultNo
statusYes
retryAfterSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description's added value is real: it discloses idempotency ("The same quote never spends twice"), names the returned artifact (the job) and the tool that reads it, and explains that capable apps will surface the price and ask before spending. Idempotency and the consent behavior are exactly the facts an agent needs before firing a destructive call.

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 tight sentences, front-loaded with the action, then consent precondition, then return/idempotency. Nothing is repeated from the annotations and no sentence is filler.

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

Completeness5/5

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

For a single-parameter destructive tool with an output schema, everything needed is covered: what is spent, when it is allowed, what comes back, and why repeats are safe. The return shape is left to the schema, which is correct.

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 `quote` id is already documented as coming from `quote` and being user-agreed. The description nonetheless adds meaning beyond the schema by implying `quote` acts as an idempotency key — repeat calls with the same value return the same job rather than spending again.

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?

Opens with a specific verb and resource: "Spends the credits a quote priced and starts the work it priced," then enumerates what work ("a take, the film or a redo"). An agent can immediately separate it from `quote` (which prices) and `get_job` (which reads results).

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?

States an explicit precondition: "Call it only after the user agreed to that quote's price," which is effectively a when-not rule for every other case. It also clarifies the ordering relative to `quote` and `get_job`, so the place in the workflow is unambiguous.

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