Skip to main content
Glama

Get an asset

get_asset
Read-only

Fetch an asset's fresh one-hour URL and preview image, plus status guidance for upload, processing, failure, or deletion to determine the next step.

Instructions

Read one asset with a fresh url (an hour) and a small preview picture to look at; warnings says when a clip was re-encoded. awaiting_upload: PUT the file; processing: read again shortly; failed: error.code; deleted: asset_not_found. Free.

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": {
      "asset_id": "<asset_id>"
    },
    "name": "get_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.39.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Addedv0.33.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint/destructiveHint; the description goes well beyond them by disclosing url TTL (one hour), the presence of a small preview, a warnings field flagging re-encoded clips, the status state machine with its error signalling, and that the call is free. It does not mention any auth/permission requirements, which is the main remaining gap.

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 return payload is front-loaded and every clause carries information; no filler sentences. The telegraphic semicolon style is dense and readable to an agent, though the status handling could be structured as a short list rather than a run-on.

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 single-parameter read with no output schema, the description covers what comes back (url with expiry, preview, warnings) and how to react to each status value, including the not-found case. Only the id format and any permission requirements are left unaddressed.

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 0% and the single asset_id parameter (pattern ^ast_[a-f0-9]{32}$) is not described in the text at all. The phrase "Read one asset" implies the parameter identifies which asset, but no format hint or sourcing guidance (e.g., from list_assets) is added.

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?

The description uses a specific verb+resource ("Read one asset") and immediately specifies the payload shape an agent gets back: a fresh url valid for an hour plus a small preview picture. It reads as a single-item fetch, which separates it in spirit from list_assets, though it never names that sibling explicitly.

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?

Strong conditional guidance keyed on the asset's status field: awaiting_upload means PUT the file, processing means poll again shortly, failed means inspect error.code, deleted means treat as asset_not_found. That is actionable when-to-use/when-not logic, though it never states the alternative to call when you want many assets.

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