Skip to main content
Glama
friendlygeorge

posthog-mcp-server

execute_insight

Execute a saved PostHog insight by ID to retrieve its results. Find insight IDs using list_dashboards.

Instructions

Execute a saved PostHog insight by ID and return the results. Use list_dashboards to find insight IDs, or pass a raw insight definition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refreshNoForce a fresh computation (default false, uses cache)
insight_idYesThe saved insight ID to execute
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 burden of behavioral disclosure. It only states that results are returned, but does not mention whether execution has side effects, costs, or requires special permissions. The refresh behavior is only implied by schema, not described in text. This is insufficient for an execution tool.

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 concise and front-loaded with the action and resource. The two sentences contain relevant information without extra fluff. However, the vague 'raw insight definition' phrase introduces some ambiguity, reducing clarity slightly.

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?

Given that there is no output schema and no annotations, the description is incomplete for understanding the full behavior. It does not describe what the returned results look like, possible errors, performance implications, or whether the operation is read-only. A tool that executes insights likely needs more context to be used safely.

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?

The schema already covers both parameters with clear descriptions (100% coverage), so the description adds marginal value. It does add a useful cross-reference to list_dashboards, but the phrase 'pass a raw insight definition' is not reflected in the schema and could mislead users about accepted inputs.

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 action: 'Execute a saved PostHog insight by ID' and the result: 'return the results'. It distinguishes itself from sibling tools by explicitly referencing saved insights and pointing to list_dashboards for finding IDs, making the tool's purpose clear and specific.

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 an explicit usage hint: 'Use list_dashboards to find insight IDs', which guides the user on how to obtain a required input. It does not explicitly state when to avoid using this tool or mention alternatives, but the context is clear enough for common use.

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/friendlygeorge/posthog-mcp-server'

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