Skip to main content
Glama

ubus_list

Lists ubus objects or methods of one allowlisted object, enabling read-only inspection of OpenWrt services without changing router configuration.

Instructions

Read-only: list ubus objects, or methods of one allowlisted object.

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": "ubus_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does lead with 'Read-only', which is the most important safety fact for an agent deciding whether to call it. It also hints at an 'allowlisted' restriction, but does not state what happens for a non-allowlisted object (error vs. empty result) or anything about return shape or permissions.

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?

One sentence, front-loaded with the read-only guarantee, with zero filler. Both operating modes are packed in without redundancy.

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?

For a one-optional-parameter read-only enumeration tool with no output schema and no annotations, this covers the essentials: safety profile, both modes, and the allowlist constraint. Only the failure behavior for a disallowed object and the shape of the returned list remain unstated, which are minor for a tool of this simplicity.

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%, so the description must define the single parameter, and it does: 'object' selects the mode — absent means list all objects, present means list that object's methods. It also adds the constraint that the object must be allowlisted, meaning this single optional parameter is fully understandable from the description alone.

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

Purpose4/5

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

States a specific verb (list) and resource (ubus objects, or methods of one object), and the dual-mode behavior is clear enough that an agent can distinguish it from ubus_call, which presumably invokes a method rather than enumerating. It stops short of naming that sibling explicitly, so differentiation is inferred from the verb rather than stated.

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?

The two modes imply when each applies: omit 'object' to enumerate objects, supply 'object' to enumerate that object's methods. However, there is no explicit guidance about when to prefer this over ubus_call, nor what to do if the desired object is not allowlisted — the usage is implied rather than spelled out.

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