Skip to main content
Glama

list_roster

List all locomotives in JMRI roster along with their DCC addresses, road names, and models. Use this to find a locomotive's address before controlling it.

Instructions

List every locomotive in JMRI's roster: name, DCC address, road, model.

Use this to discover what locomotives exist and their DCC addresses before calling acquire_throttle/set_speed/etc. — those tools take a DCC address, not a name, and this is currently the only way to find out which address belongs to which named loco (e.g. the user says "start the Autorail" but set_speed needs address=4). road/model can be empty strings if the user never filled them in in JMRI — that's normal, not an error. No side effects.

This does NOT resolve a name to an address for you automatically — use find_locomotive for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description bears full responsibility. It declares no side effects, explains that empty strings for road/model are normal, and clarifies that the tool lists all locomotives. Slightly lacking in potential performance/scalability notes, but adequate for a read-only list operation.

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

Conciseness5/5

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

The description is front-loaded with the core purpose, followed by usage context, edge case handling, and explicit exclusion. Every sentence adds unique value without redundancy, making it well-structured and concise for modern LLM context windows.

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?

Given zero parameters and no output schema, the description fully informs what the tool returns (name, DCC address, road, model) and handles edge cases (empty strings). It also explains the tool's role in the broader workflow with sibling tools, making the context complete.

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?

There are no parameters (0 parameters, 100% schema coverage). Baseline for 0 params is 4. The description adds value by explaining the contents of the list, which goes beyond the schema.

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 verb 'list' and the resource 'every locomotive in JMRI's roster', listing the fields returned. It distinguishes itself from the sibling tool 'find_locomotive' by noting that this tool provides a full list while the sibling resolves a name to an address.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool (before acquire_throttle/set_speed, which require DCC addresses) and when not to (automatic name-to-address resolution, for which it directs to find_locomotive). Provides concrete usage context.

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/HO44-PROJECT/MrJ-JMRI-MCP'

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