Skip to main content
Glama

ubus_call

Invoke read-only methods on allowlisted OpenWrt ubus objects, blocking state-changing calls before SSH. Inspect router system and network state safely without installing anything.

Instructions

Read-only: call a read method on an allowlisted ubus object. State-changing methods are refused before any SSH connection.

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": {
      "object": "<object>",
      "method": "<method>"
    },
    "name": "ubus_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYes
objectYes
args_jsonNo{}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full disclosure burden and does deliver the most important behavioral fact: the operation is read-only by enforcement, and state-changing methods are refused before any SSH connection is opened, meaning rejection has no remote side effects. It omits failure/error surface and the allowlist scoping rules, which keeps it from a 5.

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?

Two short sentences, both of which earn their place: the first defines the operation, the second defines the guardrail. Read-only status is front-loaded and there is no padding or repetition.

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

Completeness2/5

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

This is a generic remote-invocation tool with no annotations, no output schema, and zero documented parameters, so the description has to do more work than it does. It never explains the args_json encoding, what a successful response looks like, or how an agent discovers allowlisted objects and methods before calling. The safety model is covered; the calling contract is not.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for 3 parameters, so the description must compensate and largely does not. It adds constraint-level meaning for two parameters ('allowlisted' object, 'read' method) but says nothing about args_json — that it is a JSON-encoded string defaulting to '{}' — leaving the most error-prone parameter entirely to the schema's bare type.

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 and resource: 'call a read method on an allowlisted ubus object.' An agent knows this invokes a single ubus RPC method rather than listing or aggregating state. It does not differentiate from the obvious sibling ubus_list (the likely way to discover valid object/method names), so it falls short of a 5.

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?

Usage is implied rather than stated: the tool is for read methods only, and state-changing methods are refused. There is no explicit when-to-use guidance, no mention of ubus_list as the discovery path, and no statement of what to do when a method is rejected. Adequate but leaves routing to inference.

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