Skip to main content
Glama

reliable-gate

Evaluate a tool call before executing it

evaluate_tool_call
Read-onlyIdempotent

Call this BEFORE executing any delete, send, refund, charge, or other irreversible tool call. Runs the deterministic Reliable Gate (rules R1-R10) on the resolved tool call — tool name, arguments, environment, context — and returns ALLOW, HOLD, or BLOCK with a reason code and a human-readable reason. A HOLD verdict also creates a persisted hold and returns its hold_id, so a human can later approve or decline it. This tool executes nothing.

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": {
      "tool": "<tool>"
    },
    "name": "evaluate_tool_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoproduction
argsNo
toolYes
contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantially beyond the annotations: it discloses that the gate is deterministic, enumerates the three verdicts, and explicitly warns that a HOLD verdict persists a record and returns a hold_id — a side effect an agent would otherwise not anticipate from readOnlyHint=true. The 'executes nothing' guarantee clarifies the boundary between evaluating and performing.

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?

Four sentences with the usage instruction first, then semantics, then return contract, then the non-execution caveat — the ordering matches how an agent needs the information. No filler or restated title content.

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?

With no output schema, the description supplies the return contract itself (three verdicts, reason code, human-readable reason, hold_id), which is exactly what the agent needs to branch. Minor omissions remain: what happens on malformed input, whether BLOCK is terminal, and the meaning of the env values given its production default.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden — and it does map all four parameters by naming 'tool name, arguments, environment, context' as the components of the resolved tool call, which tells the agent args must be resolved rather than symbolic. It does not clarify accepted env values or the intended shape of context, leaving some ambiguity given the schema's defaults.

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?

Names a specific action and object — evaluate a resolved tool call against the deterministic Reliable Gate (R1-R10) — and states the exact output vocabulary (ALLOW, HOLD, BLOCK with reason code). It also distinguishes itself from execution-oriented tools with 'This tool executes nothing,' so an agent can place it in the workflow 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 a strong, front-loaded trigger: 'Call this BEFORE executing any delete, send, refund, charge, or other irreversible tool call.' The category list functions as an implicit exclusion of read-only calls, and the HOLD/hold_id sentence points toward the human-approval path. It stops short of explicitly stating when not to call it or naming approve_or_decline_hold / resume_approved_hold as the follow-up step.

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.