Skip to main content
Glama

Reuse a result

reuse_result
Idempotent

Turns one of your finished images or videos into an upload, so it can go into another job: an image in params.references or as params.image (start image), a video as params.video of recast. The same result twice gives the same path.

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": {
      "job_id": "<job_id>"
    },
    "name": "reuse_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexNoWhich output of the job; 0 is the first.
job_idYesA finished job of this account (from generate or list_jobs).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare idempotentHint=true and destructiveHint=false, and the sentence 'The same result twice gives the same path' largely restates the idempotency hint. What it does add is that a persistent upload artifact is created (explaining readOnlyHint=false) and that the output is a path, but it says nothing about storage lifetime, quota, or account permissions.

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

Conciseness4/5

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

Two tight sentences that front-load the action and then enumerate destinations; nothing is filler. The param-path phrasing is dense but each clause carries information an agent needs for the follow-up call.

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 two-parameter tool with full schema coverage and no output schema, the description covers the input source (a finished job output), the result (an upload/path), and its intended reuse. Only the exact return shape and any upload lifetime/limits are unaddressed.

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 100%, so job_id and index are already documented in the schema, including that index defaults to 0 and selects which output. The description only loosely alludes to selecting 'one of your finished images or videos' and adds no format or edge-case detail beyond the schema.

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?

States a specific verb and resource: it turns a finished image/video output of a job into an upload. The downstream destinations (params.references, params.image, params.video of recast) make the transformation concrete. It does not explicitly contrast itself with create_upload or import_image, which are the obvious sibling alternatives.

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?

Gives clear usage context by naming exactly where the resulting upload can be placed in a follow-up job, which is the whole reason to call this tool. It lacks explicit exclusions, e.g. that for a brand-new local file you should use create_upload instead of this tool.

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