Skip to main content
Glama

Get native service

k8s_get_native_service
Read-onlyIdempotent

Retrieve one real Kubernetes core/v1 Service by name, optionally within a namespace or named context, to inspect its configuration and status.

Instructions

Get one real Kubernetes (core/v1) Service.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered and the description correctly does not contradict it. What the description fails to add is any behavior beyond that: whether the full object spec/status is returned, what happens on a missing Service or namespace, or authorization requirements. It only restates the read.

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?

A single front-loaded sentence with no filler or redundancy. It earns its place but is at the edge of under-specification rather than optimal concision.

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?

The tool is simple and its annotations carry the safety profile, and no output schema exists so return shape need not be explained. Still, for a fetch tool with two undocumented parameters, the description leaves the agent without the namespace-default behavior or any notion of what the returned object contains, which is thinner than the tool warrants.

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 coverage is only 33%: only the context parameter carries a description. The required name and the namespace (which defaults to null) are undocumented in both schema and description, and the description adds no meaning about case sensitivity, fully-qualified names, or what a null namespace resolves to.

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

Purpose3/5

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

"Get one real Kubernetes (core/v1) Service" states a verb and a resource with an API-group qualifier, so the agent knows a single-object fetch of core/v1 Service. However, the qualifier "real"/"native" is never explained, and nothing tells the agent how this differs from the sibling k8s_list_native_services or cm_k8s_networking_get_k8s_service. The purpose is guessable rather than clearly delineated.

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

Usage Guidelines2/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 mention of the list-vs-get alternative, and no indication of prerequisites such as the resource needing to exist. The agent must infer that this is the single-item counterpart of k8s_list_native_services from the names 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