Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

Cloudflare: account ruleset by ID

cf_account_ruleset_get
Read-only

Read an account-level ruleset by UUID (child custom WAF rulesets, bypass lists, Noibu blocks, etc.). Returns normalized rules with trimmed actionParameters (phases/ruleset for skip rules).

Input Schema

NameRequiredDescriptionDefault
zoneOrIdNoZone name (e.g. your-tenant.com) or zone ID to resolve account.id
accountIdNoCloudflare account ID; overrides CLOUDFLARE_ACCOUNT_ID and zone.account.id
rulesetIdYesCloudflare account ruleset ID (32-char hex UUID)
context_idNoOptional explicit Connection Hub work context (ctx_*). Omit to use the conversation's active workspace; global Hub tools ignore it.
account_slugNoCloudflare account slug. Required when the workspace has multiple accounts and the zone is not yet cataloged.
environment_slugNoCloud Catalog environment used as an account-routing preference when no zone is provided.

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the safe read-only profile, so the description's job is to add context — and it does: it discloses that rules are returned normalized with trimmed actionParameters and that skip rules carry phases/ruleset, which materially affects how results should be interpreted. It does not mention permission requirements or account-resolution behavior, but the added normalization note is genuinely non-obvious value.

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?

Two sentences, front-loaded with the verb and scope, no filler. The parenthetical example list is slightly noisy ('Noibu blocks, etc.') but earns its place by naming real ruleset categories.

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, so return shape needn't be described, and the annotations cover safety. The description supplies scope, example use cases, and a note about normalization/trimming — sufficient for an agent to call this correctly, with the only gap being routing guidance against the similar entrypoint/list tools.

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 coverage is 100% with all six parameters documented, including the rulesetId UUID format and the account/zone resolution fallbacks, so the schema carries the parameter burden. The description adds only 'by UUID', which is already in the schema, and says nothing about how rulesetId relates to zoneOrId/accountId resolution.

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 (read an account-level ruleset) plus the key scope qualifier (account-level, by UUID), and gives concrete examples of the ruleset types it covers (child custom WAF rulesets, bypass lists). It implicitly separates itself from the zone-level siblings like cf_ruleset_entrypoint_get, but never names them, so differentiation requires the agent to infer from 'account-level'.

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 through the example ruleset categories and the 'by UUID' phrasing. There is no explicit statement of when to pick this over cf_account_ruleset_entrypoint_get, cf_ruleset_entrypoint_get, or cf_rulesets_list, which is a real ambiguity given the sibling set.

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