Skip to main content
Glama

Generate directions

generate_directions

Generate other facings of an existing sprite (in-app Directions). source_direction is required — ask the user if it is not obvious. Defaults: density quality, targets = the other cardinals. State the assumptions you used. Only an off-center subject blocks (fix_preflight: true re-centers it); brush/size findings are advisory warnings (fix_preflight: "all" applies them). ~8 credits (HD).

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": {
      "asset_id": "<asset_id>",
      "source_direction": "<source_direction>"
    },
    "name": "generate_directions"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNoAppend finished artboards into the source library file (default true).
densityNomax (1 facing) | quality (~3 facings, default). Quantity is treated as quality.
asset_idYesSource library asset id (from list_assets). Must face source_direction.
artboard_idNoOptional artboard id from get_asset. Multi-artboard files need artboard_id or artboard_name to pick one sprite; omit for single-artboard assets.
color_policyNoPalette policy matching in-app ColorPolicyControl: "32"|"64"|"128"|"256" (max colors) or "none" (don't reduce). Default "128". Put palette caps here, not in the prompt.
artboard_nameNoOptional artboard name from get_asset (e.g. "rocks_crystal"). Alternative to artboard_id.
fix_preflightNotrue = re-center the subject for this run (the only blocking finding). "all" = also apply the advisory brush and artboard-resize fixes, which can change the output size. Default false. The saved library file is not changed.
source_directionYesWhich way the source sprite faces now (N/NE/E/SE/S/SW/W/NW). Required — ask the user if it is not clear from the image or context.
target_directionsNoFacings to generate. Capped by density (max=1, quality≈3). Default: the other cardinals. Source facing excluded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / subject_category
      Removed value: -{
      -  "description": "Subject framing (default character); infer from the sprite.",
      -  "enum": [
      -    "character",
      -    "item",
      -    "building",
      -    "ui",
      -    "custom"
      -  ],
      -  "type": "string"
      -}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover safety (readOnlyHint=false, destructiveHint=false), but the description adds genuinely new behavior: ~8 credits (HD) cost, that only an off-center subject blocks, that brush/size findings are advisory, and that fix_preflight does not change the saved library file. That last point is important side-effect disclosure not derivable from the schema. Return shape and failure modes are not covered.

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?

The required-parameter constraint is front-loaded, followed by defaults, assumptions, and cost in a logical order with no filler. The terse telegraphic style ("~8 credits (HD)", "fix_preflight: \"all\" applies them") is dense but every clause carries load.

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 non-idempotent generation call with no output schema, the description covers the main failure mode (missing source_direction), the cost, and the preflight decision tree. Gaps are minor: it says nothing about what the call returns or how partial/failed facings are reported, both of which matter for a non-idempotent job tool.

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 coverage is 100%, so defaults for density, target_directions, color_policy, and save are already documented in structured fields. The description reinforces the two most error-prone ones (required source_direction, off-center-only blocking) but adds little syntax or format detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 opening sentence gives a specific verb and resource: generating other facings of an existing sprite, with the in-app concept name (Directions) for disambiguation. An agent can tell this apart from whole-sprite generation because the input is an existing sprite. It stops short of naming which sibling to use when the sprite doesn't exist yet (e.g. generate_pixel_art).

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?

It states a concrete usage rule for the required parameter ("source_direction is required — ask the user if it is not obvious"), which is exactly the decision an agent needs to make before calling. It also clarifies defaults and the blocking-vs-advisory split for fix_preflight. It does not state when to prefer a different generation tool instead, so the exclusions are missing.

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