Skip to main content
Glama

Get media stats

get_media_stats
Read-onlyIdempotent

Count the media you can see in the workspace by kind: images, videos, audio, models, animations, sprites, documents, and lotties. exact is false while the counts are still being rebuilt.

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_media_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdNoOnly media in this project, by ID or slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds real value by disclosing eventual consistency ('exact is false while the counts are still being rebuilt'), but leaves out visibility semantics ('media you can see') and whether counts are cached or scoped to permissions.

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 sentences, fast to scan, with the core purpose front-loaded. The fragment 'exact is false' is cryptic without the field's context (no output schema), which mildly undercuts clarity despite the compactness.

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 read-only aggregate tool with no output schema and a single documented parameter, the description covers what is counted, how it is grouped, and the caveat about provisional values. Only the shape of the 'exact' field and the visibility rules remain under-explained.

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 single projectId parameter is fully documented in the schema and the description's 'media you can see in the workspace' reinforces the scoping concept (workspace-wide versus project-restricted). This is a marginal but real supplement to a 100%-covered schema, so slightly above baseline.

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?

States a specific verb ('count') and resource ('media') plus the grouping dimension ('by kind') and enumerates the kinds counted. The 'count' framing inherently separates it from get_media/list_media, which return items rather than aggregates, though no sibling is named explicitly.

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?

Usage is implied: reach for this when you need aggregate counts rather than media records. There is no explicit when-to-use statement, no exclusion, and no mention of an alternative for per-item or filtered listings.

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