Skip to main content
Glama

export_policy_pack

Exports a published policy pack version to Claude Code hooks, Kong, Zuplo, ToolHive or Docker MCP Gateway and returns the export with a download link that works for 15 minutes. Without version the latest version is used; the baseline pack has version 1.0. For Claude Code, mode project gives files for the repository and mode managed gives files your administrators install.

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": {
      "pack_id": "<pack_id>",
      "target": "<target>"
    },
    "name": "export_policy_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoFor Claude Code hooks. Default project.
targetYesWhere the export runs.
pack_idYesThe pack id, or baseline.
versionNoThe version, such as 1.0. Optional.
organisationNoThe organisation's URL name (slug), from list_organisations. Leave it out: a connection signed in through OAuth reaches only the one organisation the person chose at sign-in, and an API key only its own. Only a connection approved before that choice existed, which reaches several organisations, needs it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / target / enum
      Previous value: -[
      -  "claude-code-hooks",
      -  "kong",
      -  "zuplo"
      -]New value: +[
      +  "claude-code-hooks",
      +  "kong",
      +  "zuplo",
      +  "toolhive",
      +  "docker-mcp-gateway"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that the result is a downloadable export with a 15-minute link lifetime, plus defaulting semantics for version and the baseline pack. It does not cover failure modes (unknown pack/version), whether an export is regenerated or cached, or any permission requirements.

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?

Front-loaded with the core action and targets, then defaults, then the mode distinction — every sentence carries information. It is dense and slightly run-on, but there is no filler.

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

Completeness4/5

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

For a 5-parameter export tool with no output schema, the description covers the returned artifact (download link with expiry), defaulting rules, and the niche organisation case. The only meaningful gap is what happens on invalid pack_id/version or with an expired link.

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 baseline is 3, but the description adds real meaning beyond the schema: 'mode project gives files for the repository and mode managed gives files your administrators install' explains the effect of each enum value, and it clarifies the baseline pack's version is 1.0. Only the organisation parameter's already-verbose schema text is merely restated in spirit.

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 ('Exports') and resource ('a published policy pack version') and enumerates the five concrete targets (Claude Code hooks, Kong, Zuplo, ToolHive, Docker MCP Gateway). This clearly distinguishes it from siblings like export_ai_bom or export_eval, whose names imply different artifacts.

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 operating context: omitting version uses the latest, the baseline pack is version 1.0, and mode project vs managed selects repository files vs administrator-installed files. It also tells the agent to leave organisation out in the normal OAuth/API-key case. It stops short of naming alternative tools, but the target enum already routes the decision.

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