Skip to main content
Glama

cf_list_rulesets

Retrieve all Cloudflare rulesets for a zone or account scope, including their names, kinds, versions, and phases. Helps audit WAF and custom rule configurations.

Instructions

List all rulesets visible at the given scope.

Args:
    scope: 'zone' or 'account'.
    scope_id: matching Cloudflare ID.

Calls: GET /{zones|accounts}/{scope_id}/rulesets.

Returns: envelope with `data = {rulesets: [...], count, scope, scope_id}`.
Each ruleset summary has: id, name, description, kind (managed/custom/zone),
version, last_updated, phase.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYes
scope_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must disclose behavior. It mentions the HTTP method (GET) and return envelope structure, but does not cover safety, authentication needs, or rate limits. Adequate but not exhaustive.

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?

The description is well-structured with bullet-pointed args, API call, and returns. It is relatively concise with only essential information, though could slightly trim the return envelope detail.

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?

Given the simple tool (two parameters, no nested objects) and presence of an output schema, the description covers all necessary information: purpose, arguments, HTTP call, and return data structure. It is complete for an agent to use.

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?

The schema has 0% description coverage, so the description's explanation of 'scope' as 'zone' or 'account' and 'scope_id' as a Cloudflare ID adds significant meaning beyond the schema's titles and types.

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 description clearly states 'List all rulesets visible at the given scope' with a specific verb (list) and resource (rulesets), and distinguishes from sibling tools like cf_get_ruleset (specific ruleset) and cf_list_managed_rulesets.

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?

While not explicitly stating when not to use, the description gives clear context: listing all rulesets at a given scope. Sibling tools have different focuses (get single, filter managed), so differentiation is implied.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wojtekkura/cf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server