Skip to main content
Glama

mix-the-references

Mix four references into one picture. Each reference is its own node: who (the character), what they wear, what they hold, and where they stand. FLUX.3 Klein Edit gets them in port order and the in… text:Who · character -> text:What they wear · outfit -> text:What they hold · prop -> text:Where · place -> text:Mix instruction (names each image) -> image:1 · Character -> image:2 · Outfit -> image:3 · Prop -> image:4 · Place -> edit:Mix · FLUX.3 Klein Edit; returns image (flux-3/klein/edit-image, 1024×1024) saved to disk (file path in result). Runs on NanoGPT — $0.08 deposit per call, paid in Nano (XNO) — settles at actual model cost + 20%, change returned; no account needed. Example: Composite sample (https://nanoodle.com/examples/gallery/#mix-the-references). Four separate references become one picture: a paper-craft fox (image 1) wears a yellow knitted raincoat (image 2), holds one red paper lantern (image 3) and stands on a cardboard pier at dusk (image 4). FLUX.3 Klein Edit gets them in port order and the instruction names each image by number. Flaws in the saved run: the paper boats from the place reference mostly drop out and the coat comes out longer than its flat-lay reference. It can also be paid in NEAR: add "_pay_with": "near" for a NEAR quote, send the exact amount in one transfer, then call again with the same arguments plus _payment_id, _payment_tx and _payment_sender.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mix-the-references"
  }
}

Input Schema

NameRequiredDescriptionDefault
_pay_withNoPayment rail for the quote: "nano" (default, XNO over x402), "near" (native NEAR) or "usdc" (Circle-issued USDC on NEAR).
Where_placeNoText; default: "A paper-craft harbor at blue-hour dusk: a short wooden pier made of cardboard planks in the foreground, layered blue ..."; optional
_payment_idNoPayment id from this tool's previous payment-required response. Phase 3 only: after /x402/watch closes with status paid, call again with the same arguments plus this id to open the RESULTS stream. Do not pass it while payment is still pending — monitor the watch SSE first.
_payment_txNoHash (base58) of the exact quoted payment: one native Transfer for NEAR, or one ft_transfer on the quoted token contract for USDC.
Who_characterNoText; default: "A small paper-craft fox mascot made of folded orange paper with a white paper chest and tail tip, a black paper nose ..."; optional
_payment_senderNoThe NEAR account you paid from. It locates the transaction; the refund goes to the transaction's signer.
What_they_hold_propNoText; default: "Product photo of a small round red paper lantern with a thin bamboo carrying handle, glowing warm from inside, center..."; optional
What_they_wear_outfitNoText; default: "Product photo of a tiny yellow knitted raincoat with a pointed hood and three round wooden toggle buttons down the fr..."; optional
Mix_instruction_names_each_imageNoText; default: "Make one new picture that combines the four reference images.\nImage 1 is the character: keep this exact paper-craft f..."; optional

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / _pay_with / description
      Previous value: -"Payment rail for the quote: \"nano\" (default, XNO over x402), \"near\" (native NEAR)."New value: +"Payment rail for the quote: \"nano\" (default, XNO over x402), \"near\" (native NEAR) or \"usdc\" (Circle-issued USDC on NEAR)."
    • changedInput schema / properties / _pay_with / enum
      Previous value: -[
      -  "nano",
      -  "near"
      -]New value: +[
      +  "nano",
      +  "near",
      +  "usdc"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / _pay_with
      Added value: +{
      +  "description": "Payment rail for the quote: \"nano\" (default, XNO over x402), \"near\" (native NEAR).",
      +  "enum": [
      +    "nano",
      +    "near"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / _payment_sender
      Added value: +{
      +  "description": "The NEAR account you paid from. It locates the transaction; the refund goes to the transaction's signer.",
      +  "type": "string"
      +}
    • addedInput schema / properties / _payment_tx
      Added value: +{
      +  "description": "Hash (base58) of the exact quoted payment: one native Transfer for NEAR, or one ft_transfer on the quoted token contract for USDC.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so: it discloses the output (1024×1024 image saved to disk, file path in result), the runtime/pricing model ($0.08 deposit in Nano, settles at actual model cost + 20%, change returned, no account needed), the multi-phase payment handshake with _payment_id/_payment_tx/_payment_sender, and an alternative NEAR quote path. It even volunteers known failure modes (place-reference paper boats dropping out, the coat rendering longer than its flat-lay reference), which is unusually candid behavioral disclosure.

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

Conciseness3/5

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

The core purpose is front-loaded, but the body is bloated and partly garbled: a truncated/inline fragment ("gets them in port order and the in… text:Who · character -> ...") breaks the reading flow, and the port-order rule plus the fox example are each effectively stated twice. The payment paragraph is dense and tacked on rather than structured into steps.

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 9-parameter generative tool with no output schema, it covers what an agent actually needs: return format and location, cost and settlement, the three-call payment sequence, and observed quality caveats. The only gaps are a poorly structured payment section and missing guidance on how to validate or retry a run that exhibits the disclosed flaws.

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; the description adds real meaning by mapping the conceptual slots to concrete inputs — Who→image:1 Character, Outfit→image:2, Prop→image:3, Place→image:4 — and by stating that the mix instruction must name images by number. That port-order mapping is not inferable from the schema alone.

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 concrete verb+resource: "Mix four references into one picture," then enumerates the four reference roles (who / what they wear / what they hold / where) and names the underlying model (FLUX.3 Klein Edit). An agent can tell this apart from sibling tools like character-sprites or image-model-arena without opening the schema.

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?

Provides a worked example (paper-craft fox + raincoat + lantern + cardboard pier) that shows the intended composition scenario, plus the rule that the instruction must name each image by number and that editing happens in port order. It stops short of explicit exclusions such as when to prefer character-sprites or a single-reference edit tool, so it is clear context without true routing guidance.

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.