Skip to main content
Glama

Get analytics

dosai_get_analytics
Read-onlyIdempotent

Dialogs, leads, conversion and response time for a period, with a daily series, funnel, top sources and spend. A dialog counts only when the assistant actually replied. Without from/to the period is the last 7 days.

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": {
      "project_id": "<project_id>"
    },
    "name": "dosai_get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoYYYY-MM-DD, Almaty time. Omit for the last 7 days.
fromNoYYYY-MM-DD, Almaty time. Omit for the last 7 days.
project_idYesFrom dosai_list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / project_id / description
      Previous value: -"Project id, as returned by dosai_list_projects."New value: +"From dosai_list_projects."
  2. Changed1 schema field changed
    • removedInput schema / properties / project_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false. The description adds useful metric semantics, notably that a dialog counts only when the assistant actually replied, plus the default period. It does not add trust, auth, cost, or output-shape context beyond that.

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 short and front-loaded with the returned metrics, followed by the important dialog-counting rule and default-period note. There is minor redundancy with the schema on the default period, but no significant wasted wording.

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

Completeness3/5

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

With no output schema, the description helps by naming the output sections and clarifying dialog counting. However, for an analytics tool it leaves gaps around metric definitions such as conversion, spend units, and how this differs from narrower analytics tools.

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?

Schema coverage is 100%, and the schema already documents project_id and the YYYY-MM-DD Almaty-time format for from/to. The description repeats the default last-7-days behavior but adds no new parameter meaning beyond the schema, so baseline 3 is appropriate.

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 clearly states the resource and metrics: dialogs, leads, conversion, response time, daily series, funnel, top sources, and spend. It is specific about what is returned, but it does not differentiate from siblings such as dosai_get_funnel or dosai_get_overview.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies use for retrieving analytics over a period, but gives no explicit when-to-use or when-not-to-use guidance. It does not mention alternative tools like dosai_get_funnel, dosai_get_overview, or dosai_get_money_by_day, leaving the agent to infer routing.

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