Skip to main content
Glama

evaluate_policy

Read-onlyIdempotent

Compare declared receipt check IDs against the gates owed by a declared change. Supply independently obtained expected policy and input digests. Requires Mind access. No project is inspected and no checks run.

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": {
      "receipt": "<receipt>",
      "expected_input_digest": "<expected_input_digest>",
      "expected_policy_digest": "<expected_policy_digest>",
      "change": "<change>"
    },
    "name": "evaluate_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
changeYes
receiptYes
expected_input_digestYes
expected_policy_digestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior. The description adds meaningful context beyond those fields: Mind access is required, no project is inspected, no checks are executed, and the expected digests must be obtained independently. That clarifies the tool is a pure comparison rather than a live verification step, though it does not describe the output or failure behavior.

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?

The description is four short sentences, front-loads the core comparison, and has no obvious filler. The closing constraint is placed after the core purpose, which is reasonable. It is slightly compressed in places, but every sentence contributes.

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

Completeness3/5

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

The tool has a nested schema, four required inputs, and no output schema, so the description needs to make the comparison result and operational constraints clear. It covers access requirements and the non-inspecting nature of the call, but it does not explain what the comparison returns or how the expected digests are consumed. It is adequate but incomplete for a complex nested-input tool.

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 description coverage is 0%, so the description carries the burden of explaining four required parameters including a nested change object. It identifies the receipt, change, and expected digest inputs and emphasizes that digests must be independently obtained, which is useful. However, it does not explain the receipt structure, how change classes map to gates, or what the digests represent, leaving key semantics in the enum names alone.

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 states a specific action: comparing declared receipt check IDs against gates owed by a declared change. That is more precise than restating the name, and the closing sentence clarifies what the tool does not do. It stops short of naming a sibling alternative, so it is clear but not fully differentiated.

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 definition implies when to use the tool by framing it as an offline comparison and instructing callers to supply independently obtained digests. It never explicitly says when to choose this over inspect_receipt, explain_gate, or proof.validate, nor does it list exclusions. Usage context is present but requires 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.

Resources