Skip to main content
Glama
pein892

Sensors MCP Server

by pein892

query_segmentation_report

Analyze event data with custom metrics, date range, and time granularity, applying filters and dimensions for segmentation.

Instructions

查询事件分析报告。参数直接对应神策 OpenAPI 的 SegmentationReportRequest 结构。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYes查看的时间粒度:HOUR(按小时)、DAY(按天)、WEEK(按周)、MONTH(按月)、YEAR(按年)
limitNo返回的最大行数,-1 表示返回尽量多的数据
filterNo全局过滤条件,格式为 {"relation":"AND","conditions":[{"field":"event.$Anything.$country","function":"equal","params":["中国"]}]}
rollupNo查询汇总或者明细数据,true 为汇总,false 为明细
to_dateYes查询日期范围的结束时间,格式为 yyyy-MM-dd,例如 2026-01-31
measuresYes要查询的指标集合,例如 [{"event_name":"$MPShow","aggregator":"general"}]
by_fieldsNo按什么维度查看,例如 ["event.$Anything.$country", "user.province"]
from_dateYes查询日期范围的开始时间,格式为 yyyy-MM-dd,例如 2026-01-01
use_cacheNo是否使用缓存
sampling_factorNo抽样因子,64 为全量,32 为 1/2 抽样
Behavior1/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It does not mention side effects, authentication needs, rate limits, or read-only nature. The tool's behavior beyond querying is opaque.

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 sentences with no redundancy. The first sentence defines the purpose, the second provides critical mapping info. Every word earns its place.

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?

Despite 100% schema coverage, the description lacks return value explanation, error handling, and examples. For a complex parameter set (10 params, nested objects) with no output schema, the description is too minimal to fully inform an AI agent.

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 coverage is 100%, so the baseline is 3. The description adds that parameters map directly to the Sensors OpenAPI structure, which provides context but does not substantively enhance understanding beyond the schema's own descriptions.

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 clearly states the tool queries event analysis reports, with a specific reference to the Sensors OpenAPI structure. It distinguishes itself from siblings that deal with properties/events rather than reports.

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?

No guidance on when to use this tool versus alternatives. The description implies usage for segmentation reports but does not specify prerequisites or exclusions, leaving the agent to infer context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pein892/SensorsMCPServer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server