Skip to main content
Glama

List Rules

list_rules
Read-only

List the tenant's automation rules. Without filters returns all company rules (admin) or the caller's personal + all company rules (non-admin). Optional scope (company / user) and ownerUserId narrow further. Returns the full rule definition for each, including trigger, conditions, actions, execution mode, and priority. Read-only. Paged: pass limit (1–100) with offset; omit limit for every rule up to 100, or PAGING_REQUIRED. While hasMore is true, call again with offset=nextOffset.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (1–100). Omit for every rule up to 100, else PAGING_REQUIRED.
offsetNoZero-based rule offset; requires limit when nonzero.
ruleScopeNoOptional scope filter: 'company' or 'user'.
ownerUserIdNoOptional owner user id filter (GUID). Admin-only for other users' rules.

Output Schema

NameRequiredDescriptionDefault
okNo
rulesNo
totalNo
offsetNo
hasMoreNo
nextOffsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, so the bar is lower, yet the description still adds genuinely new behavior: role-dependent visibility of results, the admin-only constraint on other users' rules, and the PAGING_REQUIRED failure mode plus continuation condition. The only weakness is that 'Read-only' merely restates the annotation.

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?

Five tight sentences, front-loaded with purpose and default scope, with no filler. It loses a point for restating details the schema and annotations already supply (the 1–100 limit range and 'Read-only'), which slightly inflates length.

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

Completeness5/5

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

With annotations covering safety, an output schema covering return values, and 100% parameter description coverage, the description still supplies the pieces structured fields do not carry: permission-dependent result sets and the pagination continuation protocol. Nothing needed to call this correctly is missing.

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%, so the baseline is 3 and the schema already documents limit, offset, ruleScope, and ownerUserId in detail. The description largely restates those constraints (1–100, omit limit) and adds only the hasMore/nextOffset continuation relationship, which is a modest increment over the schema text.

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?

The opening sentence states a specific verb (List) and resource (the tenant's automation rules), and the rest of the description pins down scope and return shape. No sibling tool in the provided set lists rules, so there is nothing to disambiguate against; an agent knows exactly what this returns.

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?

It explicitly explains the default behavior (all company rules for admins, personal + company for non-admins) and when to narrow with scope/ownerUserId. It also gives the paging loop ('while hasMore is true, call again with offset=nextOffset'), which is real usage guidance. It stops short of naming alternatives or when-not-to-use conditions, so it is not a 5.

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.

Resources