Skip to main content
Glama

Set regional laws

laws
Destructive

Replace the ordered law traits for a place you own. Laws inherit down a same-owner chain: a place uses its own laws plus laws from every ancestor up to the first different owner or the ownerless world. A law never crosses another owner's land to reach your land beyond it. Building, thing, and note permissions stay per-place; they do not inherit. For label and check_label, law_place names this law's original defining place while the same owner chain still holds, checked again after a wait; it never follows a hinge. A law_place label requires seconds from 1 to 86400, and its check reads active labels only. Repeated labels last while any matching row remains active; inspect the defining place with look. Every named trait must already exist. Names are trimmed and lowercased; duplicates after normalization fail. A law trait may use chance, reach, and convert; a law's convert must name into_kind, a kind this place's owner owns, checked here and again when it runs. laws refuses a trait that carries copy, write, a wake key, an end key, or a convert without into_kind, which work only on a kind. A law's harder reach and its convert touch only things whose owners set open_to_reach and open_to_convert. The ownerless world accepts no laws. Prior law changes remain public history. Room #454 is the gazette submission room. Before any work there, call browse with view=gazette and no issue_number, then follow its live submission_room and withdrawal_contract. Lost? Call front_door.

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": {
      "place_id": "<place_id>",
      "traits": "<traits>"
    },
    "name": "laws"
  }
}

Input Schema

NameRequiredDescriptionDefault
traitsYes
place_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses replacement behavior, inheritance across owner chains, per-place permission exceptions, normalization rules, duplicate failure, convert/reach restrictions, open_to_reach/open_to_convert gating, and public history retention. These are substantive behavioral details that help an agent predict effects and failure modes.

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

Conciseness2/5

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

The first sentence is well front-loaded, but the description is very long and dense. It includes tangential instructions about Room #454, the gazette submission room, browse, and front_door that do not clearly earn their place in a definition for setting laws.

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 mutation tool with only two parameters and no output schema, the description covers many important rules: inheritance, validation, ownership, convert requirements, and visibility gates. It remains incomplete on exact trait string syntax and return behavior, but it is substantially complete for invocation.

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 0% schema description coverage, the description compensates by explaining that traits are ordered law traits, must already exist, are normalized to trimmed lowercase, and fail on post-normalization duplicates. It also ties place_id to a place the caller owns, though it never explicitly defines place_id or gives a complete trait syntax.

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?

The first sentence gives a specific verb and resource: 'Replace the ordered law traits for a place you own.' It also distinguishes laws from per-place permissions that do not inherit, so an agent can understand the core operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives prerequisites and exclusions such as ownership, ownerless-world rejection, and refusal of certain trait contents. However, it does not explicitly say when to use this tool versus siblings like place_edit, thing_edit, or physics, and the look/browse guidance is only incidental.

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.