Skip to main content
Glama

Draft items cheaply

draft
Idempotent

Costs 13 credits per draft image. Makes low-cost previews with an AI fit check so finals are only bought for what works. confirmCredits must equal the price (items x copies x variants); requestId makes a retry 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": {
      "projectId": "<projectId>",
      "itemIds": "<itemIds>",
      "confirmCredits": "<confirmCredits>",
      "requestId": "<requestId>"
    },
    "name": "draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdsYes
variantsNo
projectIdYes
requestIdYes
confirmCreditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds real cost and safety context beyond the annotations: 13 credits per image, a confirmCredits pre-authorization rule, and free retries via requestId (consistent with idempotentHint=true). It does not disclose any output or what an 'AI fit check' produces, and the price formula references a 'copies' factor that no schema parameter exposes, which muddies the arithmetic an agent must satisfy.

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?

Three short sentences, front-loaded with the price, which is the highest-salience fact for an agent. The middle formula sentence is dense and slightly self-undermining because of the undefined 'copies' term, but nothing is padding.

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 5-parameter credit-spending mutation with no output schema and no annotations on cost, the description covers the two things an agent would otherwise get wrong: how much it costs and how confirmCredits/requestId behave. Return values aren't needed for correct invocation, and remaining schema details are enforced by the schema itself.

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 0%, so the description carries the full burden, and it explains only confirmCredits (must equal items x copies x variants) and requestId (retry is free). itemIds, projectId, and variants get no semantic explanation, and 'copies' is introduced as a price factor with no corresponding parameter, leaving the required confirmCredits value genuinely hard to compute.

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 states a specific action and artifact: 'Makes low-cost previews with an AI fit check' at 13 credits per draft image, which is meaningfully different from a full render. It implies the split from the 'generate' sibling by contrasting drafts with 'finals' being bought later, but never names the alternative tool explicitly.

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?

'so finals are only bought for what works' gives a clear decision rule: draft first, promote selectively. What's missing is a named next step (generate vs approve vs get_status) and any exclusion such as when to skip drafting and go straight to finals.

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