Skip to main content
Glama

Mnemom — Trust Ratings for AI Agents

put_protection_by_agent

DestructiveIdempotent

Publish or replace an agent's protection card (screening mode, thresholds, trusted sources, protected assets). When connected by OAuth sign-in (e.g. ChatGPT), each publish first needs a one-time grant from the same signed-in account: open https://www.mnemom.ai/authorize-protection?agent_id=, approve, then publish within 15 minutes (each grant covers one publish). Required: agent_id, card_version, mode, thresholds, screen_surfaces and trusted_sources (protected_surface is optional); mode enforce also needs Safe House on the organization. Use preview_compose_protection_by_agent to dry-run without a grant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesScreening mode for the protection pipeline. Required. `off` disables screening; `observe` records only; `nudge` warns; `enforce` blocks.
agent_idYesThe agent this card belongs to (e.g. `smolt-abc123`). Identifier only — never place an API key, a secret, an email address, or any other personal data in this field.
thresholdsYesRisk-score cutoffs, each in [0, 1] and ordered warn ≤ quarantine ≤ block. Required. Send the full set: a publish replaces the agent's current card rather than patching it.
card_versionYesCard schema version. REQUIRED by the server-side validator. Current canonical value: `protection/2026-04-26`.
screen_surfacesYesWhich traffic surfaces are screened. Required, with all four flags set.
trusted_sourcesYesSources exempt from screening. Required, with all three lists present; send empty lists to trust nothing extra. Enumerate specific hosts — wildcards are rejected, and a server-side deny-list (public LLM/DNS endpoints, 0.0.0.0/0, ::/0, link-local, multicast) is always applied.
protected_surfaceNoThe assets and operations this agent must protect. Omit to accept the composed default (empty surface).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesAlways true on successful storage (errors return non-200 status).
card_idYesCard ID (pc-{uuid}) of the stored protection card.
issued_atYesISO 8601 timestamp when the card was issued/stored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / screen_surfaces / description
      Previous value: -"Which traffic surfaces are screened. Omit to accept the composed defaults."New value: +"Which traffic surfaces are screened. Required, with all four flags set."
    • addedInput schema / properties / screen_surfaces / required
      Added value: +[
      +  "incoming",
      +  "outgoing",
      +  "tool_calls",
      +  "tool_responses"
      +]
    • changedInput schema / properties / thresholds / description
      Previous value: -"Risk-score cutoffs, each in [0, 1] and ordered warn ≤ quarantine ≤ block. All three are required if this object is sent at all — omit the whole object to accept the composed defaults."New value: +"Risk-score cutoffs, each in [0, 1] and ordered warn ≤ quarantine ≤ block. Required. Send the full set: a publish replaces the agent's current card rather than patching it."
    • changedInput schema / properties / trusted_sources / description
      Previous value: -"Sources exempt from screening. Enumerate specific hosts — wildcards are rejected, and a server-side deny-list (public LLM/DNS endpoints, 0.0.0.0/0, ::/0, link-local, multicast) is always applied."New value: +"Sources exempt from screening. Required, with all three lists present; send empty lists to trust nothing extra. Enumerate specific hosts — wildcards are rejected, and a server-side deny-list (public LLM/DNS endpoints, 0.0.0.0/0, ::/0, link-local, multicast) is always applied."
    • addedInput schema / properties / trusted_sources / required
      Added value: +[
      +  "domains",
      +  "agent_ids",
      +  "ip_ranges"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "agent_id",
      -  "card_version",
      -  "mode"
      -]New value: +[
      +  "agent_id",
      +  "card_version",
      +  "mode",
      +  "thresholds",
      +  "screen_surfaces",
      +  "trusted_sources"
      +]
  2. Changed34 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "CompositionMetadata": {
      -    "description": "System-managed block describing which scope sources merged into the canonical card. Only returned when `?include_composition=true`.",
      -    "properties": {
      -      "canonical_id": {
      -        "type": "string"
      -      },
      -      "composed_at": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "exemptions_applied": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "scopes_applied": {
      -        "items": {
      -          "properties": {
      -            "card_id": {
      -              "type": "string"
      -            },
      -            "scope": {
      -              "description": "`platform`, `org:<id>`, or `agent:<id>`.",
      -              "type": "string"
      -            },
      -            "template_version": {
      -              "type": "integer"
      -            },
      -            "version": {
      -              "type": "integer"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "source_card_id": {
      -        "type": "string"
      -      },
      -      "source_policy_id": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "UnifiedProtectionCard": {
      -    "description": "Unified protection card (ADR-037). Safe House thresholds + trusted-source policy for a single agent. Shape matches src/composition/types.ts::UnifiedProtectionCard (canonical) and what the runtime validator at src/composition/validate.ts accepts. The customer-facing docs at /concepts/protection-card and /specifications/protection-card-schema document this same shape.",
      -    "properties": {
      -      "_composition": {
      -        "$ref": "#/$defs/CompositionMetadata"
      -      },
      -      "agent_id": {
      -        "type": "string"
      -      },
      -      "card_id": {
      -        "type": "string"
      -      },
      -      "card_version": {
      -        "type": "string"
      -      },
      -      "content_hash": {
      -        "description": "Response-only: content hash of the composed card (`sha256:<hex>`), injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "format": "date-time",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "extensions": {
      -        "additionalProperties": true,
      -        "description": "Free-form extension slot for non-canonical fields. Ignored by the composer; preserved on read for tooling that needs an audit-tail metadata bag.",
      -        "type": "object"
      -      },
      -      "issued_at": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "mode": {
      -        "description": "Strictest-wins composition: enforce > nudge > observe > off.",
      -        "enum": [
      -          "off",
      -          "observe",
      -          "nudge",
      -          "enforce"
      -        ],
      -        "type": "string"
      -      },
      -      "protected_surface": {
      -        "description": "Org-declared protected surface policy (MNE-830). Strengthen-only UNION across platform → org → team → agent: each scope may add entries; none may remove. The composer always emits this block; callers omit it to inherit the composed floor. See ADR-037 §protected_surface.",
      -        "properties": {
      -          "assets": {
      -            "description": "Protected assets. Intrinsic identity = `${kind}:${selector}` (normalized). Composer merges by identity, keeping the strictest entry per scope.",
      -            "items": {
      -              "properties": {
      -                "kind": {
      -                  "description": "Asset kind (e.g. `row`, `field`, `resource`, `table`).",
      -                  "type": "string"
      -                },
      -                "label": {
      -                  "description": "Human-facing display label (optional).",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why this asset is protected (optional).",
      -                  "type": "string"
      -                },
      -                "selector": {
      -                  "description": "Asset selector (e.g. `customer:critical-0000`, `replica_dsn`).",
      -                  "type": "string"
      -                },
      -                "source_scope": {
      -                  "description": "Composer-assigned provenance (`platform`, `org:<id>`, `team:<id>`, `agent:<id>`). Server-assigned — do not send on a PUT.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "selector"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "escalation_required": {
      -            "description": "Operations that require escalation before proceeding. Same intrinsic-identity + union rules as forbidden_operations (minus severity).",
      -            "items": {
      -              "properties": {
      -                "applies_to": {
      -                  "description": "Asset identities this escalation applies to. Empty/absent = GLOBAL.",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "pattern": {
      -                  "description": "Operation pattern requiring escalation.",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why escalation is required (optional).",
      -                  "type": "string"
      -                },
      -                "source_scope": {
      -                  "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "pattern"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "forbidden_operations": {
      -            "description": "Operations that are unconditionally forbidden. Intrinsic identity = normalized `pattern`. Composer unions across scopes; on identity collision, severity → max.",
      -            "items": {
      -              "properties": {
      -                "applies_to": {
      -                  "description": "Asset identities (`${kind}:${selector}`) this operation applies to. Empty/absent means GLOBAL.",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "pattern": {
      -                  "description": "Operation pattern (e.g. `TRUNCATE`, `unscoped UPDATE/DELETE`, `exfiltrate:pii`).",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why this operation is forbidden (optional).",
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "description": "Severity level. Composer merges to strictest across scopes.",
      -                  "enum": [
      -                    "low",
      -                    "medium",
      -                    "high",
      -                    "critical"
      -                  ],
      -                  "type": "string"
      -                },
      -                "source_scope": {
      -                  "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "pattern"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "review": {
      -        "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      -        "properties": {
      -          "enabled": {
      -            "type": "boolean"
      -          },
      -          "gate_on": {
      -            "properties": {
      -              "incoming": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              },
      -              "integrity": {
      -                "enum": [
      -                  "off",
      -                  "review_needed",
      -                  "boundary_violation"
      -                ],
      -                "type": "string"
      -              },
      -              "outgoing": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              },
      -              "tool_calls": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              },
      -              "tool_responses": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "notify": {
      -            "properties": {
      -              "sse": {
      -                "type": "boolean"
      -              },
      -              "webhooks": {
      -                "type": "boolean"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "on_timeout": {
      -            "enum": [
      -              "reject",
      -              "release"
      -            ],
      -            "type": "string"
      -          },
      -          "quarantine_notice": {
      -            "maxLength": 2000,
      -            "type": "string"
      -          },
      -          "reviewer": {
      -            "properties": {
      -              "endpoint_url": {
      -                "format": "uri",
      -                "type": "string"
      -              },
      -              "kind": {
      -                "enum": [
      -                  "builtin_opus",
      -                  "endpoint"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          "sla_seconds": {
      -            "minimum": 1,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "enabled"
      -        ],
      -        "type": "object"
      -      },
      -      "screen_surfaces": {
      -        "description": "Which request surfaces Safe House inspects. Composed across scopes by OR-per-field (any scope requiring inspection wins).",
      -        "properties": {
      -          "incoming": {
      -            "description": "The user/principal prompt entering the agent.",
      -            "type": "boolean"
      -          },
      -          "outgoing": {
      -            "description": "The agent's response leaving the agent.",
      -            "type": "boolean"
      -          },
      -          "tool_calls": {
      -            "description": "Tool-use invocations the agent makes.",
      -            "type": "boolean"
      -          },
      -          "tool_responses": {
      -            "description": "Responses to tool calls returning to the agent.",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "incoming",
      -          "outgoing",
      -          "tool_calls",
      -          "tool_responses"
      -        ],
      -        "type": "object"
      -      },
      -      "thresholds": {
      -        "description": "Score bands. Must satisfy warn <= quarantine <= block; each value in [0, 1].",
      -        "properties": {
      -          "block": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "quarantine": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "warn": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "warn",
      -          "quarantine",
      -          "block"
      -        ],
      -        "type": "object"
      -      },
      -      "trusted_sources": {
      -        "description": "Sources for which detectors short-circuit (each match logged in the trace). Composed as platform->agent intersection (compliance ceiling) with org+agent union inside that ceiling — an agent cannot widen trust beyond what the platform allows.",
      -        "properties": {
      -          "agent_ids": {
      -            "description": "Mnemom agent IDs (mnm-* / smolt-* prefixed).",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "domains": {
      -            "description": "DNS names or host:port entries.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "ip_ranges": {
      -            "description": "IPv4 or IPv6 CIDR ranges.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "domains",
      -          "agent_ids",
      -          "ip_ranges"
      -        ],
      -        "type": "object"
      -      },
      -      "version": {
      -        "description": "Response-only: monotonic card version, injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "card_version",
      -      "agent_id",
      -      "mode",
      -      "thresholds",
      -      "screen_surfaces",
      -      "trusted_sources"
      -    ],
      -    "type": "object"
      -  }
      -}
    • changedInput schema / properties / agent_id / description
      Previous value: -"Agent identifier (e.g. smolt-abc123)"New value: +"The agent this card belongs to (e.g. `smolt-abc123`). Identifier only — never place an API key, a secret, an email address, or any other personal data in this field."
    • addedInput schema / properties / agent_id / maxLength
      Added value: +64
    • addedInput schema / properties / agent_id / minLength
      Added value: +3
    • addedInput schema / properties / agent_id / pattern
      Added value: +"^[A-Za-z0-9][A-Za-z0-9_-]{1,62}[A-Za-z0-9]$"
    • removedInput schema / properties / body
      Removed value: -{
      -  "description": "Unified protection card (ADR-037). Safe House thresholds + trusted-source policy for a single agent. Shape matches src/composition/types.ts::UnifiedProtectionCard (canonical) and what the runtime validator at src/composition/validate.ts accepts. The customer-facing docs at /concepts/protection-card and /specifications/protection-card-schema document this same shape.",
      -  "properties": {
      -    "_composition": {
      -      "$ref": "#/$defs/CompositionMetadata"
      -    },
      -    "agent_id": {
      -      "type": "string"
      -    },
      -    "card_id": {
      -      "type": "string"
      -    },
      -    "card_version": {
      -      "type": "string"
      -    },
      -    "content_hash": {
      -      "description": "Response-only: content hash of the composed card (`sha256:<hex>`), injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -      "type": "string"
      -    },
      -    "expires_at": {
      -      "format": "date-time",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "extensions": {
      -      "additionalProperties": true,
      -      "description": "Free-form extension slot for non-canonical fields. Ignored by the composer; preserved on read for tooling that needs an audit-tail metadata bag.",
      -      "type": "object"
      -    },
      -    "issued_at": {
      -      "format": "date-time",
      -      "type": "string"
      -    },
      -    "mode": {
      -      "description": "Strictest-wins composition: enforce > nudge > observe > off.",
      -      "enum": [
      -        "off",
      -        "observe",
      -        "nudge",
      -        "enforce"
      -      ],
      -      "type": "string"
      -    },
      -    "protected_surface": {
      -      "description": "Org-declared protected surface policy (MNE-830). Strengthen-only UNION across platform → org → team → agent: each scope may add entries; none may remove. The composer always emits this block; callers omit it to inherit the composed floor. See ADR-037 §protected_surface.",
      -      "properties": {
      -        "assets": {
      -          "description": "Protected assets. Intrinsic identity = `${kind}:${selector}` (normalized). Composer merges by identity, keeping the strictest entry per scope.",
      -          "items": {
      -            "properties": {
      -              "kind": {
      -                "description": "Asset kind (e.g. `row`, `field`, `resource`, `table`).",
      -                "type": "string"
      -              },
      -              "label": {
      -                "description": "Human-facing display label (optional).",
      -                "type": "string"
      -              },
      -              "reason": {
      -                "description": "Why this asset is protected (optional).",
      -                "type": "string"
      -              },
      -              "selector": {
      -                "description": "Asset selector (e.g. `customer:critical-0000`, `replica_dsn`).",
      -                "type": "string"
      -              },
      -              "source_scope": {
      -                "description": "Composer-assigned provenance (`platform`, `org:<id>`, `team:<id>`, `agent:<id>`). Server-assigned — do not send on a PUT.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "selector"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "escalation_required": {
      -          "description": "Operations that require escalation before proceeding. Same intrinsic-identity + union rules as forbidden_operations (minus severity).",
      -          "items": {
      -            "properties": {
      -              "applies_to": {
      -                "description": "Asset identities this escalation applies to. Empty/absent = GLOBAL.",
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "pattern": {
      -                "description": "Operation pattern requiring escalation.",
      -                "type": "string"
      -              },
      -              "reason": {
      -                "description": "Why escalation is required (optional).",
      -                "type": "string"
      -              },
      -              "source_scope": {
      -                "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "pattern"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "forbidden_operations": {
      -          "description": "Operations that are unconditionally forbidden. Intrinsic identity = normalized `pattern`. Composer unions across scopes; on identity collision, severity → max.",
      -          "items": {
      -            "properties": {
      -              "applies_to": {
      -                "description": "Asset identities (`${kind}:${selector}`) this operation applies to. Empty/absent means GLOBAL.",
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "pattern": {
      -                "description": "Operation pattern (e.g. `TRUNCATE`, `unscoped UPDATE/DELETE`, `exfiltrate:pii`).",
      -                "type": "string"
      -              },
      -              "reason": {
      -                "description": "Why this operation is forbidden (optional).",
      -                "type": "string"
      -              },
      -              "severity": {
      -                "description": "Severity level. Composer merges to strictest across scopes.",
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high",
      -                  "critical"
      -                ],
      -                "type": "string"
      -              },
      -              "source_scope": {
      -                "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "pattern"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "review": {
      -      "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      -      "properties": {
      -        "enabled": {
      -          "type": "boolean"
      -        },
      -        "gate_on": {
      -          "properties": {
      -            "incoming": {
      -              "enum": [
      -                "off",
      -                "warn",
      -                "quarantine",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "integrity": {
      -              "enum": [
      -                "off",
      -                "review_needed",
      -                "boundary_violation"
      -              ],
      -              "type": "string"
      -            },
      -            "outgoing": {
      -              "enum": [
      -                "off",
      -                "warn",
      -                "quarantine",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "tool_calls": {
      -              "enum": [
      -                "off",
      -                "warn",
      -                "quarantine",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "tool_responses": {
      -              "enum": [
      -                "off",
      -                "warn",
      -                "quarantine",
      -                "block"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "notify": {
      -          "properties": {
      -            "sse": {
      -              "type": "boolean"
      -            },
      -            "webhooks": {
      -              "type": "boolean"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "on_timeout": {
      -          "enum": [
      -            "reject",
      -            "release"
      -          ],
      -          "type": "string"
      -        },
      -        "quarantine_notice": {
      -          "maxLength": 2000,
      -          "type": "string"
      -        },
      -        "reviewer": {
      -          "properties": {
      -            "endpoint_url": {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            "kind": {
      -              "enum": [
      -                "builtin_opus",
      -                "endpoint"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "kind"
      -          ],
      -          "type": "object"
      -        },
      -        "sla_seconds": {
      -          "minimum": 1,
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "enabled"
      -      ],
      -      "type": "object"
      -    },
      -    "screen_surfaces": {
      -      "description": "Which request surfaces Safe House inspects. Composed across scopes by OR-per-field (any scope requiring inspection wins).",
      -      "properties": {
      -        "incoming": {
      -          "description": "The user/principal prompt entering the agent.",
      -          "type": "boolean"
      -        },
      -        "outgoing": {
      -          "description": "The agent's response leaving the agent.",
      -          "type": "boolean"
      -        },
      -        "tool_calls": {
      -          "description": "Tool-use invocations the agent makes.",
      -          "type": "boolean"
      -        },
      -        "tool_responses": {
      -          "description": "Responses to tool calls returning to the agent.",
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "incoming",
      -        "outgoing",
      -        "tool_calls",
      -        "tool_responses"
      -      ],
      -      "type": "object"
      -    },
      -    "thresholds": {
      -      "description": "Score bands. Must satisfy warn <= quarantine <= block; each value in [0, 1].",
      -      "properties": {
      -        "block": {
      -          "maximum": 1,
      -          "minimum": 0,
      -          "type": "number"
      -        },
      -        "quarantine": {
      -          "maximum": 1,
      -          "minimum": 0,
      -          "type": "number"
      -        },
      -        "warn": {
      -          "maximum": 1,
      -          "minimum": 0,
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "warn",
      -        "quarantine",
      -        "block"
      -      ],
      -      "type": "object"
      -    },
      -    "trusted_sources": {
      -      "description": "Sources for which detectors short-circuit (each match logged in the trace). Composed as platform->agent intersection (compliance ceiling) with org+agent union inside that ceiling — an agent cannot widen trust beyond what the platform allows.",
      -      "properties": {
      -        "agent_ids": {
      -          "description": "Mnemom agent IDs (mnm-* / smolt-* prefixed).",
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "domains": {
      -          "description": "DNS names or host:port entries.",
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "ip_ranges": {
      -          "description": "IPv4 or IPv6 CIDR ranges.",
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "domains",
      -        "agent_ids",
      -        "ip_ranges"
      -      ],
      -      "type": "object"
      -    },
      -    "version": {
      -      "description": "Response-only: monotonic card version, injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "card_version",
      -    "agent_id",
      -    "mode",
      -    "thresholds",
      -    "screen_surfaces",
      -    "trusted_sources"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / properties / card_version
      Added value: +{
      +  "description": "Card schema version. REQUIRED by the server-side validator. Current canonical value: `protection/2026-04-26`.",
      +  "maxLength": 40,
      +  "minLength": 3,
      +  "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{1,38}[A-Za-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "Screening mode for the protection pipeline. Required. `off` disables screening; `observe` records only; `nudge` warns; `enforce` blocks.",
      +  "enum": [
      +    "off",
      +    "observe",
      +    "nudge",
      +    "enforce"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / protected_surface
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The assets and operations this agent must protect. Omit to accept the composed default (empty surface).",
      +  "properties": {
      +    "assets": {
      +      "description": "The assets under protection.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "kind": {
      +            "description": "Asset class — e.g. \"repo\", \"database\", \"bucket\".",
      +            "maxLength": 64,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "label": {
      +            "description": "Short human-readable name for the asset.",
      +            "maxLength": 120,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Why it is protected, in one short sentence. Do NOT enter personal data (names, email addresses, phone numbers, postal addresses), and do NOT enter health, biometric, government-identifier (e.g. SSN) or payment-card data. This text is stored on the agent's governance card and is readable by everyone in the owning organization.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "selector": {
      +            "description": "Which instance — e.g. \"mnemom/mnemom-api\". A resource identifier only: no credentials, no connection strings, no personal data.",
      +            "maxLength": 256,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "kind",
      +          "selector"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 64,
      +      "type": "array"
      +    },
      +    "escalation_required": {
      +      "description": "Operations that require human approval before the agent may proceed.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "applies_to": {
      +            "description": "Asset identities this entry applies to. Omit to apply to every protected asset.",
      +            "items": {
      +              "maxLength": 256,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "maxItems": 64,
      +            "type": "array"
      +          },
      +          "pattern": {
      +            "description": "Operation matcher — e.g. \"force_push\", \"drop_table*\". A short pattern, not a description.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Why this entry exists, in one short sentence. Do NOT enter personal data (names, email addresses, phone numbers, postal addresses), and do NOT enter health, biometric, government-identifier (e.g. SSN) or payment-card data. This text is stored on the agent's governance card and is readable by everyone in the owning organization.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "pattern"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 64,
      +      "type": "array"
      +    },
      +    "forbidden_operations": {
      +      "description": "Operations the agent must never perform on the protected assets.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "applies_to": {
      +            "description": "Asset identities this entry applies to. Omit to apply to every protected asset.",
      +            "items": {
      +              "maxLength": 256,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "maxItems": 64,
      +            "type": "array"
      +          },
      +          "pattern": {
      +            "description": "Operation matcher — e.g. \"force_push\", \"drop_table*\". A short pattern, not a description.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Why this entry exists, in one short sentence. Do NOT enter personal data (names, email addresses, phone numbers, postal addresses), and do NOT enter health, biometric, government-identifier (e.g. SSN) or payment-card data. This text is stored on the agent's governance card and is readable by everyone in the owning organization.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "severity": {
      +            "description": "How serious a violation of this entry is.",
      +            "enum": [
      +              "low",
      +              "medium",
      +              "high",
      +              "critical"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "pattern"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 64,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / screen_surfaces
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Which traffic surfaces are screened. Omit to accept the composed defaults.",
      +  "properties": {
      +    "incoming": {
      +      "description": "Screen prompts arriving at the agent.",
      +      "type": "boolean"
      +    },
      +    "outgoing": {
      +      "description": "Screen the agent's outbound messages.",
      +      "type": "boolean"
      +    },
      +    "tool_calls": {
      +      "description": "Screen the tool calls the agent makes.",
      +      "type": "boolean"
      +    },
      +    "tool_responses": {
      +      "description": "Screen tool responses returned to the agent.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / thresholds
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Risk-score cutoffs, each in [0, 1] and ordered warn ≤ quarantine ≤ block. All three are required if this object is sent at all — omit the whole object to accept the composed defaults.",
      +  "properties": {
      +    "block": {
      +      "description": "Score at or above which the request is refused.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "quarantine": {
      +      "description": "Score at or above which the request is held for review.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "warn": {
      +      "description": "Score at or above which the request is flagged.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "warn",
      +    "quarantine",
      +    "block"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / trusted_sources
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Sources exempt from screening. Enumerate specific hosts — wildcards are rejected, and a server-side deny-list (public LLM/DNS endpoints, 0.0.0.0/0, ::/0, link-local, multicast) is always applied.",
      +  "properties": {
      +    "agent_ids": {
      +      "description": "Trusted Mnemom agent IDs. Must be in canonical `mnm-*` form.",
      +      "items": {
      +        "maxLength": 64,
      +        "minLength": 8,
      +        "pattern": "^mnm-[A-Za-z0-9-]{4,}$",
      +        "type": "string"
      +      },
      +      "maxItems": 64,
      +      "type": "array"
      +    },
      +    "domains": {
      +      "description": "Trusted DNS names, optionally with `:port`. No wildcards.",
      +      "items": {
      +        "maxLength": 253,
      +        "minLength": 3,
      +        "type": "string"
      +      },
      +      "maxItems": 64,
      +      "type": "array"
      +    },
      +    "ip_ranges": {
      +      "description": "Trusted CIDR ranges (e.g. `10.0.0.0/8`).",
      +      "items": {
      +        "maxLength": 43,
      +        "minLength": 4,
      +        "type": "string"
      +      },
      +      "maxItems": 64,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "agent_id"
      -]New value: +[
      +  "agent_id",
      +  "card_version",
      +  "mode"
      +]
    • removedOutput schema / $defs
      Removed value: -{
      -  "CompositionMetadata": {
      -    "description": "System-managed block describing which scope sources merged into the canonical card. Only returned when `?include_composition=true`.",
      -    "properties": {
      -      "canonical_id": {
      -        "type": "string"
      -      },
      -      "composed_at": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "exemptions_applied": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "scopes_applied": {
      -        "items": {
      -          "properties": {
      -            "card_id": {
      -              "type": "string"
      -            },
      -            "scope": {
      -              "description": "`platform`, `org:<id>`, or `agent:<id>`.",
      -              "type": "string"
      -            },
      -            "template_version": {
      -              "type": "integer"
      -            },
      -            "version": {
      -              "type": "integer"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "source_card_id": {
      -        "type": "string"
      -      },
      -      "source_policy_id": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "UnifiedProtectionCard": {
      -    "description": "Unified protection card (ADR-037). Safe House thresholds + trusted-source policy for a single agent. Shape matches src/composition/types.ts::UnifiedProtectionCard (canonical) and what the runtime validator at src/composition/validate.ts accepts. The customer-facing docs at /concepts/protection-card and /specifications/protection-card-schema document this same shape.",
      -    "properties": {
      -      "_composition": {
      -        "$ref": "#/$defs/CompositionMetadata"
      -      },
      -      "agent_id": {
      -        "type": "string"
      -      },
      -      "card_id": {
      -        "type": "string"
      -      },
      -      "card_version": {
      -        "type": "string"
      -      },
      -      "content_hash": {
      -        "description": "Response-only: content hash of the composed card (`sha256:<hex>`), injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "format": "date-time",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "extensions": {
      -        "additionalProperties": true,
      -        "description": "Free-form extension slot for non-canonical fields. Ignored by the composer; preserved on read for tooling that needs an audit-tail metadata bag.",
      -        "type": "object"
      -      },
      -      "issued_at": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "mode": {
      -        "description": "Strictest-wins composition: enforce > nudge > observe > off.",
      -        "enum": [
      -          "off",
      -          "observe",
      -          "nudge",
      -          "enforce"
      -        ],
      -        "type": "string"
      -      },
      -      "protected_surface": {
      -        "description": "Org-declared protected surface policy (MNE-830). Strengthen-only UNION across platform → org → team → agent: each scope may add entries; none may remove. The composer always emits this block; callers omit it to inherit the composed floor. See ADR-037 §protected_surface.",
      -        "properties": {
      -          "assets": {
      -            "description": "Protected assets. Intrinsic identity = `${kind}:${selector}` (normalized). Composer merges by identity, keeping the strictest entry per scope.",
      -            "items": {
      -              "properties": {
      -                "kind": {
      -                  "description": "Asset kind (e.g. `row`, `field`, `resource`, `table`).",
      -                  "type": "string"
      -                },
      -                "label": {
      -                  "description": "Human-facing display label (optional).",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why this asset is protected (optional).",
      -                  "type": "string"
      -                },
      -                "selector": {
      -                  "description": "Asset selector (e.g. `customer:critical-0000`, `replica_dsn`).",
      -                  "type": "string"
      -                },
      -                "source_scope": {
      -                  "description": "Composer-assigned provenance (`platform`, `org:<id>`, `team:<id>`, `agent:<id>`). Server-assigned — do not send on a PUT.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "selector"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "escalation_required": {
      -            "description": "Operations that require escalation before proceeding. Same intrinsic-identity + union rules as forbidden_operations (minus severity).",
      -            "items": {
      -              "properties": {
      -                "applies_to": {
      -                  "description": "Asset identities this escalation applies to. Empty/absent = GLOBAL.",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "pattern": {
      -                  "description": "Operation pattern requiring escalation.",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why escalation is required (optional).",
      -                  "type": "string"
      -                },
      -                "source_scope": {
      -                  "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "pattern"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "forbidden_operations": {
      -            "description": "Operations that are unconditionally forbidden. Intrinsic identity = normalized `pattern`. Composer unions across scopes; on identity collision, severity → max.",
      -            "items": {
      -              "properties": {
      -                "applies_to": {
      -                  "description": "Asset identities (`${kind}:${selector}`) this operation applies to. Empty/absent means GLOBAL.",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "pattern": {
      -                  "description": "Operation pattern (e.g. `TRUNCATE`, `unscoped UPDATE/DELETE`, `exfiltrate:pii`).",
      -                  "type": "string"
      -                },
      -                "reason": {
      -                  "description": "Why this operation is forbidden (optional).",
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "description": "Severity level. Composer merges to strictest across scopes.",
      -                  "enum": [
      -                    "low",
      -                    "medium",
      -                    "high",
      -                    "critical"
      -                  ],
      -                  "type": "string"
      -                },
      -                "source_scope": {
      -                  "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "pattern"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "review": {
      -        "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      -        "properties": {
      -          "enabled": {
      -            "type": "boolean"
      -          },
      -          "gate_on": {
      -            "properties": {
      -              "incoming": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              },
      -              "integrity": {
      -                "enum": [
      -                  "off",
      -                  "review_needed",
      -                  "boundary_violation"
      -                ],
      -                "type": "string"
      -              },
      -              "outgoing": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              },
      -              "tool_calls": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              },
      -              "tool_responses": {
      -                "enum": [
      -                  "off",
      -                  "warn",
      -                  "quarantine",
      -                  "block"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "notify": {
      -            "properties": {
      -              "sse": {
      -                "type": "boolean"
      -              },
      -              "webhooks": {
      -                "type": "boolean"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "on_timeout": {
      -            "enum": [
      -              "reject",
      -              "release"
      -            ],
      -            "type": "string"
      -          },
      -          "quarantine_notice": {
      -            "maxLength": 2000,
      -            "type": "string"
      -          },
      -          "reviewer": {
      -            "properties": {
      -              "endpoint_url": {
      -                "format": "uri",
      -                "type": "string"
      -              },
      -              "kind": {
      -                "enum": [
      -                  "builtin_opus",
      -                  "endpoint"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          "sla_seconds": {
      -            "minimum": 1,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "enabled"
      -        ],
      -        "type": "object"
      -      },
      -      "screen_surfaces": {
      -        "description": "Which request surfaces Safe House inspects. Composed across scopes by OR-per-field (any scope requiring inspection wins).",
      -        "properties": {
      -          "incoming": {
      -            "description": "The user/principal prompt entering the agent.",
      -            "type": "boolean"
      -          },
      -          "outgoing": {
      -            "description": "The agent's response leaving the agent.",
      -            "type": "boolean"
      -          },
      -          "tool_calls": {
      -            "description": "Tool-use invocations the agent makes.",
      -            "type": "boolean"
      -          },
      -          "tool_responses": {
      -            "description": "Responses to tool calls returning to the agent.",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "incoming",
      -          "outgoing",
      -          "tool_calls",
      -          "tool_responses"
      -        ],
      -        "type": "object"
      -      },
      -      "thresholds": {
      -        "description": "Score bands. Must satisfy warn <= quarantine <= block; each value in [0, 1].",
      -        "properties": {
      -          "block": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "quarantine": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "warn": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "warn",
      -          "quarantine",
      -          "block"
      -        ],
      -        "type": "object"
      -      },
      -      "trusted_sources": {
      -        "description": "Sources for which detectors short-circuit (each match logged in the trace). Composed as platform->agent intersection (compliance ceiling) with org+agent union inside that ceiling — an agent cannot widen trust beyond what the platform allows.",
      -        "properties": {
      -          "agent_ids": {
      -            "description": "Mnemom agent IDs (mnm-* / smolt-* prefixed).",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "domains": {
      -            "description": "DNS names or host:port entries.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "ip_ranges": {
      -            "description": "IPv4 or IPv6 CIDR ranges.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "domains",
      -          "agent_ids",
      -          "ip_ranges"
      -        ],
      -        "type": "object"
      -      },
      -      "version": {
      -        "description": "Response-only: monotonic card version, injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "card_version",
      -      "agent_id",
      -      "mode",
      -      "thresholds",
      -      "screen_surfaces",
      -      "trusted_sources"
      -    ],
      -    "type": "object"
      -  }
      -}
    • addedOutput schema / additionalProperties
      Added value: +false
    • removedOutput schema / description
      Removed value: -"Unified protection card (ADR-037). Safe House thresholds + trusted-source policy for a single agent. Shape matches src/composition/types.ts::UnifiedProtectionCard (canonical) and what the runtime validator at src/composition/validate.ts accepts. The customer-facing docs at /concepts/protection-card and /specifications/protection-card-schema document this same shape."
    • removedOutput schema / properties / _composition
      Removed value: -{
      -  "$ref": "#/$defs/CompositionMetadata"
      -}
    • removedOutput schema / properties / agent_id
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / card_id / description
      Added value: +"Card ID (pc-{uuid}) of the stored protection card."
    • addedOutput schema / properties / card_id / pattern
      Added value: +"^pc-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    • removedOutput schema / properties / card_version
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / content_hash
      Removed value: -{
      -  "description": "Response-only: content hash of the composed card (`sha256:<hex>`), injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / expires_at
      Removed value: -{
      -  "format": "date-time",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / extensions
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "Free-form extension slot for non-canonical fields. Ignored by the composer; preserved on read for tooling that needs an audit-tail metadata bag.",
      -  "type": "object"
      -}
    • addedOutput schema / properties / issued_at / description
      Added value: +"ISO 8601 timestamp when the card was issued/stored."
    • removedOutput schema / properties / mode
      Removed value: -{
      -  "description": "Strictest-wins composition: enforce > nudge > observe > off.",
      -  "enum": [
      -    "off",
      -    "observe",
      -    "nudge",
      -    "enforce"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / ok
      Added value: +{
      +  "const": true,
      +  "description": "Always true on successful storage (errors return non-200 status).",
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / protected_surface
      Removed value: -{
      -  "description": "Org-declared protected surface policy (MNE-830). Strengthen-only UNION across platform → org → team → agent: each scope may add entries; none may remove. The composer always emits this block; callers omit it to inherit the composed floor. See ADR-037 §protected_surface.",
      -  "properties": {
      -    "assets": {
      -      "description": "Protected assets. Intrinsic identity = `${kind}:${selector}` (normalized). Composer merges by identity, keeping the strictest entry per scope.",
      -      "items": {
      -        "properties": {
      -          "kind": {
      -            "description": "Asset kind (e.g. `row`, `field`, `resource`, `table`).",
      -            "type": "string"
      -          },
      -          "label": {
      -            "description": "Human-facing display label (optional).",
      -            "type": "string"
      -          },
      -          "reason": {
      -            "description": "Why this asset is protected (optional).",
      -            "type": "string"
      -          },
      -          "selector": {
      -            "description": "Asset selector (e.g. `customer:critical-0000`, `replica_dsn`).",
      -            "type": "string"
      -          },
      -          "source_scope": {
      -            "description": "Composer-assigned provenance (`platform`, `org:<id>`, `team:<id>`, `agent:<id>`). Server-assigned — do not send on a PUT.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "kind",
      -          "selector"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "escalation_required": {
      -      "description": "Operations that require escalation before proceeding. Same intrinsic-identity + union rules as forbidden_operations (minus severity).",
      -      "items": {
      -        "properties": {
      -          "applies_to": {
      -            "description": "Asset identities this escalation applies to. Empty/absent = GLOBAL.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "pattern": {
      -            "description": "Operation pattern requiring escalation.",
      -            "type": "string"
      -          },
      -          "reason": {
      -            "description": "Why escalation is required (optional).",
      -            "type": "string"
      -          },
      -          "source_scope": {
      -            "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "pattern"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "forbidden_operations": {
      -      "description": "Operations that are unconditionally forbidden. Intrinsic identity = normalized `pattern`. Composer unions across scopes; on identity collision, severity → max.",
      -      "items": {
      -        "properties": {
      -          "applies_to": {
      -            "description": "Asset identities (`${kind}:${selector}`) this operation applies to. Empty/absent means GLOBAL.",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "pattern": {
      -            "description": "Operation pattern (e.g. `TRUNCATE`, `unscoped UPDATE/DELETE`, `exfiltrate:pii`).",
      -            "type": "string"
      -          },
      -          "reason": {
      -            "description": "Why this operation is forbidden (optional).",
      -            "type": "string"
      -          },
      -          "severity": {
      -            "description": "Severity level. Composer merges to strictest across scopes.",
      -            "enum": [
      -              "low",
      -              "medium",
      -              "high",
      -              "critical"
      -            ],
      -            "type": "string"
      -          },
      -          "source_scope": {
      -            "description": "Composer-assigned provenance. Server-assigned — do not send on a PUT.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "pattern"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / review
      Removed value: -{
      -  "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      -  "properties": {
      -    "enabled": {
      -      "type": "boolean"
      -    },
      -    "gate_on": {
      -      "properties": {
      -        "incoming": {
      -          "enum": [
      -            "off",
      -            "warn",
      -            "quarantine",
      -            "block"
      -          ],
      -          "type": "string"
      -        },
      -        "integrity": {
      -          "enum": [
      -            "off",
      -            "review_needed",
      -            "boundary_violation"
      -          ],
      -          "type": "string"
      -        },
      -        "outgoing": {
      -          "enum": [
      -            "off",
      -            "warn",
      -            "quarantine",
      -            "block"
      -          ],
      -          "type": "string"
      -        },
      -        "tool_calls": {
      -          "enum": [
      -            "off",
      -            "warn",
      -            "quarantine",
      -            "block"
      -          ],
      -          "type": "string"
      -        },
      -        "tool_responses": {
      -          "enum": [
      -            "off",
      -            "warn",
      -            "quarantine",
      -            "block"
      -          ],
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "notify": {
      -      "properties": {
      -        "sse": {
      -          "type": "boolean"
      -        },
      -        "webhooks": {
      -          "type": "boolean"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "on_timeout": {
      -      "enum": [
      -        "reject",
      -        "release"
      -      ],
      -      "type": "string"
      -    },
      -    "quarantine_notice": {
      -      "maxLength": 2000,
      -      "type": "string"
      -    },
      -    "reviewer": {
      -      "properties": {
      -        "endpoint_url": {
      -          "format": "uri",
      -          "type": "string"
      -        },
      -        "kind": {
      -          "enum": [
      -            "builtin_opus",
      -            "endpoint"
      -          ],
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "kind"
      -      ],
      -      "type": "object"
      -    },
      -    "sla_seconds": {
      -      "minimum": 1,
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "enabled"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / screen_surfaces
      Removed value: -{
      -  "description": "Which request surfaces Safe House inspects. Composed across scopes by OR-per-field (any scope requiring inspection wins).",
      -  "properties": {
      -    "incoming": {
      -      "description": "The user/principal prompt entering the agent.",
      -      "type": "boolean"
      -    },
      -    "outgoing": {
      -      "description": "The agent's response leaving the agent.",
      -      "type": "boolean"
      -    },
      -    "tool_calls": {
      -      "description": "Tool-use invocations the agent makes.",
      -      "type": "boolean"
      -    },
      -    "tool_responses": {
      -      "description": "Responses to tool calls returning to the agent.",
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "incoming",
      -    "outgoing",
      -    "tool_calls",
      -    "tool_responses"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / thresholds
      Removed value: -{
      -  "description": "Score bands. Must satisfy warn <= quarantine <= block; each value in [0, 1].",
      -  "properties": {
      -    "block": {
      -      "maximum": 1,
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "quarantine": {
      -      "maximum": 1,
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "warn": {
      -      "maximum": 1,
      -      "minimum": 0,
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "warn",
      -    "quarantine",
      -    "block"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / trusted_sources
      Removed value: -{
      -  "description": "Sources for which detectors short-circuit (each match logged in the trace). Composed as platform->agent intersection (compliance ceiling) with org+agent union inside that ceiling — an agent cannot widen trust beyond what the platform allows.",
      -  "properties": {
      -    "agent_ids": {
      -      "description": "Mnemom agent IDs (mnm-* / smolt-* prefixed).",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "domains": {
      -      "description": "DNS names or host:port entries.",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "ip_ranges": {
      -      "description": "IPv4 or IPv6 CIDR ranges.",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "domains",
      -    "agent_ids",
      -    "ip_ranges"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / version
      Removed value: -{
      -  "description": "Response-only: monotonic card version, injected by the GET/PUT response. Server-assigned — do not send on a PUT.",
      -  "type": "integer"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "card_version",
      -  "agent_id",
      -  "mode",
      -  "thresholds",
      -  "screen_surfaces",
      -  "trusted_sources"
      -]New value: +[
      +  "card_id",
      +  "issued_at",
      +  "ok"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / $defs / UnifiedProtectionCard / properties / review
      Added value: +{
      +  "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "gate_on": {
      +      "properties": {
      +        "incoming": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "integrity": {
      +          "enum": [
      +            "off",
      +            "review_needed",
      +            "boundary_violation"
      +          ],
      +          "type": "string"
      +        },
      +        "outgoing": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_calls": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_responses": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "notify": {
      +      "properties": {
      +        "sse": {
      +          "type": "boolean"
      +        },
      +        "webhooks": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "on_timeout": {
      +      "enum": [
      +        "reject",
      +        "release"
      +      ],
      +      "type": "string"
      +    },
      +    "quarantine_notice": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "reviewer": {
      +      "properties": {
      +        "endpoint_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "builtin_opus",
      +            "endpoint"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "sla_seconds": {
      +      "minimum": 1,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "enabled"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / body / properties / review
      Added value: +{
      +  "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "gate_on": {
      +      "properties": {
      +        "incoming": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "integrity": {
      +          "enum": [
      +            "off",
      +            "review_needed",
      +            "boundary_violation"
      +          ],
      +          "type": "string"
      +        },
      +        "outgoing": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_calls": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_responses": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "notify": {
      +      "properties": {
      +        "sse": {
      +          "type": "boolean"
      +        },
      +        "webhooks": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "on_timeout": {
      +      "enum": [
      +        "reject",
      +        "release"
      +      ],
      +      "type": "string"
      +    },
      +    "quarantine_notice": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "reviewer": {
      +      "properties": {
      +        "endpoint_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "builtin_opus",
      +            "endpoint"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "sla_seconds": {
      +      "minimum": 1,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "enabled"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / UnifiedProtectionCard / properties / review
      Added value: +{
      +  "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "gate_on": {
      +      "properties": {
      +        "incoming": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "integrity": {
      +          "enum": [
      +            "off",
      +            "review_needed",
      +            "boundary_violation"
      +          ],
      +          "type": "string"
      +        },
      +        "outgoing": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_calls": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_responses": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "notify": {
      +      "properties": {
      +        "sse": {
      +          "type": "boolean"
      +        },
      +        "webhooks": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "on_timeout": {
      +      "enum": [
      +        "reject",
      +        "release"
      +      ],
      +      "type": "string"
      +    },
      +    "quarantine_notice": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "reviewer": {
      +      "properties": {
      +        "endpoint_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "builtin_opus",
      +            "endpoint"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "sla_seconds": {
      +      "minimum": 1,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "enabled"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / review
      Added value: +{
      +  "description": "Review-hold policy (Safe House Review, Slice 2a — MNE-920 design). gate_on is the minimum verdict band per surface that escalates to a review-hold. Composition is strictest-wins; on_timeout defaults to 'reject' (fail-closed). reviewer.kind 'endpoint' is designed for MNE-1650 and not consumed yet.",
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "gate_on": {
      +      "properties": {
      +        "incoming": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "integrity": {
      +          "enum": [
      +            "off",
      +            "review_needed",
      +            "boundary_violation"
      +          ],
      +          "type": "string"
      +        },
      +        "outgoing": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_calls": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        },
      +        "tool_responses": {
      +          "enum": [
      +            "off",
      +            "warn",
      +            "quarantine",
      +            "block"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "notify": {
      +      "properties": {
      +        "sse": {
      +          "type": "boolean"
      +        },
      +        "webhooks": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "on_timeout": {
      +      "enum": [
      +        "reject",
      +        "release"
      +      ],
      +      "type": "string"
      +    },
      +    "quarantine_notice": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "reviewer": {
      +      "properties": {
      +        "endpoint_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "builtin_opus",
      +            "endpoint"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "sla_seconds": {
      +      "minimum": 1,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "enabled"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Adds critical behavior the annotations don't: the one-time OAuth grant flow with a URL, the 15-minute window, one grant per publish, the Safe House dependency for `enforce`, and the fact that a publish replaces rather than patches. Annotations only carry destructive/idempotent hints; the description supplies the operational prerequisites.

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?

Front-loads the action and payload, then the auth flow, then required fields, then the alternative — all in three dense sentences with no filler. Every clause is load-bearing.

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?

A destructive, idempotent write with an output schema and nested params is covered well: auth, prerequisites, required fields, replace-not-patch semantics, and the dry-run alternative all present. The output schema handles return values, so remaining gaps are minor (e.g. rate limits or failure modes).

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 coverage is 100%, so the schema documents all parameter semantics including nested objects and the ordering constraint on thresholds. The description lists required vs optional fields and notes mode `enforce` needs Safe House, but adds no format detail beyond the schema. Baseline 3 applies.

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?

States specific verb 'Publish or replace' and resource 'an agent's protection card', and enumerates its contents (screening mode, thresholds, trusted sources, protected assets). Clearly distinguished from sibling preview_compose_protection_by_agent, which it names.

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

Usage Guidelines5/5

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

Explicitly routes to the alternative: 'Use preview_compose_protection_by_agent to dry-run without a grant.' Also states the exact OAuth precondition and the 15-minute publish window after approving the grant, plus the Safe House requirement for `enforce`.

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.