Skip to main content
Glama

Where a library asset is used

asset_usage
Read-only

Check where a library asset is used as intro, outro, overlay, or music across projects, clips, and layer templates before deleting it.

Instructions

Where a library item is used: as intro, outro, overlay or music on projects and clips (replaced clips left out), and in layer templates. Returns { projects: [{ id, title, slots, clips: [{ id, index, title, slots, via, overlays, music }] }], templates: [{ id, name, layers }] }. A deleted asset's layer is skipped when a template is applied. Check before deleting one.

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": {
      "assetId": "<assetId>"
    },
    "name": "asset_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetIdYesLibrary asset id (from search_assets)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.19.1

TDQS

A3.9/5.0
Behavior3/5

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

readOnlyHint=true already declares this as a safe read, so the description's job is to add context. It does add real caveats: replaced clips are excluded, and a deleted asset's layer is skipped when a template is applied. But it does not discuss pagination, volume limits, or behavior for an unknown asset id, leaving the behavioral picture partial.

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 purpose and the key caveat are front-loaded, and the inline return shape compensates for the missing output schema. The schema literal is dense, but on balance each element carries information rather than padding.

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?

With no output schema, describing the returned projects/clips/templates structure is genuinely valuable, and the exclusion and deleted-layer notes cover the main surprise cases. What remains thin is failure behavior for an invalid asset id, which keeps it from a 5.

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?

There is a single parameter, assetId, at 100% schema description coverage that already points the agent to search_assets. The description adds nothing about that parameter's format or edge cases, so the baseline 3 for a fully documented schema 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?

States a specific resource and relationship: where a library item is used, enumerated as intro, outro, overlay, or music on projects and clips plus layer templates. That is precise enough to separate it from mutating siblings like delete_asset or update_asset without opening any 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 clear conditional use case: 'Check before deleting one,' which routes the agent to this tool ahead of delete_asset or purge_asset. It does not spell out explicit when-not cases or name a sibling by name, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools