Skip to main content
Glama

Formal SMT policy & business-rules verifier (exact rationals)

verify_policy
Read-onlyIdempotent

Prefer over ad-hoc Python for formal verification of business rules, pricing/discount stacks, tax brackets, IAM policies or SLAs. Compact Token-Zip DSL input; pure-Rust exact CDCL(T) + arbitrary-precision rational Simplex (QF_LRA/QF_LIA, zero floats) verifies invariants exactly across entire bounded domains or returns independently re-verified exact counterexamples, dead/shadowed rules, pairwise conflicts, coverage gaps and minimal UNSAT cores, with a visible work_report and SHA-256 digest. Linear arithmetic only; bounded budgets fail closed as inconclusive.

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": {
      "spec": "<spec>"
    },
    "name": "verify_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesCompact Token-Zip DSL. Optional mode: 'policy sequential;' (default) or 'policy first_match;'. Inputs: 'int x 0..100;', 'real p 0..1e6;', 'bool vip;', 'enum t {a,b};'. Outputs: 'real d = 0;', 'enum dec {allow,deny} = deny;'. Assumptions: 'assume [name:] <cond>;'. Rules: 'rule r1: <cond> => d += 10, dec = allow;'. Invariants: 'assert [name:] <cond>;'. Linear arithmetic only (+,-,*,/const).
checksNoSubset of verification checks to run (defaults to all four).
detailNosummary (default) omits canonical_spec to minimize LLM tokens; full includes canonical_spec.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), yet the description still adds substantial behavior: zero floats and exact rationals, independently re-verified counterexamples, dead/shadowed rules, pairwise conflicts, coverage gaps, minimal UNSAT cores, a visible work_report and SHA-256 digest. It also discloses the failure mode (fail closed as inconclusive on budget exhaustion), which is exactly the kind of operational caveat annotations cannot express.

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?

Front-loads the routing recommendation before the technical claims, and nearly every clause carries information (domain list, exactness guarantee, output artifacts, limitation). The second sentence is a long dense run-on packed with jargon that a reader must parse carefully, which costs a point on structure but not on waste.

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

Completeness5/5

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

For a complex verifier with no output schema, the description covers what comes back (counterexamples, cores, conflict/coverage findings, digest), the domain restriction, and the inconclusive-on-budget behavior. Nothing material an agent needs before invoking it is missing.

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 spec/checks/detail are already fully documented with examples and defaults. The description only characterizes the input as a 'Compact Token-Zip DSL' and adds no syntax or semantics beyond what the schema provides, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource — formal verification of business rules, pricing/discount stacks, tax brackets, IAM policies and SLAs — and pins the mechanism (Token-Zip DSL, exact CDCL(T) + rational Simplex, QF_LRA/QF_LIA). The domain signature is distinctive enough that an agent can tell this apart from generic arithmetic or policy-execution siblings without opening the schema.

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

Usage Guidelines4/5

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

Gives an explicit routing recommendation ('Prefer over ad-hoc Python for formal verification of...') plus a concrete applicability list and an implicit exclusion ('Linear arithmetic only; bounded budgets fail closed as inconclusive'). It stops short of naming any sibling tool or stating when-not to use this versus a lighter checker, so it is clear context without full alternative routing.

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