Skip to main content
Glama

Create a Hive AI policy

create_ai_policy
Idempotent

Create one Hive AI policy. A new policy is not enabled, so nothing answers from it until an owner or admin enables it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesWhat to call this policy.
toneNoHow it should sound.
goalEventNoOptional goal event, or null to clear it.
languagesNoThe languages it may answer in.
policyTypeYesWhat kind of policy it is.
instructionNoWhat the AI is told to do.
outputSchemaNoThe policy output schema stored by Hive.
piiRedactionNoRedact personal information before evaluation.
allowedTopicsNoWhat it may talk about.
blockedTopicsNoWhat it must not.
retentionDaysNoStored result retention, from 0 to 3650 days.
fallbackActionNoWhat it does when it is not sure.
idempotencyKeyYesA caller-generated unique key (8-200 characters). Reuse it only when retrying this exact write.
injectionDefenseNoEnable the native injection checks.
requireCitationsNoMake it cite an approved source.
knowledgeSourceIdsNoExact knowledge source ids to use; an empty list restores the native default.
confidenceThresholdNoHow sure it must be, from 0 to 1.
providerConnectionIdNoSaved provider connection id, or null for the workspace default.
requireHumanApprovalNoMake a person approve each answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / goalEvent
      Added value: +{
      +  "description": "Optional goal event, or null to clear it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / injectionDefense
      Added value: +{
      +  "description": "Enable the native injection checks.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / knowledgeSourceIds
      Added value: +{
      +  "description": "Exact knowledge source ids to use; an empty list restores the native default.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / outputSchema
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "The policy output schema stored by Hive.",
      +  "type": "object"
      +}
    • addedInput schema / properties / piiRedaction
      Added value: +{
      +  "description": "Redact personal information before evaluation.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / providerConnectionId
      Added value: +{
      +  "description": "Saved provider connection id, or null for the workspace default.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / retentionDays
      Added value: +{
      +  "description": "Stored result retention, from 0 to 3650 days.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "idempotencyKey"
      -]New value: +[
      +  "name",
      +  "policyType",
      +  "idempotencyKey"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources