Skip to main content
Glama

mechacut

check_allowlist

Policy as closed grammar: rules (subject/action exact or the literal '*', allow boolean, max_amount ceiling, currencies ISO set) judged against requests — most specific rule wins (specificity = concrete fields); an equal-specificity conflict returns AMBIGUOUS and refuses to coin-flip policy; no matching rule with default_deny refuses — silence never allows. Regex-shaped actions are REFUSED, not evaluated. Amounts exact Decimal; sub-requests ceiling 200 named. Free.

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": {
      "rules": "<rules>",
      "requests": "<requests>"
    },
    "name": "check_allowlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYes
requestsYes
default_denyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: most-specific-rule-wins, AMBIGUOUS on equal-specificity ties rather than guessing, default_deny causing refusal on silence, regex-shaped actions rejected outright, exact Decimal amounts, and a 200 sub-request ceiling. What it omits is the response shape per request and error reporting for malformed rules/requests.

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?

Dense but nearly every clause carries distinct policy semantics, with the critical tie-break and default-deny behaviors surfaced early. The telegraphic style and trailing 'Free.' reduce readability slightly without wasting meaningful space.

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 3-parameter tool with no output schema and no annotations, the description covers evaluation logic, conflict resolution, defaults, and limits well. The remaining gap is the return value structure (per-request verdicts vs. a top-level result), which the description only hints at via 'AMBIGUOUS' and 'refuses'.

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 coverage is 0%, so the description must compensate, and it explains rule fields well (subject/action exact or literal '*', allow boolean, max_amount ceiling, currencies as an ISO set) plus default_deny behavior. Request-side fields (id, amount, currency, subject, action pairing) and the ambiguous phrase 'sub-requests ceiling 200 named' leave the highest-value parameters only partially specified.

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 states a specific operation: judging policy rules (subject/action/allow/max_amount/currencies) against requests and returning allow/deny/AMBIGUOUS. The framing 'Policy as closed grammar' is abstract, but the mechanics make the purpose unmistakable. It does not differentiate itself from sibling checkers like check_agreement or check_constraints.

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 evaluation semantics imply the use case (enforcing an allowlist against a batch of access requests), so usage is inferable. However, there is no explicit when-to-use guidance, no exclusions, and no routing away from the many sibling check_* tools.

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.