Skip to main content
Glama

evaluate_policy

Read-only

Run mandatory policy checks against a stored verification run to determine which required checks pass or fail for AI-written code.

Instructions

Evaluate mandatory checks against a stored 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": {
      "id": "<id>",
      "mandatory": "<mandatory>"
    },
    "name": "evaluate_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
mandatoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. Beyond that, the description adds almost nothing: it does not say whether evaluation is purely local/computed, what happens when mandatory checks fail, or whether results are persisted. The one useful signal — that it evaluates an existing stored run rather than executing checks — is conveyed only obliquely.

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?

A single front-loaded sentence with no filler or redundancy. It is efficiently written, though its brevity tips into under-specification rather than being trim.

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?

With no output schema, the description should explain what an evaluation returns (pass/fail per check, violations, summary), and it does not. For a two-required-parameter evaluation tool with 0% schema coverage, an agent lacks enough information to interpret results after calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the burden, and it does not: "id" (a UUID run identifier) and "mandatory" (an array of 1–50 lowercase check-name slugs) receive no explanation. "stored run" hints that id refers to a run, but the meaning and format of the mandatory list, and how it relates to list_checks, are left entirely to the schema patterns.

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

Purpose3/5

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

States a verb ("Evaluate") and an object ("mandatory checks against a stored run"), so the general intent is graspable. But "evaluate" is ambiguous — it could mean scoring a run, checking compliance, or executing checks — and nothing distinguishes it from siblings like execute_checks or compare_runs. The agent knows the topic area but not precisely what the tool produces.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus execute_checks, compare_runs, or get_run, and no prerequisites such as whether the run must already exist. The phrase "against a stored run" weakly implies a prior run is required, but no explicit when/when-not instruction is given.

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