Skip to main content
Glama

List servers

list_agents
Read-onlyIdempotent

Lists the servers and Kubernetes clusters in the signed-in Opservo workspace, with each one's agent_id, kind (linux server or kubernetes cluster), hostname, display name and whether it is online. Archived servers are left out.

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_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
errorNoPresent only when the call failed: why, in plain English (unknown server, server from another workspace, not a Kubernetes cluster).
agentsNoServers and clusters in the workspace, most recently seen first.
next_stepNoPresent only when the workspace has no server yet: what to tell the user so they can add one.
add_server_urlNoPresent only when the workspace has no server yet: the page that shows their one-line install command.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / add_server_url
      Added value: +{
      +  "description": "Present only when the workspace has no server yet: the page that shows their one-line install command.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / next_step
      Added value: +{
      +  "description": "Present only when the workspace has no server yet: what to tell the user so they can add one.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "agents": {
      +      "description": "Servers and clusters in the workspace, most recently seen first.",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "agent_id": {
      +            "description": "Server id (UUID) used by every per-server tool.",
      +            "type": "string"
      +          },
      +          "hostname": {
      +            "description": "Hostname reported by the agent.",
      +            "type": "string"
      +          },
      +          "kind": {
      +            "description": "linux server or kubernetes cluster.",
      +            "enum": [
      +              "linux",
      +              "kubernetes"
      +            ],
      +            "type": "string"
      +          },
      +          "log_health": {
      +            "description": "Latest log-summary health: healthy, degraded, critical or unknown.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Display name set in Opservo, when it differs from the hostname.",
      +            "type": "string"
      +          },
      +          "online": {
      +            "description": "Whether a heartbeat arrived recently.",
      +            "type": "boolean"
      +          },
      +          "tags": {
      +            "description": "Tags set in Opservo.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "agent_id",
      +          "hostname",
      +          "kind",
      +          "online"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "error": {
      +      "description": "Present only when the call failed: why, in plain English (unknown server, server from another workspace, not a Kubernetes cluster).",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description adds real value beyond them by naming exactly what comes back per entry (agent_id, kind, hostname, display name, online status) and by disclosing the filtering rule that archived servers are excluded.

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?

A single sentence, front-loaded with the resource and scope, with the returned-field enumeration and the archived-exclusion caveat following in priority order. No sentence is filler and nothing is repeated from the annotations or schema.

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 zero-parameter listing tool with an output schema already documenting the return shape, the description covers everything an agent needs: what is listed, the scope boundary (signed-in workspace), the entry fields, and what is omitted (archived servers). No further detail is required to invoke it correctly.

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 tool takes no parameters, so the baseline is 4. The description correctly implies a no-argument, whole-workspace call with no paging or filter knobs, which is consistent with the empty schema.

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?

The description gives a specific verb and resource ("Lists the servers and Kubernetes clusters") plus the workspace scope, so the tool's identity is unambiguous. It does not explicitly differentiate itself from sibling per-server tools such as get_server_overview, but the enumeration framing makes the contrast reasonably clear.

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 only implied: the agent can infer this is the workspace-wide discovery call for finding agent_ids before calling per-server tools. There is no explicit when-to-use statement, no named alternative, and no conditional exclusions beyond the archived-servers note.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources