Skip to main content
Glama

Mechanisms

mechanisms

Inspect lever and pressure-plate wiring to see linked bridges, doors, floodgates, and trip conditions. Identify unlinked levers and bridges to avoid confusion in fort controls.

Instructions

The fort's lever/pressure-plate wiring as facts — players (and an AI co-pilot) routinely forget which lever raises which bridge; this makes it legible. levers[] lists every lever with its position, current state (0/1 — the physical orientation, NOT which way any linked gate is), linked_targets (every building its mechanism items connect to — bridge/door/floodgate/hatch/support/weapon-trap — with that target's id, type, position, and a state string (raised/lowered/raising/lowering for a Bridge, closed/open/closing/opening for a Floodgate, closed/open (no transitional state) for a Door/Hatch, retracted/unretracted/retracting/unretracting for a Weapon spike) when the target exposes one), and pending_pull_jobs (PullLever jobs already queued on it, so a caller can see a pull is already in flight before queuing another). pressure_plates[] lists every plate's linked_targets the same way, plus triggers — the configured trip conditions (citizens, creatures with a weight range, a minecart-weight range on track, or water/magma depth ranges). unlinked_levers is the ids of levers wired to nothing (dead ends); unlinked_bridges is bridges no lever or plate in the fort currently operates (must be hand-opened/closed, or are permanently fixed). levers[]/pressure_plates[]/unlinked_levers[]/unlinked_bridges[] are each capped at 200 (id-sorted) with their own *_truncated flag — lever_count/plate_count/bridge_count are always the true totals regardless of truncation. Pairs with the pull_lever actuator. Returns {"error":"no fort loaded"} if no fort is active.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses behavior: it distinguishes physical lever orientation from linked gate state, details the structure of linked_targets and state strings, explains truncation caps and the always-true totals, and includes the error response for no fort. This is exceptionally transparent.

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 description is a dense single paragraph, but every clause delivers necessary behavioral detail. It lacks visual structure like bullet points for scannability, but it front-loads the purpose and has no redundancy.

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

Completeness5/5

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

For a tool with no output schema, no annotations, and zero parameters, the description is exceptionally complete. It covers all major output fields, state semantics, truncation behavior, and error handling, leaving little ambiguity for an AI agent.

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?

The input schema has zero parameters, so the baseline is 4. The description doesn't need to explain parameters and instead focuses on output structure, which is appropriate. No undocumented parameters need compensation.

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 clearly states the tool presents the fort's lever/pressure-plate wiring as factual data, and it explicitly says 'levers[] lists every lever' and 'pressure_plates[] lists every plate's linked_targets'. This distinguishes it from sibling tools by focusing specifically on mechanisms, and it even notes its pairing with pull_lever.

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?

The description provides clear context for when to use the tool—when players/AI forget which lever controls what, and before queueing a pull to check for pending jobs. However, it does not explicitly discuss when not to use it or name alternative tools for other fort information, so it lacks exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexanderolvera/dfhack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server