Skip to main content
Glama

approval-invalidation

Does a change to the approved thing invalidate the approval under a materiality policy? — Compares what a human or system approved with what is about to be executed (a quote, order, plan, diff summary: any JSON) under a caller-supplied materiality policy: per-path rules exact / ignore / numeric tolerance (absolute or percent) / no-increase / no-decrease, with the longest matching path winning and a default for unlisted paths. Also covers quote revisions (approved revision number must e

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": {
      "approved": "<approved>",
      "current": "<current>"
    },
    "name": "approval-invalidation"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoRFC 3339 instant for the expiry check; no clock is read.
policyNo
currentYesThe version about to be executed (JSON).
approvedYesThe approved snapshot (JSON).
approvedAtNoRFC 3339 instant.
currentRevisionNo
validForSecondsNo
approvedRevisionNo
requireSameRevisionNoDefault true when either revision is given (a missing partner gives unknown): an approval for another revision does not cover this one. Send false to ignore the revisions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does useful work describing the rule engine's semantics: five rule kinds, longest-matching-path precedence, and a default for unlisted paths, plus revision-coverage behaviour. But it omits critical operational facts: the tool is presented as a pure evaluator (it never says whether it mutates or records anything), it never explains what the result looks like, and the revision/expiry logic is cut off mid-sentence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The leading question is well placed and front-loads the purpose, but the body is one long run-on sentence built from em-dashes and slashes that packs rule vocabulary, precedence, and revision handling together. It is dense rather than wasteful, yet the truncation means the sentence structure fails outright at the end. Splitting into purpose / rules / result would help considerably.

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?

This is a nine-parameter tool with nested objects, partial schema coverage, no annotations, and no output schema, so the description must do heavy lifting. It covers the policy semantics reasonably well but leaves the return value undefined – an agent cannot tell whether it receives a boolean, a verdict with the offending paths, or a detail object – and the revision/expiry half of the contract is incomplete. For a decision tool whose whole value is the answer it produces, that is a meaningful gap.

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 56%, so the schema documents roughly half the surface. The description restates the policy rule vocabulary and adds one genuinely new fact – longest matching path wins – but duplicates enum values the schema already enumerates. It says essentially nothing about the expiry parameters (asOf, approvedAt, validForSeconds) or the bare revision integers, which the truncated tail gestures at but never completes.

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 definition states a specific operation on a specific resource: comparing an approved snapshot against a to-be-executed version to decide whether the approval is invalidated. The framing as a question ('Does a change ... invalidate the approval?') is slightly indirect but the resource and the evaluation goal are unmistakable. Sibling tools in the catalog are unrelated utilities, so no differentiation is needed or possible.

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?

Usage is implied by the scenario spelled out ('what a human or system approved' vs 'what is about to be executed' – quote, order, plan, diff summary), which tells an agent the class of situation this fits. However, there is no explicit when-to-use or when-not-to-use statement and no named alternative for lighter-weight comparisons. The agent must infer the trigger condition from the description alone.

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