Skip to main content
Glama
Sauerbraten MCP
by pastukhov

texture_apply

Apply a texture to a single oriented face or all six faces of an aligned selection during live Sauerbraten level editing.

Instructions

Set exactly one orientation (0..5) or all six faces of an aligned selection.

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": {
      "request_id": "<request_id>",
      "map_epoch": "<map_epoch>",
      "expected_revision": "<expected_revision>",
      "selection": "<selection>",
      "texture_ref": "<texture_ref>",
      "faces": "<faces>"
    },
    "name": "texture_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
facesYes
map_epochYes
selectionYes
request_idYes
texture_refYes
expected_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already establish that this is a non-read-only, non-idempotent, non-destructive, closed-world mutation. The description adds only the face-selection behavior; it says nothing about expected_revision conflicts, texture_ref validity, request_id semantics, whether application is atomic, or what happens on failure.

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 single sentence is front-loaded and free of filler, and the face options are compactly expressed. Its brevity becomes under-specification for a six-parameter mutation, so the structure is efficient but not complete.

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

Completeness2/5

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

For a mutation tool with six required parameters, no output schema, and zero parameter descriptions, the definition provides only face-selection information. Crucial operational context for concurrency tokens, texture references, and selection semantics is missing.

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

Parameters2/5

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

Schema description coverage is 0% across six required parameters. The description clarifies the faces choice and implies that selection must be aligned, but it leaves texture_ref, map_epoch, expected_revision, request_id, and the nested selection fields entirely unexplained beyond their types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies a 'Set' operation over orientations or all six faces of a selection, so the basic action is inferable. However, it never states that this applies a texture, nor does it explicitly distinguish the operation from siblings such as geometry_face_set or material_apply.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use texture_apply versus material_apply, geometry_face_set, or texture_catalog. The phrase 'aligned selection' hints at a precondition but does not explain when this tool is the correct choice.

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