Skip to main content
Glama

List control rules

list_rules
Read-onlyIdempotent

Lists rules in the calling organization. Project filters include inherited organization rules and matching function rules. Allowlist rules include effective_count and parent_allowlist; guard rules may include allowed_model_ids. Requires the controls:read scope.

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
kindNoOnly rules of this kind
project_uuidNoOnly rules that apply in this project

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare it safe, read-only, idempotent, and closed-world, so the description doesn't need to repeat that. It does add value beyond the annotations by disclosing the required `controls:read` scope and describing which fields appear on returned records (effective_count/parent_allowlist for allowlist rules, allowed_model_ids for guard rules).

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?

Three tight sentences, front-loaded with the core action and scope, then filter semantics, then the auth requirement. Every sentence carries information an agent needs and there is no filler.

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?

An output schema exists and annotations carry the safety profile, so the description's remaining job is scope, filter semantics, and auth — all covered. Return-value shape is left to the output schema, which is appropriate.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning beyond the schema's terse 'Only rules that apply in this project' — it explains that project filtering pulls in inherited organization rules and matching function rules, which an agent could not infer from the schema alone.

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 ('Lists rules') plus a scope ('in the calling organization'), which separates it from sibling config-listing tools like list_models or list_projects. It never explicitly names a sibling it should be preferred over, so it stops short of a 5.

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?

Usage is only implied: the mention of 'Project filters' and 'kind' filtering suggests when to pass each parameter, but there is no explicit when-to-use or when-not-to-use guidance and no pointer to related tools such as get_allowed_models or create_rule.

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