Skip to main content
Glama
Primate-Intelligence

Primate Intelligence

Official

create_analysis

Ask a question about a video by submitting a video ID and prompt. Returns the answer, confidence, and clip timestamps.

Instructions

Ask a question about a video (POST /v1/analyses). Provide video_id (video_…) and a free-text prompt like "Is there a person in this video?". Analysis runs asynchronously — use wait_for_analysis to block until done. The result contains answer (yes|no|indeterminate), confidence (0-1), clip timestamps, detected_count (count queries), and indeterminate_reason. Recommended: call validate_analysis first to confirm the prompt is assessable and preview the cost before spending credits. For 2–10 prompts on the same video, use create_analysis_batch (each prompt after the first is billed at 50%).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel id (see list_models). Defaults to the current default model.
promptYesFree-text question about the video, e.g. "Is there a person in this video?"
metadataNoOptional key-value metadata to attach.
video_idYesThe video to analyze (video_… id from create_video_from_url).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
errorYes
modelYes
queryYesCompiled interpretation of the prompt (subjects, conditions, query_type, search_terms, prompt_intent, original_prompt, …). Transparency feature: shows how the question was understood.
usageYesTerminal only. Immutable snapshot of the balance after THIS analysis settled.
objectYes
originYes
promptYes
resultYes
statusYes
optionsYes
livemodeYes
metadataNo
progressYes
video_idYes
artifactsYes
narrativeYes
created_atYes
parse_modeYes
started_atYes
completed_atYes
queue_positionYes
Behavior5/5

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

Beyond annotations (which only indicate readOnly=false etc.), the description discloses key behavior: asynchronous execution, result structure, and cost implications ('preview the cost before spending credits', 'billed at 50%'). This adds valuable context annotations do not provide.

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?

The description is a single dense paragraph, but every sentence serves a purpose: purpose, input, async behavior, result, validation, and batch alternative. It is appropriately sized for a complex tool and front-loaded with the core action.

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?

Given the tool's complexity (async, cost, validation, batch), the description covers all major workflow aspects: how to use, what to expect, prerequisites, and alternatives. Output schema exists, so not explaining return values is acceptable; the description goes beyond by summarizing result fields anyway.

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 parameters are fully documented in the schema. The description reiterates video_id and prompt examples but adds no new meaning beyond schema. Baseline 3 is appropriate; no extra semantic value is added.

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 opens with 'Ask a question about a video (POST /v1/analyses)', clearly stating the verb and resource. It distinguishes the tool from siblings by noting async behavior ('use wait_for_analysis to block'), validation ('call validate_analysis first'), and batch alternative ('use create_analysis_batch').

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?

Explicit guidance is given: when to use this tool (single analysis), when to use alternatives (batch for 2–10 prompts, wait_for_analysis to block), and a recommended pre-step (validate_analysis). This fully clarifies usage vs. siblings and constraints.

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/Primate-Intelligence/primate-intelligence-mcp'

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