Skip to main content
Glama

Get a Page Rule

get_page_rule
Read-onlyIdempotent

Fetch details of a Cloudflare Page Rule by ID to review its URL matching, forwarding, and cache settings before making changes.

Instructions

Fetches the details of a Page Rule. Read operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoExact private profile label. Account/zone defaults route inputs; token permissions remain provider controlled.
zone_idNo
pagerule_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true. The description's 'Read operation.' restates that safety profile rather than adding new behavioral context. It does not mention auth requirements, rate limits, or what the result includes, so it adds only marginal value beyond annotations.

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?

Two short sentences, front-loaded with the core purpose followed by the operation type. There is no wasted text.

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

Completeness2/5

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

With three parameters, only one required, incomplete schema descriptions, and no output schema, the definition is too thin. A useful read tool should specify how to identify the Page Rule (pagerule_id plus zone/account context) and what kind of object is returned.

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

Parameters2/5

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

Schema description coverage is 33%: pagerule_id and zone_id have empty descriptions, and only account has a brief (though obscure) description. The tool description says nothing about parameters, so it fails to compensate for the documentation gap. It should clarify that pagerule_id is the required identifier and that zone_id or account may scope the request.

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: 'Fetches the details of a Page Rule.' This clearly distinguishes it from the sibling 'list_page_rules' and write-oriented Page Rule tools. However, it does not explicitly name the sibling or contrast with it, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives such as list_page_rules or generic zone-ruleset getters. The description offers no context, prerequisites, or exclusions.

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