Skip to main content
Glama

craftos_labels

Labels UI elements by color and optional monitor/region, letting later calls reference names instead of coordinates; saves and loads label sets across sessions.

Instructions

Name UI elements by colour (and optionally monitor and region) so every later call can say touch {name:"DOUBLE"} or expect {rect:{name:"HIT"}} instead of coordinates. Pixel-font text cannot be read, so read a label off one screenshot once, then label it. set: {NAME: {color:"#f15c5c", peripheral?, region?:{x1,y1,x2,y2}}}. save/load persist them in worlds/labels/.json so they survive sessions. craftos_ui shows the names inline. Call with nothing to list.

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": {
      "id": "<id>"
    },
    "name": "craftos_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
setNo
loadNoLoad labels saved earlier.
saveNoSave the labels as this name.
clearNo
removeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description usefully adds persistence behavior (labels stored in worlds/labels/<file>.json and surviving sessions) and the empty-call listing behavior. However, it says nothing about the clear and remove operations, which are the closest thing to destructive actions here, nor whether 'set' merges with or replaces existing labels.

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 core purpose and the coordinate-substitution rationale are front-loaded, and the payload shape is given inline rather than buried. It is dense but nearly every sentence carries information; the 'touch {name:...}/expect {rect:...}' illustration is slightly verbose but justifies itself by showing the downstream benefit.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with nested objects and no output schema, the description covers the main workflow, the set structure, and persistence well. The gaps are the undocumented clear and remove semantics and the lack of any statement about what the tool returns or whether setting a name overwrites an existing one.

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 50% schema coverage the description carries real weight, and it delivers: it spells out the set payload shape with a concrete example ({NAME: {color:"#f15c5c", peripheral?, region?:{x1,y1,x2,y2}}}) and explains that save/load write to worlds/labels/<file>.json. The clear and remove parameters remain entirely unexplained in both schema and description, which keeps it below 5.

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 description opens with a specific verb and resource ('Name UI elements by colour') and immediately explains the payoff: later calls can reference {name:"DOUBLE"} instead of coordinates. It also differentiates itself from the UI-inspection sibling by noting 'craftos_ui shows the names inline', so an agent can tell the two apart.

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 a concrete workflow ('read a label off one screenshot once, then label it') and a default-mode hint ('Call with nothing to list'), which is enough to know when to reach for it. It stops short of explicitly naming alternatives such as craftos_screenshot or craftos_touch_monitor or stating when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.