Skip to main content
Glama

Invent a kind

invent_kind

Invent a public kind for the exact $1 city fee. name is a unique normalized world name of at most 64 characters; description defaults to empty and is at most 4,000 safe characters. traits defaults to [] and accepts at most 32 unique existing trait names; it is the kind's whole trait list, and a later revise_kind replaces it whole. recipe defaults to [] and accepts at most 64 unique {kind, quantity} entries, each quantity 1 to 1024, with a total no greater than 1024 and JSON no larger than 65536 UTF-8 bytes. An optional base drawing uses the exact null/REFUSE/pixel drawing shapes stated by draw_self, including explicit drawing_state and an owner-written drawing_description of at most 280 UTF-8 bytes. drawing_variants publishes at most 8 unique exact named pixel variants, each drawn, explicitly in_progress or complete, and described by this exact kind revision's owner. Variants never select randomly. Before confirming a credit-funded invention, call credit_preflight and show its exact before/after balance. Then send a new city_credit_request_id to spend exactly one credit, or omit it to use the outer X-PAYMENT header; never send both payment rails. A kind may list only one trait with a wake key. Before any fee, it refuses a trait using law_place or convert with into_kind; those steps are for laws. Take the fresh suggested_request_id that credit_preflight returned instead of inventing a number. Lost? Call front_door.

Input Schema

NameRequiredDescriptionDefault
nameYes
recipeNounique kind names; at most 64 rows, 1,024 total ingredients, and 65,536 UTF-8 JSON bytes
traitsNo
drawingNo
descriptionNo
drawing_stateNo
drawing_variantsNozero to 8 variants authored for this kind revision; HTTP/MCP runtime enforces unique exact variant names; HTTP is authoritative and MCP forwards its exact errors
drawing_descriptionNoHTTP/MCP runtime enforces safe public text and at most 280 UTF-8 bytes; HTTP is authoritative and MCP forwards its exact errors
city_credit_request_idNonon-secret retry identifier you make up for this one paid action, never a number or your balance

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / city_credit_request_id / description
      Previous value: -"non-secret retry identifier that deliberately spends one private city fee credit"New value: +"non-secret retry identifier you make up for this one paid action, never a number or your balance"
    • changedInput schema / properties / city_credit_request_id / pattern
      Previous value: -"^[A-Za-z0-9][A-Za-z0-9_.:-]*$"New value: +"^(?![0-9]+(?:\\.[0-9]+)?$)[A-Za-z0-9][A-Za-z0-9_.:-]*$"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond annotations, it discloses the exact fee, the two payment rails and prohibition on using both, preflight balance display, whole-list trait replacement by revise_kind, non-random variant selection, and a one-wake-key restriction. These are substantive operational and cost behaviors that an agent would not infer from the annotations alone.

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 key information is front-loaded: purpose/fee first, then parameter constraints, then payment workflow and edge cases. It is dense and could be easier to scan with structure, and 'Lost? Call front_door' is optional, but nearly every sentence carries a real constraint for this complex 9-parameter tool.

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 complex paid mutation with no output schema, it covers the critical call path: cost, preflight, payment rail choice, parameter constraints, law-trait refusals, and fallback to front_door. It still does not state what a successful call returns or any permission/ownership prerequisite beyond owner-written descriptions, so it is strong but not fully complete.

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

Parameters5/5

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

With only 44% schema description coverage, the description supplies semantics for most parameters: name normalization/uniqueness, description limits, traits as a whole existing-trait list, recipe uniqueness/quantity/total/byte limits, drawing shape delegation to draw_self, variant ownership/state/name uniqueness, and city_credit_request_id payment use. It leaves only low-level drawing palette/indices shape to the schema and draw_self, so it substantially compensates for the coverage gap.

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 ('Invent a public kind') and states the exact $1 fee. It implies the create-vs-revise split by noting a later revise_kind replaces traits whole, but it does not explicitly contrast with other creation-adjacent siblings such as make or found.

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 gives concrete usage context: call credit_preflight before a credit-funded invention, use exactly one payment rail, and take the suggested_request_id from credit_preflight. It also names revise_kind for later whole-replacement and front_door as fallback, plus law-trait exclusions, though it does not spell out the full when-not matrix among all creation 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.