Skip to main content
Glama
Umami MCP

Umami MCP

by kennethreitz

get_active_visitors

Read-only

Retrieve the current number of active visitors on a specified website using Umami analytics, so you can monitor recent live traffic.

Instructions

How many visitors are on the website right now.

This is Umami's active-visitor count (the last few minutes).

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": {
      "website": "<website>"
    },
    "name": "get_active_visitors"
  }
}

Input Schema

NameRequiredDescriptionDefault
websiteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the one piece of behavior an agent genuinely needs: the measurement window ("the last few minutes"), which is not derivable from the schema or annotations. It still says nothing about return shape or whether the count is site-wide versus filtered.

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?

Two short sentences, front-loaded with the core question the tool answers. The second sentence is not padding — it defines the window — though the trailing newline/quote framing is slightly noisy.

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?

For a single-parameter read tool with no output schema, the definition covers purpose and measurement window but omits two things an agent would want: the accepted format of "website" and what the response looks like (bare integer vs. object). Adequate but with real gaps given 0% schema coverage.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter, "website", with 0% schema description coverage, so the description carries the full burden — and it does not say whether this is a website ID, a domain name, or a slug. The only added meaning is "the website," which restates the schema field title.

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 uses a specific framing — "How many visitors are on the website right now" — and disambiguates it as Umami's active-visitor count over the last few minutes, which separates it from time-series siblings like get_pageviews or get_stats. It never names a sibling explicitly, so differentiation is implied rather than stated.

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 phrase "right now" implies the use case (a live snapshot rather than a historical range report), but there is no explicit when-to-use or when-not-to-use guidance and no alternative named. An agent must infer that get_stats/get_pageviews cover historical windows.

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