Skip to main content
Glama

Search analyzed videos

search_videos
Read-only

Semantic search over your own ANALYZED videos — those with a completed deep analysis — ranked by relevance to the query. Prefer this over list_videos when you want videos matched by what's actually in them (hooks, scenes, topics) rather than by caption text. Returns {"videos": [...]}; an empty list carries a reason (no_connected_accounts → connect_url, or no_matching_videos). When more matches exist beyond this page the response includes next_cursor — pass it back as cursor (same query/filters) to fetch the next page; when next_cursor is absent you have everything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of videos per page (default 10).
queryYesWhat to look for inside your analyzed videos (themes, topics, on-screen content).
cursorNoOpaque pagination cursor — pass the next_cursor from the previous page verbatim to fetch the next page (keep the same sort/filters). Omit for the first page.
platformNoOptional platform filter — instagram, tiktok, or youtube (case-insensitive). Omit to span all connected platforms.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoPresent only when videos is empty — why it is empty.
videosYes
connect_urlNoWhere to connect an account; present only with reason='no_connected_accounts'.
next_cursorNoOpaque cursor for the next page; present only when more results exist. Pass it back as `cursor` with the same filters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque pagination cursor — pass the next_cursor from the previous page verbatim to fetch the next page (keep the same sort/filters). Omit for the first page."
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of videos to return (default 10)."New value: +"Maximum number of videos per page (default 10)."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / description
      Added value: +"Output of `list_videos` / `search_videos`. `reason` appears only when\n`videos` is empty: 'no_matching_videos' (accounts connected, nothing\nmatched) or 'no_connected_accounts' (then `connect_url` is also present).\n`next_cursor` appears only when the listing was truncated — its absence is\nthe \"you have everything\" signal."
    • addedOutput schema / properties
      Added value: +{
      +  "connect_url": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Where to connect an account; present only with reason='no_connected_accounts'."
      +  },
      +  "next_cursor": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Opaque cursor for the next page; present only when more results exist. Pass it back as `cursor` with the same filters."
      +  },
      +  "reason": {
      +    "anyOf": [
      +      {
      +        "enum": [
      +          "no_matching_videos",
      +          "no_connected_accounts"
      +        ],
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Present only when videos is empty — why it is empty."
      +  },
      +  "videos": {
      +    "items": {
      +      "properties": {
      +        "analysis_available": {
      +          "default": false,
      +          "type": "boolean"
      +        },
      +        "analysis_preview": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "caption": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "creator_username": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "duration": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "metrics": {
      +          "anyOf": [
      +            {
      +              "properties": {
      +                "comments": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "engagement_rate": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "likes": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "saves": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "shares": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "views": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "owned_by_user": {
      +          "default": false,
      +          "type": "boolean"
      +        },
      +        "platform": {
      +          "type": "string"
      +        },
      +        "post_created_time": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "post_id": {
      +          "type": "string"
      +        },
      +        "post_url": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "thumbnail_url": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "platform",
      +        "post_id"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "videos"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of videos to return (default 10)."
    • addedInput schema / properties / platform / description
      Added value: +"Optional platform filter — instagram, tiktok, or youtube (case-insensitive). Omit to span all connected platforms."
    • addedInput schema / properties / query / description
      Added value: +"What to look for inside your analyzed videos (themes, topics, on-screen content)."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds significant detail beyond annotations: response structure, empty list reasons, pagination cursor semantics (next_cursor/cursor, same query/filters). No contradiction with readOnlyHint=true.

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?

Front-loaded with purpose, dense but clear. Second sentence combines multiple details (response shape, empty case, pagination) effectively. Slightly dense but no wasted words.

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 4-parameter tool with output schema, description covers empty responses and pagination thoroughly. Distinguishes from key sibling list_videos. Complete for its complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all 4 parameters with descriptions. Description reinforces semantic search context and clarifies cursor usage for pagination, adding value beyond schema alone.

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?

Description clearly states it performs semantic search over analyzed videos, ranking by relevance. It explicitly distinguishes from list_videos by contrasting content-based vs caption-text matching.

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?

Provides explicit preference over list_videos for content-based matching. Describes empty response reasons (no_connected_accounts, no_matching_videos) and pagination behavior. Lacks exclusions for other siblings but sufficiently covers the primary alternative.

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.