Skip to main content
Glama

list_devices

Read-onlyIdempotent

Lists configured CAN device aliases and their open-session state from loaded config without opening hardware, so agents can inspect available devices before sending or receiving frames.

Instructions

List configured device aliases and whether each session is open.

    Read-only inventory of the loaded config (name, channel, capabilities,
    open state). Does not open hardware. Use open_device before send/receive;
    use get_status for one alias's live session details.
    Returns JSON Result with the device list in data.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, but the description adds useful behavior beyond them: it clarifies that this reads the loaded config rather than touching hardware, and that the result is a JSON Result with the list in data. The only gap is any note on cost or freshness of the config snapshot.

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 definition is short and front-loads the core action and scope before the sibling guidance. The final line about the return shape slightly duplicates the output schema, which costs a bit of density but not clarity.

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?

With rich annotations, no parameters, and a dedicated output schema, the description covers everything the agent needs: what is listed, what it does not do, when to prefer siblings, and where the payload lands. No call-relevant information is missing.

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 zero parameters, so there is no parameter meaning to convey; the baseline for a no-arg tool applies. Nothing in the description misleads about inputs.

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 gives a specific verb and resource ("List configured device aliases") plus the state it reports ("whether each session is open"). It also scopes the operation as a "Read-only inventory of the loaded config," which distinguishes it from siblings like open_device and get_status.

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?

It names the alternatives explicitly: use open_device before send/receive and get_status for one alias's live session details. It also states a negative boundary ("Does not open hardware"), so an agent can route correctly without inference.

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