Skip to main content
Glama
infra-agent-gateway
by jcortes

deploy_workload

Renders a Kubernetes Deployment from structured intent, checks it against policy, and queues compliant workloads as pending for human approval; deployment occurs only after approval.

Instructions

Deploy a container to Kubernetes from a structured intent. The gateway renders the Deployment and checks it against policy (no privileged containers, cpu and memory limits required, allowed namespaces only). A compliant workload waits as pending_approval until a human runs pnpm approve <planId>; nothing is deployed by this call.

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>",
      "namespace": "<namespace>",
      "image": "<image>",
      "replicas": "<replicas>"
    },
    "name": "deploy_workload"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpuNo
nameYes
imageYes
memoryNo
replicasYes
namespaceYes
privilegedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the specific policy gates (no privileged containers, cpu/memory limits required, allowed namespaces), the resulting pending_approval state, and the critical fact that nothing is actually deployed by this call. It stops short of covering idempotency, error/rejection behavior, or auth requirements.

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?

Two sentences, no filler, and the key constraint (this call does not deploy; a human must approve) is placed where it will be read. Each sentence adds new information.

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

Completeness3/5

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

The policy and lifecycle description is strong for an unannotated mutation tool, and planId is implicitly revealed as an output. But with 7 parameters at 0% schema coverage and no output schema, an agent still lacks guidance on parameter formats (image syntax, name pattern intent, replica bounds) and on what to do when the policy check fails.

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 0%, so the description must compensate. It adds real meaning for cpu, memory, namespace, privileged, and image by tying them to policy rules, but 'name' and 'replicas' get no treatment, and the statement that cpu/memory are 'required' by policy sits uneasily beside a schema that does not list them as required.

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?

States a specific verb (deploy) and resource (container to Kubernetes) and clarifies it operates from a 'structured intent'. The second sentence sharpens the actual behavior — render plus policy check, not an actual apply — which meaningfully separates it from siblings like request_apply.

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 this is the entry point of a plan/approve flow and names the human follow-up (`pnpm approve <planId>`), which is useful routing context. However, it never explicitly contrasts this with siblings such as plan_change or request_apply, so the agent must infer when this tool is the right choice.

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