Skip to main content
Glama
OrygnsCode

opa-mcp-server

Build OPA bundle

opa_bundle_build
DestructiveIdempotent

Compile policy and data files into a deployable .tar.gz bundle. Supports optimization levels, custom revision, WASM target, and inline signing.

Instructions

Build a deployable bundle from policy / data paths using opa build. Output is a .tar.gz archive with optional inline signing. Supports optimization, custom revision strings, and the WASM target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesPolicy / data paths to include. Each must be in an allowed root.
outputYesOutput bundle path (typically `*.tar.gz`). Must be in an allowed root.
optimizeNoOptimization level (0 = none, 2 = aggressive).
revisionNoBundle revision string written to the manifest.
targetNoBuild target (default `rego`; `wasm` compiles to WebAssembly).
entrypointsNoEntrypoint refs (required when `target=wasm` or `optimize > 0`).
signingKeyNoPath to a signing key for inline signing.
signingAlgNoSigning algorithm (e.g. RS256).
claimsFileNoPath to a claims file for inline signing.
capabilitiesNoPath to a capabilities JSON file.
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description aligns by mentioning building an archive with optional signing. It adds behavioral context (output format, signing) beyond annotations, though it could mention file overwrite risks.

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?

Two sentences covering purpose and features, no redundant words. Could be slightly more structured (e.g., listing features), but overall efficient.

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?

With 10 params, no output schema, and annotations present, the description covers main purpose and key features. Missing the constraint that entrypoints are required for wasm/optimize>0, but otherwise adequate.

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% with individual parameter descriptions. The description adds high-level context (optimization, revision, WASM) but does not significantly enhance parameter understanding beyond the schema.

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?

The description clearly states the verb (Build), resource (OPA bundle), and methods (`opa build`). It distinguishes from sibling tools like opa_bundle_sign and opa_bundle_verify by specifying outputs and features.

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

Usage Guidelines3/5

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

The description implies usage for deploying policies but does not explicitly state when to use this tool versus alternatives (e.g., rego_eval, opa_exec). No when-not-to-use guidance is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrygnsCode/opa-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server