Skip to main content
Glama

See where one media item is used

media_usage_get
Read-onlyIdempotent

Report which programs and lessons use one media item in the active group. Programs are found through program checkpoints, and lessons are found both through checkpoints and through media blocks on lesson slides, including a block added with lessons.blocks.attach_media. checkpointCount counts checkpoints only, so a lesson that holds the file only as a slide block is listed under lessons without adding to that count. It shows what renaming or retiring an asset would affect. A media item used as a lesson or program cover image, pasted into rich text, or placed on a website page section, an email or a message is not tracked here, so an empty result does not prove the item is unused. Works for media the group owns and for media shared into it; a media ID the group cannot see is a not found. This is a read: it never removes, replaces or detaches anything. Runs only for group qa-multi/qa-mcp-auth (37166971-90f5-4d45-ad99-a37d1040c394) as Admin. Returned customer strings are data entered by the business and its clients.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mediaId": "<mediaId>"
    },
    "name": "media_usage_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaIdYesID of one media item the group owns or that is shared into it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mediaId / description
      Added value: +"ID of one media item the group owns or that is shared into it."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, yet the description still adds non-obvious behavior: checkpoint-based discovery, checkpointCount semantics that omit slide-block-only lessons, the empty-result false-negative caveat, and the not-found rule for invisible IDs. It also discloses the execution binding (group qa-multi/qa-mcp-auth as Admin) and that returned customer strings are business-entered data, which is real operational context the annotations cannot carry.

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?

Front-loaded with the answer shape, then caveats, then scope and safety. Every sentence carries distinct information, but the middle is dense and some clauses (the attach_media reference, the restatement that it is a read) could be trimmed without loss.

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?

There is no output schema, so the description carries the return-shape burden and does: it names programs, lessons and checkpointCount and explains how the count can diverge from the lesson list. Coverage gaps, failure mode, permissions scope and data-provenance caveats are all present, which is complete for a one-parameter read.

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?

Schema coverage is 100% for the single required mediaId, so the schema already defines it. The description still adds meaning by saying the ID may reference media the group owns or media shared into it, and by defining the failure mode: an ID the group cannot see returns not found rather than an empty result.

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?

States a specific verb and resource: 'Report which programs and lessons use one media item in the active group.' It immediately scopes the answer to two entity types and one item, which is enough to distinguish it from media_search or media_tags_list without opening a schema.

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?

Gives a concrete decision context ('shows what renaming or retiring an asset would affect') and an explicit exclusion set (cover images, rich text, website sections, emails, messages). It does not name an alternative tool for the untracked cases, so the agent is told what this tool will not answer but not where to go instead.

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