Skip to main content
Glama

generate_mtls_policy

Generate Istio mTLS PeerAuthentication and AuthorizationPolicy

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": {
      "namespace": "<namespace>",
      "mode": "<mode>"
    },
    "name": "generate_mtls_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesmTLS mode
namespaceYesKubernetes namespace
allowedPrincipalsNoAllowed SPIFFE principals

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It never says whether the result is returned as YAML/manifest or applied to a cluster, whether the AuthorizationPolicy is emitted only when allowedPrincipals is present, or whether generation has any side effects. For a generator with zero annotation coverage this is a meaningful gap.

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 fragment with no padding or repetition. It is efficient, though it reads as a title rather than a sentence, which is why it is not a 5.

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?

With three parameters, no annotations, and no output schema, the definition should clarify the output form and the two-resource relationship. As written, the agent knows what will be generated but not what it receives or what constraints apply.

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%, so every parameter is already documented in the schema and the baseline is 3. The description adds only implicit mapping (mode relates to PeerAuthentication, allowedPrincipals to AuthorizationPolicy) but gives no detail on interactions or defaults, such as the effect of omitting allowedPrincipals.

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?

The description states a specific verb ('Generate') and a specific resource family ('Istio mTLS PeerAuthentication and AuthorizationPolicy'), which separates it from generic policy generators like generate_network_policy. It stops short of explaining the relationship between the two emitted resource kinds, but an agent can tell what it produces.

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 prerequisites (e.g. that Istio must be present or that the namespace must exist), and no mention of when to prefer this over sibling policy generators. The agent must infer the scenario entirely from the tool name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.