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. Changed16 schema fields changed
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "cases"
      -      ]
      -    },
      -    "required": [
      -      "reply"
      -    ]
      -  },
      -  {
      -    "not": {
      -      "required": [
      -        "reply"
      -      ]
      -    },
      -    "required": [
      -      "cases"
      -    ]
      -  }
      -]
    • addedInput schema / properties / cases / description
      Added value: +"Up to 50 replies checked against the same policy. Send reply or cases, not both."
    • addedInput schema / properties / cases / items / properties / id / description
      Added value: +"Your id for this case, returned with its result."
    • addedInput schema / properties / cases / items / properties / record / additionalProperties
      Added value: +false
    • addedInput schema / properties / cases / items / properties / record / description
      Added value: +"The record for this case only."
    • addedInput schema / properties / cases / items / properties / record / properties
      Added value: +{
      +  "effects": {
      +    "description": "Actions on record.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "operation": {
      +          "description": "Operation name from policy.actions, for example \"billing.refund\".",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "\"DONE\" when the action happened. Any other value does not count.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  },
      +  "facts": {
      +    "description": "Values the reply must state correctly, such as an appointment time.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "kind": {
      +          "description": "Kind of value.",
      +          "enum": [
      +            "time",
      +            "money",
      +            "date"
      +          ],
      +          "type": "string"
      +        },
      +        "near": {
      +          "description": "Words the value appears next to in the reply, for example \"appointment\".",
      +          "maxLength": 80,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "value": {
      +          "anyOf": [
      +            {
      +              "maxLength": 40,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            {
      +              "type": "number"
      +            }
      +          ],
      +          "description": "The value on record, as a number or text of at most 40 characters."
      +        }
      +      },
      +      "required": [
      +        "near",
      +        "kind",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  "receipts": {
      +    "description": "Curbi-signed receipts, when you have them.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "subject": {
      +    "description": "Optional id the record is about, such as an order or ticket.",
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / cases / items / properties / reply / description
      Added value: +"The agent reply."
    • addedInput schema / properties / policy / additionalProperties
      Added value: +false
    • addedInput schema / properties / policy / description
      Added value: +"Your rules. Set at least one of prices, forbid or actions; validate_policy lints a policy before use. Ready-made policies: https://curbi.io/policies/"
    • addedInput schema / properties / policy / properties
      Added value: +{
      +  "actions": {
      +    "additionalProperties": {
      +      "description": "Operation that must be DONE in the record.",
      +      "maxLength": 60,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "description": "Past-tense verb to operation, for example {\"refunded\": \"billing.refund\"}. Claiming the verb needs that operation DONE in the record.",
      +    "maxProperties": 40,
      +    "propertyNames": {
      +      "pattern": "^[a-z]{2,20}$"
      +    },
      +    "type": "object"
      +  },
      +  "description": {
      +    "description": "Optional policy description.",
      +    "type": "string"
      +  },
      +  "discounts": {
      +    "description": "Approved discounts. Any other \"N% off\" claim is a finding.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "items": {
      +          "description": "Price items it applies to; omit for all.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "percent": {
      +          "description": "Percent off.",
      +          "exclusiveMinimum": 0,
      +          "maximum": 100,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "percent"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  "forbid": {
      +    "description": "Phrases the agent must not say.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "description": "Lowercase slug. Findings are reported as forbid:<id>.",
      +          "pattern": "^[a-z0-9-]{1,40}$",
      +          "type": "string"
      +        },
      +        "negatable": {
      +          "description": "Default true: a negated mention (\"we do not guarantee\") passes.",
      +          "type": "boolean"
      +        },
      +        "phrases": {
      +          "description": "Literal phrases, never regular expressions.",
      +          "items": {
      +            "maxLength": 80,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "maxItems": 20,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "why": {
      +          "description": "Reason shown with the finding.",
      +          "maxLength": 200,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "phrases"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  "name": {
      +    "description": "Optional policy name.",
      +    "type": "string"
      +  },
      +  "prices": {
      +    "description": "Approved prices in USD. A wrong price, another currency, or an unapproved discount for an item is a finding.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "aliases": {
      +          "description": "Names to match instead of item, for example [\"Pro\", \"Pro plan\"].",
      +          "items": {
      +            "maxLength": 80,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "maxItems": 8,
      +          "type": "array"
      +        },
      +        "amount": {
      +          "description": "The approved price. Use amount or amounts, not both.",
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "amounts": {
      +          "description": "Several approved prices for the item, such as monthly and annual.",
      +          "items": {
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "maxItems": 8,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "item": {
      +          "description": "Item name as customers say it, for example \"Pro\".",
      +          "maxLength": 80,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "item"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  "unknownAmounts": {
      +    "description": "\"flag\" (default) reports dollar amounts not tied to an approved price; \"allow\" ignores them.",
      +    "enum": [
      +      "flag",
      +      "allow"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / record / additionalProperties
      Added value: +false
    • addedInput schema / properties / record / description
      Added value: +"What actually happened, supplied by the caller and not verified by Curbi. A claimed action passes only when its operation is DONE here."
    • addedInput schema / properties / record / properties
      Added value: +{
      +  "effects": {
      +    "description": "Actions on record.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "operation": {
      +          "description": "Operation name from policy.actions, for example \"billing.refund\".",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "\"DONE\" when the action happened. Any other value does not count.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  },
      +  "facts": {
      +    "description": "Values the reply must state correctly, such as an appointment time.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "kind": {
      +          "description": "Kind of value.",
      +          "enum": [
      +            "time",
      +            "money",
      +            "date"
      +          ],
      +          "type": "string"
      +        },
      +        "near": {
      +          "description": "Words the value appears next to in the reply, for example \"appointment\".",
      +          "maxLength": 80,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "value": {
      +          "anyOf": [
      +            {
      +              "maxLength": 40,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            {
      +              "type": "number"
      +            }
      +          ],
      +          "description": "The value on record, as a number or text of at most 40 characters."
      +        }
      +      },
      +      "required": [
      +        "near",
      +        "kind",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  "receipts": {
      +    "description": "Curbi-signed receipts, when you have them.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "subject": {
      +    "description": "Optional id the record is about, such as an order or ticket.",
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / reply / description
      Added value: +"One agent reply to check. Send reply or cases, not both."
    • addedInput schema / properties / verify / description
      Added value: +"\"required\" also needs a Curbi-signed receipt for each claimed action."
    • addedInput schema / properties / version / description
      Added value: +"Checker version. Omit for the current one."
  3. 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