Skip to main content
Glama

te_query_report_data

Query report data over WebSocket for event analysis, retention, funnels, and similar reports; provide project ID and report ID with optional time range and dashboard context.

Instructions

Query report data via WebSocket (supports event analysis, retention, funnel, etc.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "reportId": "<reportId>"
    },
    "name": "te_query_report_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoTE system host (e.g. ta.thinkingdata.cn). Defaults to TE_HOST env var.
endTimeNoEnd time, format: YYYY-MM-DD HH:mm:ss
reportIdYesReport ID
projectIdYesProject ID
startTimeNoStart time, format: YYYY-MM-DD HH:mm:ss
dashboardIdNoDashboard ID (if querying from a dashboard)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only discloses the transport (WebSocket) and a list of report types. It does not state that the operation is read-only, what auth or host configuration is required, how long queries may run, or whether results are paginated or truncated.

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?

A single short sentence, front-loaded with the core verb and resource, with the parenthetical adding scope rather than noise. It is efficient, though the brevity contributes to the gaps in the other dimensions.

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?

This is a data-returning query tool with no output schema and no annotations, so the description should describe the shape of what comes back (rows, metric columns, aggregation level) and any execution caveats. It describes none of that, leaving an agent unable to predict the response.

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 only that the report may be one of several analytical types, which hints at what reportId points to, but gives no extra meaning for startTime/endTime, dashboardId, or host beyond the schema text.

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 gives a concrete verb+resource ("Query report data") and scopes the report types it covers (event analysis, retention, funnel), which distinguishes it from the SQL-oriented sibling te_query_sql. It stops short of explicitly naming the sibling it is not, so it lands at clear-but-not-differentiated.

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: the required projectId/reportId pair signals that this fetches results for an already-saved report, but the description never says when to pick this over te_get_report or te_query_sql, and states no prerequisites or exclusions.

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