Skip to main content
Glama

Create policy from template

create_policy_from_template

Create a DRAFT policy from a template. The template only sets the starting point: validation_points and configuration_overrides change this policy, never the template.

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

Input Schema

NameRequiredDescriptionDefault
nameNoPolicy name (defaults to the template's).
descriptionNoPolicy description.
template_idYesId from list_policy_templates.
validation_pointsNoWhich side the policy checks: input = messages users send, output = replies the agent writes, both (default when unset). Only for data_privacy, content_filter, output_validation, threat_detection, custom.
configuration_overridesNoConfiguration keys to change for this policy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / validation_points / description
      Previous value: -"Which side the policy checks: input = messages users send, output = replies the agent writes, both (default when unset). Only for data_privacy, content_filter, output_validation, custom."New value: +"Which side the policy checks: input = messages users send, output = replies the agent writes, both (default when unset). Only for data_privacy, content_filter, output_validation, threat_detection, custom."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write/read split is covered. The description adds genuinely new behavioral context: the output is a DRAFT (not an active policy) and overrides apply to the new policy only, never mutating the source template. It stops short of saying what happens on invalid template_id or whether a policy id is returned.

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 tight sentences with zero filler; the DRAFT qualifier and the scoping rule are both front-loaded where an agent will read them first.

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?

With 5 parameters, one required, full schema coverage, a nested object, and no output schema, the description covers the two facts most likely to trip an agent: the result is a draft and overrides do not touch the template. Minor gaps remain around error behavior and post-creation workflow (e.g., activating the draft), but nothing essential is missing.

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, but the description adds real meaning beyond the schema by scoping validation_points and configuration_overrides to the created policy rather than the template. That resolves the main ambiguity an agent would have about configuration_overrides, which the schema describes only as "Configuration keys to change for this policy."

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 and resource ("Create a DRAFT policy") plus the source ("from a template"), which distinguishes it from create_from_blueprint and create_governance_policy reasonably well. It does not explicitly name those siblings, so the differentiation relies on the agent inferring from the qualifier "template."

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?

The description says nothing about when to choose this over create_governance_policy or create_from_blueprint, nor any prerequisites. The only routing hint (template_id comes from list_policy_templates) lives in the input schema rather than the description, leaving usage to inference.

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.

Resources