Skip to main content
Glama

Get automation insights

sprkly_get_automation_insights
Read-only

What automations did over the last 7, 30 or 90 days: people messaged, messages sent (DMs, private replies, comment replies), active conversations (people who wrote in or were messaged), comments and DMs in (split), new contacts (and how many came by DM), emails captured and link clicks with the click rate, each against the period before. Also per day, and split by automation, keyword, post, account and campaign; each by_post row carries the reach and views of that post (null until fetched). Leads (who was reached, with emails they agreed to share) only with include ["leads"] and inbox access. One DM per person per post: a comment from someone who already got a DM on that post sends nothing, so comments in can run ahead of people messaged. That is the rule working, not a fault. Read notes before comparing numbers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sprkly_get_automation_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
flow_idNoOnly this automation (the automation_id from sprkly_list_automations).
includeNoWhich parts to return. Default: everything but leads.
campaignNoOnly automations in this campaign.
profile_idNoOnly this connected account.
range_daysNoHow many days back: 7, 30 or 90. Default 30. On Free, 30 and 90 return this month so far; range.returned says which.
leads_limitNoHow many leads, newest first. Up to 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / range_days / description
      Previous value: -"How many days back: 7, 30 or 90. Default 30."New value: +"How many days back: 7, 30 or 90. Default 30. On Free, 30 and 90 return this month so far; range.returned says which."
  2. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/non-destructive annotations, the description discloses real behavioral nuance: by_post reach and views are null until fetched, leads are gated on both the include value and inbox access, and the one-DM-per-person-per-post rule explains why comments in can exceed people messaged. That last point preempts a plausible misinterpretation of the data and is exactly the kind of context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is dense and almost entirely relevant, and the resource statement is front-loaded, but it arrives as one long run-on paragraph mixing metric definitions, filter semantics, caveats and a plan note. Bullet-style separation of metrics versus caveats would make it much easier to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and a zero-required-parameter surface, the description carries the full burden of explaining return values and does so thoroughly, covering every include section plus caveats about nulls and access. An agent can call it and interpret its results without further context.

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

Parameters4/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 earns an extra point by mapping the abstract include values to concrete output content (split by automation, keyword, post, account, campaign) and by reiterating that leads are only emitted under include ["leads"]. It adds interpretation, not just restatement, though it does not clarify the interaction between flow_id, campaign and profile_id filters.

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 names a clear verb and resource — what automations did over 7/30/90 days — and enumerates the specific metrics returned (people messaged, messages sent, comments/DMs in, new contacts, emails captured, link clicks). It never distinguishes itself from adjacent analytics siblings such as sprkly_get_analytics, sprkly_get_engagement_summary or sprkly_get_automation_usage, so an agent must infer the boundary rather than read it.

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?

It gives operative guidance for getting the tool's output right (leads require include ["leads"] plus inbox access; read `notes` before comparing numbers), which is genuinely useful. But there is no explicit when-to-use versus alternatives, and no exclusion telling the agent to prefer a different analytics tool for account-level or engagement-level numbers.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources