Skip to main content
Glama

Creative Constraints

Draw Constraint

draw_constraint
Read-onlyIdempotent

Draws from Pipeworx's original 162-card creative-constraints deck (perspective, limitation, medium, time, audience, inversion, scale, process, wildcard), each card is one imperative sentence an agent or team can apply to any task (a launch, an essay, an onboarding flow, a dinner), with a one-sentence reason it helps. Interpretation is yours: the tool returns what was drawn and the procedure used, not advice. Optionally restrict to one or more categories. Pass seed to reproduce an exact draw later (the same seed, count, and categories always return the same cards); omit it for a fresh random draw, the seed used is always returned. Pass session_id from a previous response to continue a no-repeat session (draw-without-replacement across calls, hosted gateway only); when continuing a session, categories cannot be changed mid-session.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "seed": "pipeworx-demo",
      "count": 3,
      "categories": [
        "inversion"
      ]
    },
    "name": "draw_constraint"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional seed for a reproducible draw. The same seed, count and categories always return the same cards. Omit for a fresh random draw; the seed actually used is returned in `meta.seed`.
countNoHow many cards to draw, 1-10. Default 3.
categoriesNoRestrict the draw to one or more of: perspective, limitation, medium, time, audience, inversion, scale, process, wildcard. Omit (or pass an empty array) for the full 162-card deck.
session_idNoA session_id returned by a previous draw_constraint call, to continue drawing without repeating cards already drawn in that session. Hosted gateway only, answers session_supported:false elsewhere.

Output Schema

NameRequiredDescriptionDefault
metaNo
seedNo
cardsNo
countNo
remainingNo
session_supportedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / session_id / description
      Previous value: -"A session_id returned by a previous draw_constraint call, to continue drawing without repeating cards already drawn in that session. Hosted gateway only — answers session_supported:false elsewhere."New value: +"A session_id returned by a previous draw_constraint call, to continue drawing without repeating cards already drawn in that session. Hosted gateway only, answers session_supported:false elsewhere."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses the reproducibility contract (same seed/count/categories yields the same cards), that the seed used is always returned, that session continuation means draw-without-replacement, that session mode is hosted-gateway only, and that categories are frozen mid-session. The remaining gap is that session lifetime or draw limits are not stated, and continuing a session mutates server-side state in a way that sits slightly awkwardly with readOnlyHint/idempotentHint — though no hard contradiction exists.

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?

Front-loaded with the core action and scope, and every sentence carries operational content. It loses a little to redundancy — the nine category names are enumerated in the prose and again in the schema enum, and the seed rule is restated in slightly different words.

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?

With an output schema present, the description need not describe return shapes, and it still covers returns, seeding, session behavior, and category restriction. For a read-only drawing tool with full schema coverage and annotations, nothing an agent needs in order to call it correctly is missing.

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 schema already defines all four parameters and the baseline is 3. The description adds real meaning on top: the exact equivalence relation for reproducibility, the fact that the effective seed is echoed back, and the mid-session category lock, which is not expressible in the schema.

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?

States a specific verb and resource: draws from a 162-card creative-constraints deck, with the card content described concretely (one imperative sentence plus a one-sentence reason). It also draws an explicit boundary — 'the tool returns what was drawn and the procedure used, not advice' — which separates it from advice-style siblings like ask_pipeworx and from card-retrieval siblings like get_constraint.

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?

Gives clear conditional guidance for each mode: omit `seed` for a fresh draw, pass it to reproduce a prior draw, pass `session_id` to continue a no-repeat session, and optionally restrict categories. It does not explicitly say when to prefer this over get_constraint or list_constraint_categories, so alternative routing is left to inference.

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.