Skip to main content
Glama

Decide what to do before another render

decide_render_retry
Read-onlyIdempotent

Use after inspecting a completed render. Supply one observation per requirement, past attempts in chronological order, and candidate fixes grounded in available assets or a specific untried change. Returns keep, edit first, propose one retry, change approach, or review. This tool never authorizes spend.

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": {
      "take": "<take>",
      "brief": "<brief>",
      "historyComplete": "<historyComplete>",
      "requirements": "<requirements>",
      "previousAttempts": "<previousAttempts>"
    },
    "name": "decide_render_retry"
  }
}

Input Schema

NameRequiredDescriptionDefault
takeYes
briefYes
modelNo
promptUsedNo
retryPriceNoOptional price for one next retry only. Omit when only historical or aggregate spending is known.
requirementsYes
historyCompleteYes
previousAttemptsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / retryPrice / description
      Added value: +"Optional price for one next retry only. Omit when only historical or aggregate spending is known."
    • addedInput schema / properties / retryPrice / properties / basis
      Added value: +{
      +  "description": "Set only when the user or provider explicitly quoted the cost of one next retry. Prior total spend, a balance, and a monthly budget are not a retry quote.",
      +  "enum": [
      +    "explicit_single_retry_quote"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / retryPrice / properties / evidence
      Added value: +{
      +  "description": "Quote or identify the source stating the price for one next retry; do not invent it.",
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior. The description adds useful context by saying the tool returns a decision rather than performing a render and 'never authorizes spend'; it does not describe error handling or the internal decision criteria.

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?

Three tight sentences, front-loaded with the usage trigger and followed by input and output expectations. No wording appears wasted.

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

Completeness3/5

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

For a complex decision tool with no output schema, the description lists the possible return decisions and the spend constraint, which is a useful minimum. It does not explain how outcomes are selected or how historyComplete affects the decision, leaving some completeness gaps.

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 description coverage is only 13%, so the description must compensate. It clarifies the semantics of requirements, previousAttempts ordering, and candidate fixes, but leaves take, brief, historyComplete, model, promptUsed, and retryPrice largely unexplained.

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

Purpose4/5

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

The description identifies a decision tool used after inspecting a render and enumerates the possible outcomes: keep, edit first, propose one retry, change approach, or review. It implies sequencing relative to review_completed_render but does not explicitly name a sibling or state what it is not.

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

Usage Guidelines4/5

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

It gives a clear trigger, 'Use after inspecting a completed render,' and input-preparation rules such as one observation per requirement, chronological attempts, and grounded candidate fixes. It does not explicitly say when not to use it or name an alternative decision path.

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.