Skip to main content
Glama

get_file_usage_stats

Read-only

Get file usage and engagement statistics including download counts, view counts, most active users, search trends, and geographic/browser/OS analytics. Use this to answer questions about file popularity, engagement, user activity, and access patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results per metric (default: 10, max: 50)
date_toNoOptional ISO date string for end of date range (e.g., "2026-03-04")
metricsYesArray of metrics to retrieve. Options: most_downloaded (top files by download count), most_viewed (top files by view count), active_users (most active users), view_trends (daily view counts), top_searches (most frequent search terms), geo_analytics (access by country), browser_analytics (access by browser), os_analytics (access by OS)
date_fromNoOptional ISO date string for start of date range (e.g., "2026-01-01")
workspace_idNoOptional workspace ID to filter by. If omitted, searches across all accessible workspaces.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds that this returns aggregated statistics rather than raw events, which is mildly useful, but it does not add material behavioral context beyond what annotations and the output schema imply.

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?

Two sentences with no filler. The first sentence states what the tool returns and the metric categories; the second provides usage context. Everything earns its place.

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

Completeness5/5

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

Given the 100% schema coverage, an output schema, and read-only annotations, the description is complete for an agent to decide when to call and what to expect. Specific parameter defaults and date/workspace behavior are already fully specified in the input schema.

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%, with each parameter already documented and the metrics enum fully expanded in the schema. The description adds no new parameter-level meaning, so the baseline score of 3 is appropriate.

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 uses a specific verb ('Get') with a clear resource ('file usage and engagement statistics') and enumerates concrete metric categories: download counts, view counts, active users, search trends, and geographic/browser/OS analytics. This distinguishes it from all siblings, none of which appear to offer analytics-style aggregation.

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 explicitly says 'Use this to answer questions about file popularity, engagement, user activity, and access patterns,' giving clear guidance on when to invoke the tool. It does not enumerate exclusions or alternatives, but there are no close sibling tools competing for this use case.

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