Skip to main content
Glama

Leashgate

check_action

Ask Leashgate whether an agent may run an action (refund, delete, send email, payment...) BEFORE running it. Returns allow, approval_required (a human must approve), block or quarantine. Only run the action when the decision is allow.

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": {
      "action": "<action>"
    },
    "name": "check_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoName of the agent taking the action.
actionYesAction name, e.g. refund_customer or delete_rows.
paramsNoThe action's parameters, e.g. { amount: 4800, order_id: 'A-1042' }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 meaningful work: it discloses the four possible decisions (allow, approval_required, block, quarantine) and clarifies that approval_required means a human must approve. It still omits auth/prerequisite context, whether calls are logged or audited, and any distinction between 'block' and 'quarantine'.

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?

Three short sentences, front-loaded with the purpose and ending with the operative rule — no wasted wording. However, the parenthetical decision glossary is dense and the sentence order could be tightened so the return values follow the recommendation to call before acting.

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?

No output schema exists, so the description must explain return values, and it does list all four decisions. It falls short of full completeness by not defining what 'quarantine' means versus 'block', which matters for an agent deciding its next step.

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 100%, so all three parameters are already documented, and the description's action/params examples duplicate rather than extend the schema text. No added meaning about parameter interactions, e.g. whether params must match the action's real signature.

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 verb and resource ('Ask Leashgate whether an agent may run an action') with concrete action examples (refund, delete, send email, payment). The function is inherently distinct from rule-management siblings like list_rules or propose_rules, though the description never names or contrasts them explicitly.

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 strong workflow placement: call this BEFORE running the action, and proceed only when the decision is 'allow'. What's missing is any mention of how this relates to the sibling tools that presumably configure the underlying rules, or what to do when the decision is not allow.

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.