Skip to main content
Glama

Get Policy-as-Code mapping

get_policy_as_code_mapping
Read-onlyIdempotent

Returns the 11 integration obligations mapped to OPA/Rego and Cedar, including the boundary between policy evaluation and application-level evidence, version, and write enforcement.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_policy_as_code_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, closed-world, so the safety profile is fully covered. The description adds content-level context by disclosing that the mapping covers the boundary between policy evaluation and application-level evidence, version, and write enforcement, which is useful since there is no output schema, but it says nothing about size limits or pagination.

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?

One dense sentence with the payload front-loaded in the first clause; nothing is wasted. It is slightly overloaded by stacking three sub-topics at the end, but stays readable.

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 no output schema and no parameters, the description carries the burden of conveying return content, and it does so by naming the count (11), the two target languages, and the conceptual boundary included. It stops short of describing the shape of each mapping entry, which would fully close the gap.

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?

The tool takes no parameters, so the baseline of 4 applies; the description cannot and need not explain argument meaning. It correctly implies the call is argument-free and fully determined.

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 uses a specific verb and resource ('Returns the 11 integration obligations mapped to OPA/Rego and Cedar') and pins down the exact payload, so an agent knows precisely what it fetches. It does not explicitly contrast itself with siblings like get_application_mapping or get_commit_boundary_contract, which keeps it off a 5.

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?

Usage is only implied: an agent infers it should call this when it needs to translate obligations into OPA/Rego or Cedar, but there is no explicit when-to-use, when-not, or named alternative. Adequate for a zero-parameter reference getter, but guidance is left to inference.

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.