Skip to main content
Glama

PennyCompute

Generate an image

generate_image

FLUX.2 klein 4B costs $0.0047 per 1024×1024 image. 1024×1024 PNG only; no other sizes or aspect ratios; no edit endpoint; no LoRA. Failed jobs are free.

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": {
      "prompt": "<prompt>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo
promptYes
priorityNonormal
output_uploadNo
idempotency_keyYes
client_referenceNo
max_output_bytesNo
max_wait_secondsNo
webhook_endpoint_idNo

Output Schema

NameRequiredDescriptionDefault
idYes
resultNo
statusYes
priorityNo
created_atNo
service_idYes
started_atNo
updated_atNo
output_fileNo
completed_atNo
failure_codeNo
failure_messageNo
output_deliveryNo
client_referenceNo
charged_fee_microsNo
outstanding_microsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry the burden alone, and it does disclose two genuinely useful traits: per-image cost ($0.0047) and that failed jobs are free. It omits the asynchronous job model implied by max_wait_seconds, idempotency_key, webhook_endpoint_id and priority, so the agent does not learn that this submits a job rather than returning an image directly.

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?

It is compact and front-loaded, with the hard constraints separated by semicolons. Leading with price before any statement of function is slightly misprioritized, but no sentence is wasted.

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

Completeness2/5

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

An output schema exists, so return values need no explanation, but for a 9-parameter asynchronous submission tool with zero annotation coverage and zero schema descriptions, the definition is far too thin. An agent cannot learn idempotency requirements, priority semantics, webhook/upload options, or whether to poll via get_job_status from this text.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, including a required idempotency_key, an enum priority, and a nested output_upload object, and the description explains none of them. The only indirect help is that 'no other sizes or aspect ratios' confirms there is no size/aspect parameter to hunt for; nothing is said about seed, priority, webhook, or wait semantics.

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

Purpose3/5

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

The description never states outright that it generates an image from a text prompt; it presupposes the purpose via constraints like '1024×1024 PNG only' and 'no edit endpoint; no LoRA'. Those exclusions help distinguish it from edit/upscale siblings, but the core verb+resource statement is left implicit.

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

Usage Guidelines3/5

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

'no edit endpoint; no LoRA' and 'no other sizes or aspect ratios' function as when-not guidance, telling the agent this is plain fixed-size text-to-image only. However, it never names an alternative sibling (e.g. upscale_image, estimate_job) or states the precondition that makes this the right choice.

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