Skip to main content
Glama
speakai

Speak AI MCP Server

Official
by speakai

Get Chat Statistics

get_chat_statistics
Read-onlyIdempotent

Retrieve usage statistics for chat prompts, with optional date filtering to track prompt usage over time.

Instructions

Get usage statistics for Magic Prompt / chat. Returns metrics on prompt usage, optionally filtered by date range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endDateNoEnd date for stats (ISO 8601)
startDateNoStart date for stats (ISO 8601)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoResponse payload from the Speak AI API
Behavior4/5

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

Annotations already indicate safe read-only behavior. The description adds useful context: returns metrics and allows date filtering, which aligns with the read-only nature without introducing contradictions.

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 succinct sentences with clear structure: states purpose, then what it returns and optional filtering. Every sentence serves a purpose without redundancy.

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 an output schema present, the description is complete: it explains what the tool does, what it returns, and the optional filtering. No additional details are needed for effective use.

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?

Both parameters have descriptions in the schema (ISO 8601 format), so schema coverage is 100%. The description only reiterates 'optionally filtered by date range', adding no new semantic 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 it retrieves usage statistics for Magic Prompt/chat, specifying the resource and what is returned (metrics on prompt usage). It distinguishes from sibling tools like get_chat_history or get_chat_messages by focusing on statistics.

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?

The description mentions optional date range filtering, implying use for time-bound statistics, but does not explicitly state when to use or avoid this tool compared to alternatives like get_chat_history or list_prompts.

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/speakai/speakai-mcp'

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