Skip to main content
Glama

generate_governance

Convert one or more policy documents into a sealed NOMOS governance artifact (.nomos). Extracts executable rules using Claude, detects contradictions between rules, computes an Autonomy Readiness Index (ARI) score (0–1), and cryptographically seals the result. Returns an artifact_id you can use with verify_decision immediately. Optionally accepts historical behavioral decision logs to add a behavioral evidence layer and reach CERTIFIED confidence tier.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "organization": "<organization>",
      "documents": "<documents>"
    },
    "name": "generate_governance"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesHuman-readable name for the governance artifact (e.g. "Loan Approval Policy v2", "HR Leave Rules").
domainNoIndustry or domain hint (e.g. "lending", "hr", "e-commerce", "healthcare", "insurance"). Improves extraction accuracy.
api_keyNoNOMOS API key (nmk_live_...).
documentsYesPolicy documents to extract rules from. Each item must have filename and content (plain text).
organizationYesName of the organization this artifact governs (e.g. "Acme Bank", "HealthCorp").
behavioral_logsNoOptional historical decision records (CSV rows as objects) for behavioral triangulation. Minimum 10 rows recommended.

Output Schema

NameRequiredDescriptionDefault
ari_scoreNoAutonomy Readiness Index 0–1 (≥0.60 autonomous, ≥0.30 bounded, <0.30 human-governed)
seal_hashNoSHA-256 cryptographic seal of the artifact
artifact_idNoUnique ID for the sealed artifact — use this with verify_decision
autonomy_bandNoRecommended deployment mode
contradictionsNoNumber of contradictions detected
confidence_tierNoArtifact confidence tier
rules_extractedNoNumber of executable rules extracted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / documents / description
      Previous value: -"Policy documents to extract governance rules from. Each item must have filename and content (plain text)."New value: +"Policy documents to extract rules from. Each item must have filename and content (plain text)."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, openWorldHint=false and idempotentHint=false, and the description adds meaningful context beyond them: this is a create-and-seal pipeline, it invokes Claude for rule extraction, it performs contradiction detection and scoring, and it returns an artifact_id. It does not disclose cost/latency implications of the LLM extraction step or what happens on regeneration, so it stops short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the verb and the artifact produced, followed by pipeline behavior and then the optional path. Each sentence carries distinct information, though the middle sentence is dense with stage enumeration and could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-stage generative mutation tool this is complete: it names the inputs that matter (documents, optional behavioral logs), what is produced (sealed .nomos artifact, ARI score, artifact_id), and the immediate next step. An output schema and full parameter descriptions exist, so no return-value detail is owed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning for behavioral_logs that the schema only gestures at ('behavioral triangulation', 'minimum 10 rows'): it explains that the logs add a behavioral evidence layer and unlock the CERTIFIED confidence tier, which drives the decision to supply them. It says nothing extra about name, domain, organization or api_key, leaving part of the gain unrealized.

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 a specific verb and resource ('Convert one or more policy documents into a sealed NOMOS governance artifact (.nomos)') and enumerates the concrete pipeline outputs (rules, contradiction detection, ARI score, cryptographic seal). It also names the natural follow-on sibling, verify_decision, so an agent can distinguish it from detect_contradictions and ask_authority without opening any schema.

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

Usage Guidelines4/5

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

Gives clear usage context: call this to produce an artifact_id, then use it 'with verify_decision immediately', and optionally supply behavioral_logs to reach the CERTIFIED tier. There are no explicit exclusions telling the agent when to prefer detect_contradictions standalone or ask_authority instead, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources