Skip to main content
Glama

Get workspace analytics

get_workspace_analytics
Read-only

Get a workspace-wide analytics overview: total visitors and views, top traffic sources, and a per-page ranking by visitors and leads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_idNoWhich workspace to act in. Only meaningful when this connection can access more than one workspace: omit it and you get an error listing the available workspace ids (also available from list_sites) to choose from. On a single-workspace connection, omit it or pass that workspace's own id; a different id is rejected.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNo
availableYes
fetchedAtNo
pageCountNo
totalViewsNo
viewsByDayNo
pageRankingNo
totalVisitorsNo
trafficSourcesNo

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the read-only nature is covered. The description adds context on the scope (workspace-wide) and the type of metrics returned, but provides no further behavioral details such as time ranges or aggregation methods. This adds moderate value beyond annotations.

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?

The description is a single, well-structured sentence that front-loads the action and scope, then lists the specific analytics components. No wasted words or redundant information.

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?

Given the tool's simplicity (one optional parameter, output schema exists), the description adequately states what the tool returns. It lists key metrics but doesn't mention potential limitations like time frame or granularity; however, these are likely covered by the output schema. Overall, it is complete enough for its purpose.

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 description coverage is 100%: the workspace_id parameter is already fully described in the schema with guidance on omitting vs passing different IDs. The description itself adds no parameter-related information, so it meets the baseline for high coverage.

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 the tool's function: 'Get a workspace-wide analytics overview' and lists specific metrics (total visitors and views, top traffic sources, per-page ranking). This distinguishes it from sibling get_page_analytics, which focuses on individual pages.

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

Usage Guidelines4/5

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

The description implies the tool is for workspace-wide analytics by using 'workspace-wide' and listing aggregated metrics. It does not explicitly mention alternatives or when not to use it, but the context and contrast with get_page_analytics are clear enough.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool has a distinct purpose, with clear differentiation between creating standalone pages vs. adding to sites, and separate analytics for pages, sites, and workspaces.

Naming Consistency4/5

Mostly follows verb_noun pattern, but uses both 'add' and 'create' for similar actions, and 'delete' vs 'remove' inconsistently.

Tool Count4/5

20 tools cover a broad range of functionality (pages, sites, redirects, scripts, webhooks, analytics, leads), which is reasonable but slightly on the higher side.

Completeness3/5

Covers CRUD for most entities, but lacks delete operations for pages, sites, scripts, and webhooks (except redirects), leaving notable gaps.

Resources