Skip to main content
Glama

Create governance policy

create_governance_policy

Create a DRAFT governance policy in the org (activate separately with activate_governance_policy). configuration is policy-type-specific; its masked_fields/pii_entities are validated against the PII registry.

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>",
      "policy_type": "<policy_type>"
    },
    "name": "create_governance_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHuman-readable policy name.
severityNoPolicy severity.
descriptionNoWhat the policy enforces.
policy_typeYesThe kind of policy.
configurationNoPolicy-type-specific settings. data_privacy: masked_fields, masking_strategy and field_masking_strategies (redact | partial | hash | mask), custom_terms {always_redact: [{label, match: phrase|pattern, value}], never_redact: [{value}]}. content_filter: blocked_categories, custom_blocklist and competitors (whole words, Arabic spelling variants equal). access_control: allowed_roles (role NAMES of this org; signed-in members only) and require_mfa (the account's sign-in two-step verification). rate_limiting: requests_per_minute, requests_per_hour. output_validation: max_tokens, regex_pattern (the WHOLE reply must match), json_schema_validation. threat_detection: categories (prompt_injection | data_exfiltration | agent_manipulation), classifier (basic = in-region zero-shot model, model = inline LLM), sensitivity (low | medium | high) and scan_tool_results (also check tool results, default true).
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / configuration / description
      Previous value: -"Policy-type-specific settings. data_privacy: masked_fields, masking_strategy and field_masking_strategies (redact | partial | hash | mask), custom_terms {always_redact: [{label, match: phrase|pattern, value}], never_redact: [{value}]}. content_filter: blocked_categories, custom_blocklist and competitors (whole words, Arabic spelling variants equal). access_control: allowed_roles (role NAMES of this org; signed-in members only) and require_mfa (the account's sign-in two-step verification). rate_limiting: requests_per_minute, requests_per_hour. output_validation: max_tokens, regex_pattern (the WHOLE reply must match), json_schema_validation."New value: +"Policy-type-specific settings. data_privacy: masked_fields, masking_strategy and field_masking_strategies (redact | partial | hash | mask), custom_terms {always_redact: [{label, match: phrase|pattern, value}], never_redact: [{value}]}. content_filter: blocked_categories, custom_blocklist and competitors (whole words, Arabic spelling variants equal). access_control: allowed_roles (role NAMES of this org; signed-in members only) and require_mfa (the account's sign-in two-step verification). rate_limiting: requests_per_minute, requests_per_hour. output_validation: max_tokens, regex_pattern (the WHOLE reply must match), json_schema_validation. threat_detection: categories (prompt_injection | data_exfiltration | agent_manipulation), classifier (basic = in-region zero-shot model, model = inline LLM), sensitivity (low | medium | high) and scan_tool_results (also check tool results, default true)."
    • changedInput schema / properties / policy_type / enum
      Previous value: -[
      -  "content_filter",
      -  "data_privacy",
      -  "access_control",
      -  "output_validation",
      -  "rate_limiting",
      -  "custom"
      -]New value: +[
      +  "content_filter",
      +  "data_privacy",
      +  "access_control",
      +  "output_validation",
      +  "rate_limiting",
      +  "threat_detection",
      +  "custom"
      +]
    • 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. Changed1 schema field changed
    • changedInput schema / properties / configuration / description
      Previous value: -"Policy-type-specific settings (e.g. masked_fields / pii_entities for data_privacy; data_privacy also takes custom_terms {always_redact: [{label, match: phrase|pattern, value}], never_redact: [{value}]})."New value: +"Policy-type-specific settings. data_privacy: masked_fields, masking_strategy and field_masking_strategies (redact | partial | hash | mask), custom_terms {always_redact: [{label, match: phrase|pattern, value}], never_redact: [{value}]}. content_filter: blocked_categories, custom_blocklist and competitors (whole words, Arabic spelling variants equal). access_control: allowed_roles (role NAMES of this org; signed-in members only) and require_mfa (the account's sign-in two-step verification). rate_limiting: requests_per_minute, requests_per_hour. output_validation: max_tokens, regex_pattern (the WHOLE reply must match), json_schema_validation."
  3. Changed1 schema field changed
    • changedInput schema / properties / configuration / description
      Previous value: -"Policy-type-specific settings (e.g. masked_fields / pii_entities for data_privacy)."New value: +"Policy-type-specific settings (e.g. masked_fields / pii_entities for data_privacy; data_privacy also takes custom_terms {always_redact: [{label, match: phrase|pattern, value}], never_redact: [{value}]})."
  4. Changed1 schema field changed
    • addedInput schema / properties / validation_points
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "input",
      +    "output",
      +    "both"
      +  ],
      +  "type": "string"
      +}
  5. Changed7 schema fields changed
    • addedInput schema / properties / configuration
      Added value: +{
      +  "description": "Policy-type-specific settings (e.g. masked_fields / pii_entities for data_privacy).",
      +  "type": "object"
      +}
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "What the policy enforces.",
      +  "type": "string"
      +}
    • addedInput schema / properties / name / description
      Added value: +"Human-readable policy name."
    • addedInput schema / properties / policy_type / description
      Added value: +"The kind of policy."
    • addedInput schema / properties / policy_type / enum
      Added value: +[
      +  "content_filter",
      +  "data_privacy",
      +  "access_control",
      +  "output_validation",
      +  "rate_limiting",
      +  "custom"
      +]
    • addedInput schema / properties / severity
      Added value: +{
      +  "description": "Policy severity.",
      +  "enum": [
      +    "low",
      +    "medium",
      +    "high",
      +    "critical"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name"
      -]New value: +[
      +  "name",
      +  "policy_type"
      +]
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, non-open-world write. The description adds two behavioral facts annotations cannot carry: the created object is a DRAFT rather than an active policy, and `configuration` values (masked_fields/pii_entities) are validated against the PII registry, implying the call can fail on validation. It does not state auth/role requirements or what happens on partial configuration.

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, front-loaded with the action and lifecycle state, then the parameter caveat. No filler, and the sibling reference is placed where it is most needed.

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?

For a 6-parameter create tool with rich nested schema, the description covers purpose, lifecycle, and the key validation trap. No output schema exists and the description does not say what comes back (e.g. an ID needed for the follow-up activation call), which is the one relevant omission.

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 still earns credit by flagging that `configuration` is policy-type-specific (a cross-parameter dependency) and that PII-related fields are checked against an external registry. One inconsistency: it mentions `pii_entities`, which the schema never documents.

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?

Specific verb plus resource plus lifecycle state: 'Create a DRAFT governance policy in the org'. The parenthetical names the sibling (activate_governance_policy) that performs the other half of the lifecycle, so an agent can separate creation from activation without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent to activate_governance_policy when the goal is an active policy, which is the primary confusion risk for a tool whose output is inert. No guidance on create vs create_policy_from_template or vs update_governance_policy, though the draft-state framing implicitly distinguishes creation from modification.

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