Skip to main content
Glama

campaigns_messages_chart

Daily time series of messages for a campaign. Query params: from=YYYY-MM-DD and to=YYYY-MM-DD (≤180 days apart). Returns three date-keyed dicts: {sent, failed, read} so you can build a throughput / bounce / read-rate chart. Useful for weekly campaign health reports.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/messages-chart/

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "sqid": "<sqid>",
      "to": "<to>"
    },
    "name": "campaigns_messages_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd date (YYYY-MM-DD)
fromYesStart date (YYYY-MM-DD)
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the disclosure burden and does a creditable job: it states the return shape (three date-keyed dicts for sent/failed/read), the 180-day window cap, and the underlying HTTP method and path. It omits permissions/authentication requirements, timezone basis for the daily buckets, and any pagination or volume caveats—the only substantive gaps.

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 front-loaded sentences plus the endpoint line: purpose and output shape first, then the constraint and use case, then the transport detail. Nothing is padded, and the return-shape notation conveys more per word than prose would.

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?

For a no-annotation, no-output-schema chart endpoint, the description supplies what is otherwise missing: the exact result structure and the date-range cap. Remaining unknowns—timezone semantics on daily buckets and required permissions—are minor for an agent to call it correctly, but they are genuine gaps on a data-integrity-sensitive aggregation.

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 67%; `from` and `to` are documented in the schema, but `sqid` has no description anywhere. The description adds real meaning beyond the schema by specifying the ≤180-day span limit and the YYYY-MM-DD format used as query params. The unlabeled `sqid` remains an unexplained identifier for both campaign and workspace context, which keeps this below a 5.

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 specific resource and output shape: 'Daily time series of messages for a campaign' returning `{sent, failed, read}` date-keyed dicts. That is far more specific than a generic list call, and the return shape implicitly separates it from message-listing siblings. It stops short of explicitly naming a sibling or stating when the aggregate view wins over `messages_list`.

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?

'Useful for weekly campaign health reports' gives one concrete use context, and the ≤180-day constraint signals the query window boundary. There is no explicit when-not guidance, no mention of the alternative per-message tools, and no stated prerequisites, so selection guidance is implied rather than spelled out.

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.