Skip to main content
Glama
usezn

zn-gate

Official

check_tool_call

Read-onlyIdempotent

Validate tool calls and arguments locally before execution to block tool poisoning, argument injection, and exfiltration attempts.

Instructions

Pre-flight safety inspection for tool invocations and arguments before execution. Always local: arguments never leave the machine. Defends against tool poisoning, argument injection, and unauthorized exfiltration attempts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argumentsYesParameters/payload object that will be supplied to the tool.
tool_nameYesThe name of the tool to be called (e.g. bash, write_file, execute_sql, send_message).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: local-only execution ('arguments never leave the machine') and the specific threat classes it guards against (tool poisoning, argument injection, exfiltration). It does not say what happens on a failed check, which is the remaining gap.

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?

Three tight sentences, front-loaded with the core purpose and capped by the security rationale. Slightly promo-flavored in the last clause, but every sentence carries information an agent can use.

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?

The tool's security posture and locality are well covered, and there is no output schema to explain. But for a gate-style check, the description never indicates what a caller receives (verdict, flags, blocking vs advisory), which an agent needs to know to act on the result.

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% for both parameters, so tool_name and arguments are already well documented. The description adds no syntax, format, or nesting guidance beyond the schema, so the baseline 3 applies.

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?

States a specific action (pre-flight safety inspection) on a specific resource (tool invocations and their arguments) with a clear temporal qualifier ('before execution'). An agent can distinguish it from check_tool_result (post-execution) by timing alone, though the description never names that sibling explicitly.

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 phrase 'before execution' gives clear timing context for invocation, which implies when to call it. However, it never states when NOT to use it or points to the sibling tools (check_tool_result, analyze_prompt) that cover adjacent checks, leaving the routing decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.