Skip to main content
Glama

Get full media metadata

get_metadata

Extract full metadata for a video/audio URL (title, description, duration, uploader, formats, thumbnails, view counts) without downloading the media. Works on YouTube, TikTok, X, and 1000+ sites. Async: poll check_metadata with the returned jobId. For just title/duration/thumbnail, prefer the faster get_basic_metadata. Runs the same job as POST /metadata in the REST API; to build metadata lookups into the user's app, call get_integration_guide.

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": {
      "url": "<url>"
    },
    "name": "get_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesMedia page URL, e.g. https://www.youtube.com/watch?v=...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the crucial non-obvious trait that this is asynchronous and returns a jobId that must be polled via check_metadata, which explains the readOnlyHint=false despite the operation being a read. It also states the no-download cost profile, the breadth of site support (YouTube, TikTok, X, 1000+ sites), and the REST equivalence to POST /metadata.

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?

Five compact sentences with distinct jobs: scope, coverage, async behavior, cheaper alternative, and API/app routing. The most important constraint (async polling) is surfaced early and no sentence is filler.

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?

With one parameter, no output schema, and no nested objects, the definition supplies everything an agent needs: what comes back, that a follow-up poll is required, and which sibling to use for a lighter-weight or programmatic path. No relevant gap remains for this complexity level.

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 100% and the sole url parameter is already documented with an example in the schema, so the description adds no new parameter semantics. The mention of supported sites gives context for what URL forms are accepted but not rules or formats 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?

The first sentence states a specific verb ('Extract full metadata') and resource ('a video/audio URL') and enumerates exactly what the metadata contains (title, description, duration, uploader, formats, thumbnails, view counts), while clarifying it does not download the media. It is directly distinguishable from get_basic_metadata, check_metadata, and get_integration_guide named in the same paragraph.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use routing: for just title/duration/thumbnail, use the faster get_basic_metadata; to embed metadata lookups in an app, call get_integration_guide; to retrieve this job's result, poll check_metadata. Each alternative is paired with the condition that selects it, leaving nothing to inference.

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.