Skip to main content
Glama

workspaces_stats

What the workspace dashboard shows for the selected range:

  • kpis.leads_added, kpis.messages_sent, kpis.connects_spent — {total, prev, delta_pct, spark}. Connects are account-wide.

  • kpis.reply — {contacted, replied, interested, reply_rate, interested_rate, prev_reply_rate, delta_pct, spark}. Rates are percentages per lead: distinct leads with a REPLIED campaign step in the window (by reply time) ÷ distinct leads sent a delivered campaign message in the window; interested counts those replied leads whose status is now INTERESTED. The same definition as campaigns_stats, over the workspace's active and paused campaigns (archived and cancelled ones are excluded).

  • top_campaigns — up to 5 active or paused campaigns with ≥20 sends in the window, best reply rate first.

?days= is one of 0 (all time), 7, 14 (default), 30. For all time there is no previous window: prev, prev_reply_rate and delta_pct are null and spark is empty.

Method: GET /api/v1/workspaces/{workspace_sqid}/stats/

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": "workspaces_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow: 0 = all time, else the last N days (default 14).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the HTTP method (GET /api/v1/...), the exact population of campaigns included (active and paused only; archived and cancelled excluded), the default window, and the edge-case behavior for all-time (prev, prev_reply_rate, delta_pct are null and spark is empty). It omits auth/permission requirements and rate limits, which keeps it short of a 5.

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?

Front-loaded with the core scope statement, then organized as per-field bullets with no filler sentences. The lengthy kpis.reply explanation is justified because there is no output schema, though it is dense enough that a reader has to work to parse the rate definition.

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?

Because there is no output schema, the description must document return values, and it does so field by field, including null/spark behavior for all-time. The one gap is that the shape of individual top_campaigns entries (which fields each campaign carries) is never described, so the agent knows the selection rule but not the entry contents.

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% and the enum description already covers the days values, so the baseline is 3. The description goes beyond the schema by explaining the downstream consequence of days=0 (no previous window, so prev/prev_reply_rate/delta_pct are null and spark is empty), which is genuinely useful semantic guidance not present in the schema.

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 makes clear this returns the workspace-level dashboard metrics payload for a selected time range, and spells out the concrete blocks (kpis, reply, top_campaigns). It distinguishes itself from campaigns_stats by explicitly saying the reply metric is 'the same definition as campaigns_stats, over the workspace's active and paused campaigns', which lets an agent pick the right scope. It never states a crisp verb+resource opener ('Get workspace stats') but the scope is unambiguous.

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: an agent infers this is the workspace-wide aggregate counterpart to campaigns_stats from the cross-reference. There is no explicit when-to-use/when-not-to-use guidance and no statement of prerequisites (e.g., required workspace permissions), though the archived/cancelled exclusion effectively defines what data is in scope.

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.