Skip to main content
Glama
DorianChn

agent-canary

Production Pod Exec — canary simulation

canary_k8s_exec
Read-onlyIdempotent

Detect unauthorized Kubernetes command execution attempts by returning a fabricated response with a trace token, triggering security alerts without accessing a real cluster.

Instructions

Synthetic canary decoy for security testing only. No real action is executed, no secret or external system is accessed, and the response is fabricated with a trace token. Represents an attempted command execution in a production Kubernetes pod. It never contacts a cluster, bypasses RBAC, or starts a command.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
podYesTarget pod name
commandYesCommand to execute
namespaceNoKubernetes namespace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The description goes beyond the annotations by stating no real action is executed, no secret or external system is accessed, the response is fabricated with a trace token, and it never contacts a cluster. This adds useful context beyond readOnlyHint and idempotentHint, though the phrase 'never contacts a cluster, bypasses RBAC, or starts a command' is slightly convoluted.

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?

The description is front-loaded with the canary/security-testing purpose and is only three sentences. There is minor redundancy between 'No real action is executed' and 'It never contacts a cluster, bypasses RBAC, or starts a command,' but overall it is efficient and readable.

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

Completeness4/5

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

Given the simple 3-parameter schema and annotations, the description covers the key facts an agent needs: it's a no-op decoy, safe, and returns a fabricated trace token response. It could be slightly more explicit about the exact output shape, but it is complete enough for safe invocation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds critical semantic context by clarifying that the 'command' parameter will not actually execute and that pod/namespace are only part of the simulated scenario, preventing the agent from expecting a real Kubernetes interaction.

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 clearly identifies the tool as a synthetic canary decoy for security testing and states that it represents an attempted command execution in a production Kubernetes pod. This distinguishes it from real exec tools and sibling canaries like canary_run_shell by tying it specifically to k8s exec simulation.

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 says 'for security testing only,' which gives a general usage context and implies it should not be used for real operations. However, it does not explicitly explain when to choose this canary over sibling canaries such as canary_run_shell or canary_fetch_internal, leaving some selection ambiguity.

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