Skip to main content
Glama

Get asset

get_asset
Read-onlyIdempotent

Get a single published asset by slug or media id, including its absolute CDN URL, content type, and size. Use this to confirm an asset exists and fetch the URL to embed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNothe asset slug (provide this or media_id)
media_idNothe asset's media id (provide this or slug)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
slugYes
statusNo
media_idYes
created_atNo
size_bytesNo
updated_atNo
content_typeNo
display_nameNo
original_filenameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive behavior; the description adds that only published assets are returned and that the call can confirm existence. No contradictions with annotations.

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 fluff: states the operation, key output fields, and a concrete use case. Information is front-loaded and easy to scan.

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?

For a simple lookup-by-identifier tool, the description provides enough context to use it correctly: target, identifier options, and purpose. The output schema exists, so detailed return fields are not required in the description.

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?

Both parameters have descriptions and the description makes clear they are alternative lookup keys. However, the schema does not enforce one-of/either-or, and no format or validation details are provided, so the description adds little beyond the 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?

Clearly specifies the action ('Get'), target ('single published asset'), and key result ('including absolute CDN URL, content type, and size'). The 'single' qualifier distinguishes it from list-type siblings such as list_assets.

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?

Explicitly states when to use the tool: to confirm an asset exists and fetch a URL to embed. It does not mention alternatives or state when not to use it, so it falls just short of full guidance.

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