Skip to main content
Glama

Check an agent reply

policy_check
Read-onlyIdempotent

Check one reply or up to 50 replies against explicit prices, forbidden phrases and supplied outcome records. Deterministic, no model calls. Caller records are unverified; receipt verification is unavailable here. A pass grants no execution authority.

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": {
      "policy": "<policy>"
    },
    "name": "policy_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
casesNoUp to 50 replies checked against the same policy. Send reply or cases, not both.
replyNoOne agent reply to check. Send reply or cases, not both.
policyYesYour rules. Set at least one of prices, forbid or actions; validate_policy lints a policy before use. Ready-made policies: https://curbi.io/policies/
recordNoWhat actually happened, supplied by the caller and not verified by Curbi. A claimed action passes only when its operation is DONE here.
verifyNo"required" also needs a Curbi-signed receipt for each claimed action.
versionNoChecker version. Omit for the current one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / policy / properties / forbid / items / properties / match
      Added value: +{
      +  "description": "Default \"word\": whole words, plus English endings. \"prefix\" also matches words that start with the phrase, for languages that add endings (\"garanti\" catches \"garantili\"); it can over-match (\"free\" would catch \"freedom\"), so use it per rule.",
      +  "enum": [
      +    "word",
      +    "prefix"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: the check is deterministic with no model calls, caller records are unverified, receipt verification is unavailable here, and a pass grants no execution authority. These details materially affect how an agent should interpret and rely on the result.

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 four short sentences, front-loaded with the main action and scope. Every sentence contributes useful information about determinism, trust limits, or authority, with no filler.

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 complex checker with a rich 100%-covered schema and no output schema, the description covers the key operational constraints and trust boundaries. It stops short of describing the shape or content of findings, which leaves a minor gap even though an output schema is absent.

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 100%, so the baseline is 3. The description adds some meaning by summarizing what the policy covers (prices, forbidden phrases, outcome records) and the 50-reply limit, but it does not add syntax or usage detail 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 uses a specific verb and resource: checking one reply or up to 50 replies against prices, forbidden phrases, and outcome records. It is clear what the tool does, though it does not explicitly distinguish itself from the sibling validate_policy tool.

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 implies when to use the tool by describing batch checking and what constitutes a pass, but it gives no explicit when-not guidance and does not name alternative tools such as validate_policy or verify_bundle. The usage context is clear enough to infer, but not fully specified.

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