Skip to main content
Glama

Verify OPA bundle signature

opa_bundle_verify
Read-onlyIdempotent

Verify the cryptographic signature of a signed OPA bundle. Uses a public key to check bundle integrity and prevent tampered or unsigned bundles.

Instructions

Verify the cryptographic signature of a signed OPA bundle using opa eval --bundle --verification-key. The bundle must have been signed with opa sign (or opa_bundle_sign). OPA checks the .signatures.json manifest inside the bundle against the provided public key before loading any policy -- a tampered or unsigned bundle will fail with INVALID_BUNDLE. Returns { bundle, verified: true } on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bundleYesPath to the signed bundle directory or `.tar.gz` archive. Must be inside an allowed root.
verificationKeyYesPath to the PEM file containing the RSA or ECDSA public key, or the path to the HMAC secret file. Must be inside an allowed root.
verificationKeyIdNoKey ID that must match the `keyid` field in the bundle signature. Required when the bundle was signed with `--public-key-id`.
signingAlgNoSigning algorithm used when the bundle was signed (e.g. `RS256`, `PS256`, `ES256`, `HS256`). Defaults to `RS256`.
scopeNoExpected `scope` value in the bundle signature. Required when the bundle was signed with `--scope`.
Behavior5/5

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

Annotations already indicate read-only, non-destructive, idempotent behavior. The description adds valuable details: it uses `opa eval`, checks `.signatures.json`, and declares that tampered/unsigned bundles fail with `INVALID_BUNDLE`. It also specifies the success return format. No contradictions with annotations.

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?

The description is three sentences long, with the first sentence immediately stating the tool's purpose. Each subsequent sentence adds critical context (prerequisite, behavior, return format). No unnecessary words or redundancies.

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?

Given the tool's complexity (5 parameters, no output schema, good annotations), the description covers prerequisites, behavior, and success return format. It only briefly touches on failure (INVALID_BUNDLE), but this is sufficient for an agent to understand the outcome. Slightly incomplete regarding failure details, but still very helpful.

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?

All five parameters have descriptions in the schema (100% coverage). The description does not add further parameter-specific guidance beyond referencing the underlying `opa eval` command. It meets the baseline but does not enhance parameter understanding.

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 it verifies the cryptographic signature of a signed OPA bundle, using specific command-line details. It distinguishes from sibling tools like opa_bundle_sign (which signs) and conftest_verify (which is for conftest), leaving no ambiguity about the tool's purpose.

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?

The description explicitly notes that the bundle must have been signed with `opa sign` or `opa_bundle_sign`, establishing a clear prerequisite. While it doesn't directly compare to alternative tools, the context implies this is the appropriate tool for verification after signing, which is sufficient given the sibling list.

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