Skip to main content
Glama

Generate UI Pack

generate_ui_pack

Get a cost preview for an exact component list and batch breakdown, then generate using the returned signed quote. Every paid raster/SVG batch is 100 credits; one pack action can contain several batches. Fonts are free. Defaults to dry-run; never alter the quote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteNoUnmodified signed quote returned by the dry-run. Required when dryRun is false.
dryRunNoShow the user estimatedCredits and ask whether to proceed, unless already authorized in this session. Prefer the client native question UI with Approve / Decline / Discuss choices; otherwise accept any unambiguous conversational approval. Never require a fixed phrase or magic word. Then set false and supply the returned quote.
packIdYesOwned UI Pack ID.
requestNo
idempotencyKeyNoReuse the same key when retrying a confirmed request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dryRun / description
      Previous value: -"Show the user estimatedCredits and get an explicit yes for that scope, unless already authorized in this session. Then set false and supply the returned quote."New value: +"Show the user estimatedCredits and ask whether to proceed, unless already authorized in this session. Prefer the client native question UI with Approve / Decline / Discuss choices; otherwise accept any unambiguous conversational approval. Never require a fixed phrase or magic word. Then set false and supply the returned quote."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

With annotations already conveying readOnlyHint=false and destructiveHint=false, the description adds genuinely new behavioral context: the 100-credit cost per paid raster/SVG batch, fonts being free, the dry-run default, and the do-not-modify-quote contract. This goes well beyond what the annotations alone disclose.

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 sentences, each earning its place: the first front-loads the purpose and flow, the second explains the pricing/batch model, the third adds two critical constraints. No filler or redundancy.

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?

This is a complex 5-parameter tool with nested objects, a two-phase quote flow, and no output schema, yet the description never describes what the dry-run returns (estimatedCredits, quote structure, batch breakdown shape) nor the explicit confirmation/consent step before generation (left to the dryRun parameter description). Purpose and pricing are well covered, but for this complexity the flow details are incomplete.

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?

With 80% schema coverage, the baseline is 3, but the description adds interaction-level semantics the schema lacks: how the quote relates to dryRun and request (dry-run produces a signed quote that must be passed back unmodified) and the batch-pricing model. It does not mention packId or idempotencyKey, but the schema already covers those fields.

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 the core flow with a specific resource: get a cost preview for a UI pack component list, then generate using a signed quote. The dry-run/quote mechanism clearly distinguishes it from siblings like create_ui_pack or get_ui_pack, though it never names an alternative 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?

The first sentence gives an explicit invocation pattern: preview first, then generate with the returned signed quote. 'Defaults to dry-run' and 'never alter the quote' add clear constraints on how to call correctly. However, it does not name when-not-to-use cases or alternative siblings.

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