Skip to main content
Glama
Plausible Analytics MCP Server

Plausible Analytics MCP Server

by er1carruda

get_current_visitors

Retrieves the number of people currently active on your site within the last 5 minutes, so you can check real-time visitor counts and monitor live traffic activity.

Instructions

Get the number of people currently on the site (active in the last 5 minutes)

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose the key behavioral fact — the 5-minute activity window defining "current" — and the wording "the number" implies a single scalar return. However, it says nothing about permissions, sampling, caching/staleness of the count, or rate limits, so an agent still lacks operational context.

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?

A single sentence with the scope qualifier front-loaded in a parenthetical; every clause earns its place and there is no filler. Nothing could be removed without losing the definition of "currently."

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 zero-parameter, single-metric tool this is close to sufficient: the metric and its time window are defined, and the return is implied as a count. The absence of an output schema makes a sentence about the exact response shape (raw integer, object envelope) the only remaining gap.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The parenthetical about the 5-minute window is the only parameter-like decision, and it is stated explicitly rather than configurable.

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?

"Get the number of people currently on the site" pairs a specific verb with a specific resource, and the parenthetical "(active in the last 5 minutes)" pins down what "currently" means, which separates it from the historical/aggregate siblings. It stops short of a 5 because it never names or contrasts an alternative (e.g., get_aggregate, get_timeseries), leaving the agent to infer the distinction.

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 real-time, 5-minute window implicitly signals when this is appropriate (live visitor count) versus historical reporting, but that is inference rather than instruction. There is no explicit "use this when…" / "do not use for…" statement and no mention of the other real-time-adjacent options.

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