Skip to main content
Glama

query_rules

Read-only

Query aiZee rules by keyword and optional context to return only active policies agents need for current decisions.

Instructions

Query aiZee rules by keyword, returning only active rules for the context.

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": {
      "query": "<query>"
    },
    "name": "query_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
contextNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real value by disclosing the filtering behavior (only active rules, scoped by keyword and context), but says nothing about result volume, ordering, or what happens when no rule matches.

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?

A single front-loaded sentence with no redundant wording. It is efficient, though the unexplained 'aiZee' terminology costs a bit of immediate comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema covers return values, so that is not a gap. However, for a tool whose second parameter is an untyped context object with zero schema documentation, the description should explain what context to supply; it does not, which is a real completeness hole for correct invocation.

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

Parameters2/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 full burden. It only implies that 'query' is a keyword and that 'context' narrows results; the context parameter is an opaque object with additionalProperties and no explanation of its shape or contents, leaving an agent unable to construct it.

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 (query) and resource (aiZee rules) plus the key qualifier that only active rules are returned, which tells an agent this is a filtered retrieval rather than a full listing. It does not name or differentiate against siblings such as list_rules or get_rule, leaving that distinction to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance. The description never explains how this differs from list_rules or get_rule, nor when a keyword query is preferable to enumerating rules.

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