Skip to main content
Glama

get_context_document

Retrieve metadata of a context document: source, duration, tags, classification, and available transcript or frames. Use this to quickly orient before reading the transcript.

Instructions

Get one context document's metadata: source (YouTube URL or local file), duration, tags, its server-side classification (video type, whether visual evidence is needed, planned moments), and what transcript/frames are available. Deliberately does NOT return the transcript — call read_context_document for that. START HERE when handed a document: this is the cheapest possible orientation, telling you what the video is and where the words go blind before you spend context on the transcript. A document may be PARTIAL — transcript present with frames: [] while the classification planned moments means frame extraction has not completed; the document is still readable and usable, and re-running the same clipy context import command completes it. Report that state honestly rather than as a failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe context document's public id (or internal id), as returned by list_context_documents.
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: it deliberately omits the transcript, explains that a document can be partial (frames empty while classification indicates pending extraction), and that re-running import completes it. This is comprehensive and honest about what the tool does and doesn't do.

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 description is front-loaded with the main purpose and immediately follows with important caveats. While longer than strictly necessary, every sentence adds value (e.g., partial state handling, sibling guidance). Minor wordiness prevents a 5, but it is well-structured and efficient.

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?

The description covers the metadata returned (source, duration, tags, classification, transcript/frames availability) and explains the partial document scenario. However, it lacks specifics on the structure of classification or tags. Without an output schema, more detail on return format would improve completeness.

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?

The input schema has 100% coverage for the single parameter 'id' with a description already stating it comes from list_context_documents. The tool description repeats this information without adding new semantics about the parameter. Per guidelines, with high schema coverage, baseline is 3.

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 description clearly states the tool retrieves metadata for a context document, listing specific metadata types (source, duration, tags, classification, transcript/frames availability). It explicitly distinguishes itself from read_context_document by noting it does NOT return the transcript, making the purpose distinct from siblings.

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?

The description provides clear guidance on when to use this tool: 'START HERE when handed a document' as the 'cheapest possible orientation'. It also tells the agent when not to use it (for transcript, call read_context_document) and how to handle a partial document state, including the instruction to 'report that state honestly rather than as a failure'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/manovagyanik1/clipy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server