Skip to main content
Glama

Get service pods

get_service_pods
Read-onlyIdempotent

Pods of one service, or of the WHOLE ENVIRONMENT without serviceName: phase, ready, restart count, node, age, images, and the most recent container termination (reason such as OOMKilled, exit code, when) if there was one. READ-ONLY: takes a snapshot from the cluster, changes nothing. Starts an agent command and polls for it, up to about 10 seconds (roughly one request per second); a repeat call for the SAME environment+service within a few seconds reuses the snapshot already in flight instead of asking the agent again. If the cluster has not answered within the window, the response still comes back, usually still PENDING: call again rather than retry in a tight loop. 409: the CLUSTER AGENT is older than 0.3.0 (agent_outdated: body {error, message, capability, requiredVersion, agentVersion})

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": {
      "environmentId": "<environmentId>"
    },
    "name": "get_service_pods"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceNameNoOnly this service's pods; omitted means every pod of the environment
environmentIdYesEnvironment UUID (from list_environments)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds substantial context: it is a cluster snapshot, it kicks off an agent command and polls for ~10s at ~1 req/s, in-flight snapshots are deduplicated, slow clusters return PENDING, and 409 signals an outdated cluster agent with the exact error body fields.

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?

Front-loaded with scope and return fields, then timing and error semantics; nearly every clause carries call-relevant information. The trailing 409 body field list is dense but is the only marginally over-specified part.

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 no output schema, the description compensates by enumerating the returned fields including the container termination reason/exit code, and it explains latency, polling, caching, and the 409 failure mode. Nothing an agent needs to call this correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters (serviceName, environmentId) are already documented in the schema, including the omit-means-all-pods behavior. The description reinforces the scope distinction in prose but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States the specific resource (pods of a service) and an explicit dual scope ('or of the WHOLE ENVIRONMENT without serviceName'), then enumerates the returned fields (phase, ready, restart count, node, age, images, termination). An agent can tell this apart from get_service_logs or get_service_operation purely from the sentence.

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

Usage Guidelines4/5

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

Gives clear operational guidance: omit serviceName to sweep the whole environment, repeat calls within a few seconds reuse the in-flight snapshot, and on a PENDING result call again rather than looping tightly. It does not name alternative tools for related needs (logs, operations), which keeps it below a 5.

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.