Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

YouTube Shorts Stats

youtube_shorts_details

Fetch metadata for public YouTube Shorts, with optional 24-hour caching. Use short URLs only; long-form videos return an error.

Instructions

YouTube Short metadata — same schema as Video Details, with isShort:true; long-form videos get HTTP 422. Costs 1 credit. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

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": "youtube_shorts_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic YouTube Shorts URL, e.g. https://youtube.com/shorts/ID (≤3 min). Long-form videos return HTTP 422 — use the matching /v1/youtube/… endpoint instead. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the credit cost (1 credit), the no-charge conditions (empty results and failures), the cache economics (free 24h hit vs. always-fresh default), and the error behavior for long-form URLs. This is exactly the kind of contract detail an agent needs before spending credits.

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?

One dense sentence with the identity/response-shape claim front-loaded, followed by cost, error, and cache clauses in descending order of importance. No filler; every clause is actionable.

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?

Cost, caching, and failure behavior are fully covered for a 2-param tool with no output schema. The remaining gap is return shape, which is delegated to 'same schema as Video Details' — an agent without that tool's schema loaded gets no field-level expectations.

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 coverage is 100%, so both url and cache are already documented, including the 422 long-form rule and the 0-credit cache hit. The description restates the cache default and cost tradeoff rather than adding new semantics. Baseline 3 is appropriate when the schema does the heavy lifting.

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 (YouTube Short metadata) and immediately scopes it against the long-form case: 'same schema as Video Details, with isShort:true; long-form videos get HTTP 422.' An agent can tell this apart from youtube_video_details without opening either 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 selection rule via the inverse case — long-form videos return 422 and should go to the matching /v1/youtube/… endpoint — plus explicit guidance on when to pass cache=true versus defaulting to fresh. It never names the sibling tool directly, so the agent must map 'Video Details' to youtube_video_details itself.

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