Skip to main content
Glama

Sunaiva Gate — Agent Rule Enforcement

validate_action

Check if a proposed action passes all active validation rules. Returns allowed/blocked with rule violations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesThe action to validate
contextNoOptional additional context, appended to `action` before rule matching — it can change which rules match and therefore the verdict.

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the output format (allowed/blocked with violations) and the scope (active rules), but does not state whether the operation has side effects or is read-only. Given it's a validation tool, this is a moderate gap.

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?

The description is two short sentences with no fluff, immediately conveying the core function and return. It is efficiently structured.

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?

The description covers the primary purpose and return shape without an output schema. It doesn't mention edge cases or whether it modifies state, but for a simple validation tool it is reasonably complete. Some additional context about validation workflow could help.

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?

The schema already provides 100% parameter coverage, including a helpful explanation of how context appends to action. The description adds no additional parameter details, which is acceptable given the schema's clarity.

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 clearly states the tool checks a proposed action against all active validation rules and returns allowed/blocked with violations. It is distinct from sibling tools that manage rules, but does not explicitly name alternatives.

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 description implies this tool should be used to validate actions before execution, but provides no explicit guidance on when to use it vs alternatives like ship_confidence_check or log_bypass, nor mentions any exclusions.

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.

TDQS

A3.5/5.0
Disambiguation4/5

Most tools have clearly distinct purposes (e.g., CRUD for custom rules, mode management, presets, validation). However, get_rules, list_custom_rules, and get_rule_modes could be confused since all return rule-related info, though descriptions differentiate their focus.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (e.g., add_custom_rule, get_audit_log, delete_custom_rule). Even multi-word names like ship_confidence_check maintain the pattern, with no mixing of conventions.

Tool Count4/5

16 tools is slightly above the typical 3–15 range but appropriate for the rule enforcement domain, covering custom rules, presets, modes, audit, and validation. However, three planned-but-unimplemented tools add clutter and could be confusing.

Completeness3/5

Core operations are present: full CRUD for custom rules, preset application, mode overrides, validation, and audit log. However, three tools are non-functional (NOT_IMPLEMENTED), and there is no way to remove a bypass or manage constitutional rules, leaving some noticeable gaps.

Resources