Skip to main content
Glama
OrygnsCode

opa-mcp-server

Delete a data document from OPA

opa_delete_data
Destructive

Delete a document from OPA's data store by specifying its path in dotted or slash format. Returns success (204) or not-found (404).

Instructions

Remove a document from OPA's data store at the given path. The path may be in dotted form (users.alice) or slash form (users/alice). OPA responds with 204 No Content on success; if no document exists at the path, OPA returns 404 which is mapped to DATA_NOT_FOUND. Root-path deletion (/v1/data/ itself) is intentionally excluded -- supply at least one path segment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesData path to delete, e.g. "users.alice" or "users/alice". Must be at least one segment deep.
Behavior4/5

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

Annotations already indicate destructive behavior (destructiveHint: true). The description adds that deletion results in 204 No Content, maps 404 to DATA_NOT_FOUND, and excludes root-path deletion. This provides useful behavioral context beyond 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, front-loaded with the action, and every sentence provides necessary detail. No wasted words.

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 simple delete tool with one parameter and no output schema, the description covers response codes, path format, and an edge case (root-path exclusion). This is sufficient for safe usage.

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?

The single parameter 'path' has 100% schema coverage. The description repeats path format info (dotted or slash form) already in the schema, and adds root-path exclusion. While helpful, it adds limited new semantic value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Remove a document from OPA's data store at the given path', providing a specific verb and resource. However, it does not differentiate from sibling tools like opa_put_data or opa_patch_data, which also modify data.

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 explains that root-path deletion is excluded and mentions response codes, giving some usage context. But it does not specify when to use this tool over alternatives such as opa_patch_data or opa_put_data, lacking explicit guidance.

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