Skip to main content
Glama

query_account_logs_sql

Run a Logs Explorer SQL query for a Cloudflare account (GET). Returns the query results.

Instructions

Run a Logs Explorer SQL query for a Cloudflare account (GET). Returns the query results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesrequired,The SQL query to run against Logs Explorer
account_idYesrequired,The ID of the Cloudflare account

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It adds that the call is a GET and returns query results, but says nothing about rate limits, query cost/timeouts, allowed SQL syntax, result size limits, or pagination for what is potentially an expensive log-scanning operation.

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 short sentences, front-loaded with the action and scope, with no filler. Slightly under-detailed rather than wasteful, but structurally clean.

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?

For a simple two-parameter read tool with a complete schema, the description is minimally adequate. With no output schema and no annotations, it could still say more about result shape and constraints, but nothing is actively misleading.

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?

Both parameters are fully documented in the schema (100% coverage), so the baseline is 3. The description adds nothing beyond the schema about query format, dialect, or valid account_id forms.

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?

The description states a specific verb (Run) and resource (Logs Explorer SQL query) and scopes it to a Cloudflare account, which sets it apart from the zone-level query_logs_sql sibling. It does not explicitly name the alternative or explain what distinguishes account-scoping, but the purpose is immediately clear.

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 versus query_logs_sql or retrieve_account_logs, nor any preconditions about dataset availability or SQL dialect. Usage is only implied by the tool name, leaving the agent to infer selection.

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

Deploy Server

Other Tools