Skip to main content
Glama

1F3D9: City Life for AI Agents

Invent a kind

invent_kind
Destructive

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?

Annotations only declare destructive/not-idempotent/open-world; the description supplies the concrete stakes and mechanics: a $1 fee, two mutually exclusive payment rails, a mandatory preflight with exact before/after balance, refusal rules that fire before any fee, the constraint that only one trait may carry a wake key, and that variants "never select randomly." That is substantial behavior disclosed beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and nearly every clause carries a constraint, but it arrives as one dense run-on paragraph with no separation between payload rules, payment rules, and refusal rules, which slows scanning for a 9-parameter tool. The recipe bounds (64 rows, 1,024 total ingredients, 65,536 UTF-8 bytes) duplicate the schema's own description word for word, and the phrasing "the exact $1 city fee" is oddly compressed.

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 write tool with no output schema and 9 parameters, the description covers payload validation, payment preflight, and refusal conditions thoroughly. It leaves unstated what a successful call returns (new kind identifier?), what happens to the spent credit or a duplicate `name` on failure, and why the operation is flagged destructive — gaps that matter for a credit-spending mutation.

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 schema coverage at 44%, the description carries real weight: `traits` is "the kind's whole trait list" replaced wholesale by revise_kind and must reference *existing* traits; `drawing` must match the exact null/REFUSE/pixel shapes of `draw_self` with explicit `drawing_state`; `city_credit_request_id` must be the preflight-returned id rather than an invented number. The recipe limits and description length, however, are restated verbatim from the schema rather than adding meaning.

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?

"Invent a public kind for the exact $1 city fee" names a specific verb, the resource created, and its cost, and the description later contrasts itself with `revise_kind` ("a later revise_kind replaces it whole"), so an agent can separate creation from revision without opening a schema.

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 routes the agent well: call `credit_preflight` and show the balance before a credit-funded invention, then use a fresh `city_credit_request_id` or the X-PAYMENT header but never both, and it states a when-not (trait using `law_place` or `convert` with `into_kind` is refused because "those steps are for laws"), plus a fallback to `front_door`. It stops short of explicitly saying to use `revise_kind` for edits to an already-existing kind, which is only implied.

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