Skip to main content
Glama

cf_get_ruleset

Retrieve a complete ruleset with all its rules for a Cloudflare zone or account by providing the scope, scope ID, and ruleset ID.

Instructions

Fetch a single ruleset including all its rules.

Args:
    scope: 'zone' or 'account'.
    scope_id: matching CF ID.
    ruleset_id: 32-char ruleset ID.

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

Returns: envelope with `data` = full ruleset dict including `rules[]`.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYes
scope_idYes
ruleset_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the HTTP method (GET), the API endpoint pattern, and the return format ('envelope with `data` = full ruleset dict including `rules[]`'). This provides sufficient behavioral transparency for a read operation.

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 extremely concise with a clear structure: one-line summary, Args block, call pattern, and return format. Every sentence adds value with no wasted words.

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?

Despite no annotations, the description covers all necessary information for a simple GET operation: purpose, parameters, endpoint, and return type. The presence of an output schema is acknowledged, but the description already explains the return format sufficiently.

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, but the description adds meaning: scope is 'zone' or 'account', scope_id is a matching CF ID, ruleset_id is a 32-char ID. This significantly clarifies parameter semantics beyond the schema's bare titles.

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 states 'Fetch a single ruleset including all its rules,' clearly specifying the verb (fetch), resource (ruleset), and scope (single). This distinguishes it from siblings like cf_list_rulesets (list multiple) and cf_get_rule (single rule).

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?

The description lists required arguments with brief explanations (scope type, scope_id, ruleset_id), implying usage context. It does not explicitly state when to use this over alternatives, but the sibling names make it clear that this is for fetching a single ruleset, not listing or getting a rule.

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