Skip to main content
Glama

get_log_by_rayid

Retrieve HTTP request log details by Cloudflare Ray ID to investigate blocked or challenged requests, including client IP, path, user agent, status code, and security actions.

Instructions

Look up an HTTP request log entry by its Cloudflare Ray ID. Returns request details including client IP, path, user agent, status code, and security actions. Useful for investigating why a specific request was blocked or challenged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNoComma-separated list of log fields to return
ray_idYesrequired,The Ray ID of the request to look up
zone_idYesrequired,The ID of the zone
timestampsNoTimestamp format: unixnano (default), unix, or rfc3339

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool is a read-only lookup and lists the types of information returned. Yet it omits behaviors like error handling when a ray_id is not found, authentication requirements, or rate limits. For a simple lookup this is adequate but not fully transparent.

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 two sentences, front-loaded with the action and resource, followed by a useful use-case sentence. It is efficient and free of fluff, though the second sentence could be considered slightly redundant with the first. Overall it is concise and well-structured.

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

Completeness3/5

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

Given no output schema and no annotations, the description must compensate. It states the purpose and key return fields, and the schema covers parameter descriptions, so an agent can call it correctly. However, it lacks guidance on alternative tools and does not mention error cases or prerequisites, leaving some contextual gaps.

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 100%, so the baseline is 3. The description adds context about the returned fields, which helps an agent understand the purpose of the resource, but it does not explain parameter-specific semantics beyond what the schema already states. It adds little value over the schema descriptions.

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 a specific verb and resource: 'Look up an HTTP request log entry by its Cloudflare Ray ID.' It clearly differentiates the tool from siblings like get_ratelimit or get_firewall_rule because it targets log entries by Ray ID. The mention of returned details (client IP, path, user agent, etc.) further clarifies the resource scope.

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?

The description implies usage when investigating blocked/challenged requests, giving a clear context. However, it does not explicitly mention when not to use the tool or name alternatives such as query_security_events, which could also investigate security actions. The guidance is implied rather than explicit, so it falls short of a 4.

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