Skip to main content
Glama

k8s_generate_service

Generate a Kubernetes Service manifest to expose a deployment by specifying the app name, port, and optional service type.

Instructions

Generate a Kubernetes Service manifest to expose a deployment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYesService port
api_keyNoAPI key for authentication
app_nameYesName of the application to expose
target_portNoContainer target port
service_typeNoService type
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states that a manifest is generated; it does not clarify whether the tool returns YAML, writes to a cluster, applies defaults, or how api_key is used for authentication.

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?

The description is a single, front-loaded sentence with no filler or redundancy. Every word contributes to stating the action and the resource.

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?

Given the tool has 5 parameters, no annotations, and no output schema, the description is too thin. It does not explain output format, default service_type, the relationship between port and target_port, or the role of api_key, leaving important invocation details unspecified.

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 description coverage is 100%, and each parameter (port, target_port, service_type, app_name, api_key) already has a description. The description adds no parameter-level meaning beyond what the schema provides, so the baseline score of 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?

The description uses a specific verb ('Generate') and a precise resource ('Kubernetes Service manifest'), and the phrase 'to expose a deployment' clarifies its purpose. This clearly distinguishes it from sibling tools like k8s_generate_deployment and k8s_generate_ingress.

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?

The description implies the usage context: generate a Service when you need to expose a deployment. However, it does not mention alternatives or exclusion conditions, such as when to use an Ingress instead of a Service, so the guidance remains implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server