Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

Cloudflare: firewall events

cf_firewall_events
Read-only

Recent WAF/firewall security events only (blocked/challenged traffic with a rule action). Does not replace full HTTP request analytics — use cf_http_security_* for cart/checkout bot score, JA4, and volume on all eyeball requests.

Input Schema

NameRequiredDescriptionDefault
pageNo
zoneYesZone name (e.g. your-tenant.com) or zone ID
sinceNoStart: ISO-8601 (e.g. 2025-01-01T00:00:00Z) or relative minutes (e.g. "-60"). Not now-1h.
untilNoEnd: ISO-8601 or relative minutes (e.g. "0" for now). Not now-1h.
actionNoFilter by firewall action (e.g. block, challenge)
sourceNoFilter by event source (e.g. firewall)
per_pageNo
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.
path_containsNoFilter events whose request path contains this substring (GraphQL fallback)
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
    • changedInput schema / properties / since / description
      Previous value: -"Start datetime ISO 8601 (e.g. 2025-01-01T00:00:00Z)"New value: +"Start: ISO-8601 (e.g. 2025-01-01T00:00:00Z) or relative minutes (e.g. \"-60\"). Not now-1h."
    • changedInput schema / properties / until / description
      Previous value: -"End datetime ISO 8601"New value: +"End: ISO-8601 or relative minutes (e.g. \"0\" for now). Not now-1h."
  2. Changed17 schema fields changed
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +false
    • removedOutput schema / properties / data / properties / count
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / data / properties / errors
      Removed value: -{
      -  "items": {
      -    "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / data / properties / events
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "clientAsn": {
      +        "type": "string"
      +      },
      +      "clientCountryName": {
      +        "type": "string"
      +      },
      +      "clientIp": {
      +        "type": "string"
      +      },
      +      "clientRequestHost": {
      +        "type": "string"
      +      },
      +      "clientRequestMethod": {
      +        "type": "string"
      +      },
      +      "clientRequestPath": {
      +        "type": "string"
      +      },
      +      "datetime": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "rayId": {
      +        "type": "string"
      +      },
      +      "ruleId": {
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "userAgent": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / gaps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / data / properties / items
      Removed value: -{
      -  "$ref": "#/properties/data/properties/result/anyOf/0"
      -}
    • removedOutput schema / properties / data / properties / messages
      Removed value: -{
      -  "items": {
      -    "anyOf": [
      -      {
      -        "type": "string"
      -      },
      -      {
      -        "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -      }
      -    ]
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / data / properties / partial
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / data / properties / result
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "additionalProperties": true,
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / data / properties / result_info
      Removed value: -{
      -  "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -}
    • removedOutput schema / properties / data / properties / success
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / data / properties / total
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / data / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "events",
      +  "partial",
      +  "truncated",
      +  "warnings",
      +  "gaps"
      +]
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered and the description's job is smaller. The description adds a meaningful caveat about the data domain (only rule-action events, so empty results do not mean no traffic), but says nothing about pagination behavior, retention window, or rate limits on an 11-parameter paginated query.

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 scope constraint, followed immediately by the counter-case and the alternative family. Zero 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 cover safety, so the description needn't explain returns. It cleanly frames scope and alternatives; only minor things like the default time window behind 'Recent' and the interaction between the action filter and the implicit rule-action restriction are left unstated.

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 description coverage is 82%, so the schema already documents zone, since/until format, action, source, page/per_page, and the Hub context params. The description adds nothing parameter-level — notably it never clarifies the default time window implied by 'Recent' nor how the action filter interacts with the fixed rule-action scope. Baseline 3 applies when the schema does the heavy lifting.

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?

States the resource precisely (WAF/firewall security events) and narrows the scope to events carrying a rule action (blocked/challenged), so an agent knows exactly what data comes back. It also draws the boundary against the cf_http_security_* family in the same breath.

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?

Explicitly names the condition for choosing the alternative: use cf_http_security_* when you need bot score, JA4, or volume across all eyeball requests. It doesn't state a positive trigger ('use this when investigating blocks') and doesn't address the other nearby WAF siblings such as cf_waf_custom_rules_list or cf_waf_ip_audit, so routing among rule-configuration vs event tools is left to inference.

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