Skip to main content
Glama
sheepit-ai

sheepit-mcp

Official
by sheepit-ai

Run an arbitrary timeseries query against your events

insights_query

Execute ad-hoc analytics queries on event data to answer specific business questions like signup counts or error rates over time. Returns time-series data with optional filtering and breakdowns.

Instructions

Execute a one-shot InsightsQuery without saving it as a widget. Use this to answer questions like 'how many signups yesterday?' / 'errors-per-hour by app version this week?' / 'which utm_source converted best in the last 30 days?'. Input envelope: { environment_id?: uuid, query: { kind, event, interval, range, filters?, breakdownProperty?, aggregation? } }. query.kind is always 'timeseries' (the v1 surface). query.event is an event name from event_catalog_canonical. query.interval is one of 'minute'|'hour'|'day'|'week'. query.range is either {kind: 'relative', last: '1h'|'24h'|'7d'|'30d'|'90d'} or {kind: 'absolute', fromIso: iso, toIso: iso} (note: the absolute keys are fromIso/toIso, both full ISO-8601 datetimes). query.filters is an array of {field, op, value}; field names are dot-paths under event_properties / event_context (e.g. 'event_properties.course_slug'). query.breakdownProperty is a single property path that splits the series (caps at 20 distinct values). query.aggregation is {kind: 'count'} (default) or {kind: 'count_distinct', field: 'user_id'}. Returns gap-filled buckets; a missing time bucket is rendered as 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environment_idNo
queryYes
Behavior4/5

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

No annotations are provided, so the description carries full behavioral disclosure. It explains the input envelope, permitted values, defaults (e.g., aggregation default 'count'), and return behavior (gap-filling with zeros). It does not mention permissions or error handling, but given the read-only nature, the transparency is high.

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 well-structured, starting with purpose and usage, then detailing the input envelope. It is slightly long but every sentence adds value and there is no fluff.

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?

Given the absence of an output schema and annotations, the description is quite complete. It explains the input format thoroughly, return behavior, and even references sibling tool 'event_catalog_canonical' for event names. Minor gaps are the lack of explicit mention of read-only nature and permissions, but overall it is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates by explaining each parameter field, allowed enum values, defaults, constraints (e.g., max 20 breakdown values), and the structure of 'range' (relative vs absolute). It adds significant meaning beyond the schema.

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 clearly states the tool executes a one-shot InsightsQuery without saving it, with explicit example questions. It distinguishes from widget creation and provides a clear verb-resource pair.

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?

The description provides concrete usage examples (e.g., 'how many signups yesterday?') and implies it's for one-off queries. However, it does not explicitly state when not to use it or list alternative tools for saved queries.

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/sheepit-ai/sheepit-mcp'

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