Skip to main content
Glama

Service logs

k8s_service_logs

Retrieves Kubernetes service logs by service ID, with optional tail count and live follow, to help diagnose workload behavior.

Instructions

Invoke the service_logs operation.

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": {
      "service_id": "<service_id>"
    },
    "name": "k8s_service_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNo
followNo
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
service_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.3/5.0
Behavior1/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, and the description adds nothing beyond them — no mention of streaming behavior, blocking semantics, auth requirements, or truncation. With annotations present the bar is lower, but zero added context means the description contributes no behavioral value, and an agent gets no help reasoning about why a log-read tool is marked non-read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is short but contains no information; this is under-specification rather than conciseness. There is no front-loaded statement of what log retrieval actually does.

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

Completeness1/5

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

A four-parameter log-fetching tool with no output schema and only 25% schema coverage needs the description to explain return values, streaming, and parameter interactions. The description supplies none of that, leaving the definition unusable for correct invocation beyond guessing.

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

Parameters1/5

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

Schema description coverage is only 25% (just the context parameter), so the description is obligated to compensate, yet it says nothing about service_id, tail, or follow. The streaming implications of follow=true and the default 100-line tail are left entirely unexplained.

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

Purpose2/5

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

"Invoke the service_logs operation" only restates the tool name in verb+noun form; it never says the tool fetches logs for a Kubernetes service. It gives no scope, no return-shape hint, and nothing to distinguish it from the many sibling log tools such as k8s_read_pod_logs or k8s_get_container_logs.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no condition for choosing this over pod-level or container-level log siblings, and no exclusions or prerequisites. An agent must infer everything from the name alone.

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

Deploy Server

Other Tools