Skip to main content
Glama

get_team_analytics

Fetch team analytics metrics by specifying a metric (e.g., agent-edits, dau) with optional date range and user filters.

Instructions

Fetch a team analytics metric (GET /analytics/team/{metric}).

Allowed metrics: agent-edits, tabs, dau, client-versions, models, top-file-extensions, mcp, commands, plans, skills, ask-mode, conversation-insights, leaderboard, bugbot, bugbot-reviews.

Args: metric: Allowlisted metric slug (see docstring list). start_date: Optional start (ISO, YYYY-MM-DD, 7d, today, ...). end_date: Optional end date bound. users: Optional comma-separated emails or user ids. page: Optional page (leaderboard / bugbot* pagination). page_size: Optional page size. include: Required for conversation-insights (comma-separated slices: intents,complexity,categories,guidanceLevels,workTypes). repo: Optional repo filter for bugbot / bugbot-reviews (host/owner/repo). pr_number: Optional PR number filter for bugbot-reviews. dry_run: Optional filter for bugbot-reviews (true=dry-run only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
repoNo
usersNo
metricYes
dry_runNo
includeNo
end_dateNo
page_sizeNo
pr_numberNo
start_dateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are present, so the description must reveal behavioral traits. It mentions the endpoint is GET, implying a read-only operation, but does not disclose permissions, rate limits, or error handling. The list of allowed metrics helps, but more transparency (e.g., 'requires analyst role') would improve the score.

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 structured with a metric list and parameter explanations. It is reasonably concise for the amount of information, though the metrics could be bulleted for clarity. Each sentence contributes value without redundancy.

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 10 parameters and no annotations, the description covers all parameters and provides a list of allowed metrics. The existence of an output schema reduces the need to describe return values. Minor omissions like default pagination behavior prevent a perfect score.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by explaining each parameter: metric, start_date, end_date, users, page, page_size, include, repo, pr_number, dry_run. It provides allowed values, formats, and conditions (e.g., 'include is required for conversation-insights'). This adds significant meaning beyond the raw 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 the tool fetches a team analytics metric with a specific endpoint (GET /analytics/team/{metric}) and lists all allowed metrics. The verb 'Fetch' and the resource 'team analytics metric' are specific and distinct from sibling tools, which focus on agents, members, and other non-analytics functions.

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 explains parameters but does not explicitly state when to use this tool versus other analytics-related siblings like get_analytics_by_user or get_daily_usage_data. The context is implied by the metric list, but no direct guidance on alternatives is provided.

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/PhillipChaffee/cursor-api-mcp'

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