Skip to main content
Glama

get_tool_layer

Read the draw layer for a specified map tool and return the valid layer range, including extra layers, so you can place elements at the correct stacking depth.

Instructions

Read which layer a tool draws on, and the range of layers that exist.

Layers stack: lower numbers sit under higher ones. Values run from -500 to
900 in steps of 100 (`min`, `max` and `step` in the response), plus
`extra_layers` such as the Unofficial Patch's 1100 when present. 100 is the
default for every tool except MaterialBrush, which starts at -400 so floors
sit under everything.

tool: e.g. "ObjectTool", "PathTool", "PatternShapeTool". A tool without
    layers is refused, and the error lists the ones that have them.

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": {
      "tool": "<tool>"
    },
    "name": "get_tool_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the domain model (lower numbers stack under higher), the value range with step, the presence of extra_layers such as the Unofficial Patch's 1100, and the MaterialBrush default exception. The remaining gap is return format specifics, since min/max/step keys are named but not structurally described.

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?

Purpose is front-loaded in the first sentence, and the domain context on ranges justifies its length because the numeric conventions are unobvious. The default/MaterialBrush sentence is slightly dense but still earns its place by preventing a wrong assumption about layer 100.

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?

No output schema exists, so the description must cover the response, and it names the relevant keys (min, max, step, extra_layers) plus the default layer per tool. What an agent needs to call and interpret this is present, with only minor gaps around the exact error/response shape.

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?

Schema coverage is 0% for the single 'tool' parameter, but the description compensates with concrete example values ('ObjectTool', 'PathTool', 'PatternShapeTool') and explains the failure behavior when a tool lacks layers. That is enough to construct valid input without guessing.

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?

States a specific verb and resource ('Read which layer a tool draws on') plus a second capability ('and the range of layers that exist'), which the verb 'Read' distinguishes from the sibling set_tool_layer. An agent knows exactly what this returns without opening any 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?

It gives a useful precondition — a tool without layers is refused and the error lists the tools that have layers — which tells the agent how to recover from a bad input. However, it never states explicitly when to reach for this versus set_tool_layer or how to use the retrieved layer number.

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

Deploy Server

Other Tools