Skip to main content
Glama
Primate-Intelligence

Primate Intelligence

Official

@primate-intelligence/mcp

npm license

MCP (Model Context Protocol) server for the Primate Vision video analysis API — a video understanding API by Primate Intelligence (docs · llms.txt).

Gives AI agents video scene understanding as tools: register a video, ask a question in plain English, get a deterministic answer with a confidence score and clip timestamps. No hallucinated descriptions — the answer is yes / no / indeterminate with evidence.

Try it for free

A free test key requires no email, no card, no signup:

curl -X POST https://api.primateintelligence.ai/v1/sandbox

Your AI agent can do this for you — right from Claude. Point it at primateintelligence.ai/llms.txt and it can discover, provision, integrate, and self-verify with zero human steps.

Related MCP server: mcp-video-analyzer

Two ways to connect

Streamable HTTP endpoint with full OAuth 2.1 + Dynamic Client Registration + PKCE:

https://api.primateintelligence.ai/mcp

In Claude.ai / Claude Desktop: Settings → Connectors → Add custom connector, paste the URL, sign in. No API key handling — the OAuth flow issues and rotates tokens for you.

2. Local stdio server

// claude_desktop_config.json · .mcp.json · mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "primate-intelligence": {
      "command": "npx",
      "args": ["-y", "@primate-intelligence/mcp"],
      "env": { "PRIMATE_API_KEY": "pv_live_…" }
    }
  }
}

Tools

Tool

Does

Read-only

create_video_from_url

Register a video from a public https URL (POST /v1/videos)

create_analysis

Ask a question about a video (POST /v1/analyses)

validate_analysis

Dry-run a prompt: assessability + cost estimate, zero credits (validate_only: true)

create_analysis_batch

2–10 prompts on one video; each after the first billed at 50% (POST /v1/analyses/batch)

get_analysis

Fetch analysis status/result (GET /v1/analyses/{id})

wait_for_analysis

Poll until terminal state; returns { analysis, retry }

list_models

List available models (GET /v1/models)

get_usage

Credit balance + period meters (GET /v1/usage)

get_credits

Balance + per-analysis transaction ledger (GET /v1/credits)

get_test_fixture

Stable fixture for integration self-verification (GET /v1/test-fixture)

Every tool carries MCP annotations (title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint), declares an outputSchema, and returns structuredContent conforming to it. No tool deletes data. Tool descriptions and schemas mirror the OpenAPI document at GET /v1/openapi.json — the spec is the source of truth.

Typical agent flow

  1. get_test_fixture → verify the integration works (test keys return deterministic results, no quota burn)

  2. create_video_from_url with the video URL

  3. validate_analysis → confirm the prompt is assessable + preview estimated_cost_usd (free)

  4. create_analysis with the question — "Is there a person in this video?" — or create_analysis_batch for several

  5. wait_for_analysisresult.answer (yes | no | indeterminate) + result.confidence + result.clips + result.detected_count (count queries) + result.indeterminate_reason

  6. On insufficient_credits: call get_credits, report the balance + recent debits, point the human at billing

Security contract

The API key is read from the PRIMATE_API_KEY environment variable only. No tool accepts a key, token, or secret as an argument — so credentials never land in agent transcripts, tool-call logs, or model context. This is enforced by a unit test that fails the build if any tool schema grows a credential-shaped parameter.

Errors surface the machine-readable error code, a docs_url, and the request_id so an agent can self-correct without a human in the loop.

Configuration

Var

Required

Default

PRIMATE_API_KEY

yes

PRIMATE_BASE_URL

no

https://api.primateintelligence.ai

Development

npm install
npm test        # vitest — tool surface, security contract, polling, error shape
npm run build   # tsc → dist/

License

MIT © Primate AI, Inc.

Available Tools

10 tools
create_analysisAInspect

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%).

ParametersJSON 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

ParametersJSON Schema
NameRequiredDescription
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

TDQS

A4.7/5.0
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.

create_analysis_batchAInspect

Run 2–10 prompts against the SAME video in one call (POST /v1/analyses/batch). Pricing: the first prompt is billed at full price, each additional prompt at 50% — always cheaper than separate create_analysis calls for multi-question workloads. Returns an analysis_batch with every analysis resource plus a pricing summary; poll each analysis id individually with get_analysis or wait_for_analysis. To check assessability of individual prompts first, use validate_analysis (free).

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNoModel id (see list_models). Defaults to the current default model.
promptsYes2–10 free-text prompts. First is full price; each additional is billed at 50%.
metadataNoOptional key-value metadata attached to every analysis in the batch.
video_idYesThe video to analyze (video_… id).

Output Schema

ParametersJSON Schema
NameRequiredDescription
idYes
objectYes
pricingYes
analysesYes
video_idYes

TDQS

A4.5/5.0
Behavior4/5

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

The description discloses important behavioral details beyond annotations: the first prompt is full price and each additional is 50% off, the result includes a pricing summary, and each analysis id must be polled individually. Since annotations only provide generic flags (readOnlyHint=false, destructiveHint=false), the description carries the transparency burden well. A slight gap is that it doesn't explicitly mention a credit deduction or that this creates persistent resources, but the pricing information strongly implies it.

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?

Three sentences, each earning its place: main action, pricing incentive, and follow-up/alternative guidance. The most important info is front-loaded, and no filler words exist.

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?

The description covers the creation call, pricing, return structure, how to retrieve results, and when to use an alternative. With an output schema present, the tool is fully specified for an agent to invoke correctly without guesswork.

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?

Input schema covers 100% of parameter descriptions, so the baseline is 3. The description reinforces the prompts parameter with the pricing tier (first full, additional 50%) which is already stated in the schema. It does not add new meaning for video_id, model, or metadata beyond what the schema provides.

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 a specific verb and resource: "Run 2–10 prompts against the SAME video in one call" and explicitly names the endpoint POST /v1/analyses/batch. It clearly differentiates from siblings by emphasizing batch execution on the same video, which is the unique capability versus create_analysis or validate_analysis.

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 explicitly states when to use this tool: "always cheaper than separate create_analysis calls for multi-question workloads," and tells the user to use validate_analysis for pre-checking assessability, and to poll with get_analysis or wait_for_analysis for individual results. It clearly contrasts with alternatives and gives direct guidance.

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

create_video_from_urlAInspect

Register a video from a public https URL for analysis (POST /v1/videos, URL-ingest mode). The API fetches the video asynchronously — the returned video starts in status "processing" and becomes "ready". Supports video/mp4 and video/quicktime, max 2 GiB. Returns the video resource with its id (video_…).

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesPublic https URL of the video to ingest (https only, port 443).
metadataNoOptional key-value metadata to attach.

Output Schema

ParametersJSON Schema
NameRequiredDescription
idYes
fpsYes
errorYes
widthYes
heightYes
objectYes
sourceYes
statusYes
uploadYes
filenameYes
livemodeNo
metadataNo
created_atYes
duration_sYes
expires_atYes
size_bytesYes
content_typeYes

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations, the description discloses key behaviors: the video is fetched asynchronously, status transitions from 'processing' to 'ready', supports specific formats (mp4/quicktime) and size limits (2 GiB), and returns a video id. This adds significant operational context not evident from annotations.

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?

Three sentences, each fact-dense: purpose/endpoint, async behavior, and supported constraints/return. No redundancy or filler. Every sentence earns its place.

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 output schema and annotations, the description covers all essential aspects: what it does, how it behaves (async), constraints, and return value. It is sufficiently complete for an agent to decide when and how to invoke this tool.

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 coverage is 100%, so parameters are already described. The tool description adds extra constraints (format and max size) on the URL parameter, going beyond the schema's description. This adds meaningful value despite high schema coverage.

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 uses a specific verb 'Register' and clearly names the resource ('a video from a public https URL') and mode ('URL-ingest'). It differentiates from sibling tools like create_analysis by specifying it creates a video resource rather than an analysis.

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?

The description provides clear context: it is for URL-based video ingestion for analysis, and notes asynchronous fetching. It does not explicitly mention alternatives or when not to use, but the context is unambiguous and sufficient for tool selection.

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

get_analysisA
Read-only
Inspect

Fetch an analysis by id (GET /v1/analyses/{id}). While running, shows live progress and queue_position. When status is "completed": result.answer (yes|no|indeterminate), result.confidence (for count queries this is confidence in the count itself), result.clips, result.detected_count (count-intent queries only; 0 = assessable but nothing found), result.indeterminate_reason (low_confidence — retry with a more specific prompt; nothing_detected — genuinely empty; unsupported_query_form — rephrase as yes/no or count; duration_mismatch — result untrusted), and result.video_duration_s (null when duration could not be determined). usage is {billed_seconds, credit_balance_after} — an immutable post-settlement snapshot.

ParametersJSON Schema
NameRequiredDescriptionDefault
analysis_idYesThe analysis id (an_…).

Output Schema

ParametersJSON Schema
NameRequiredDescription
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

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description goes far beyond by detailing the live progress fields, the full result object with all possible indeterminate_reason values, and the immutable usage snapshot. This adds significant behavioral context about what to expect in various states.

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 long but every sentence provides essential information about the response format and edge cases. It is front-loaded with the core action and then systematically enumerates fields and their meanings, with no filler or redundancy.

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 single-parameter fetch tool with complex response semantics, the description is exceptionally complete. It covers the running state, completed result fields, the usage snapshot, and explains each indeterminate_reason, leaving no major gaps for an agent to invoke or interpret the result.

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% with a clear parameter description ('The analysis id (an_…).'). The tool description does not add extra meaning about the parameter itself, so the baseline of 3 is appropriate.

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 starts with 'Fetch an analysis by id (GET /v1/analyses/{id})', a specific verb+resource that exactly matches the tool name and clearly distinguishes it from siblings like wait_for_analysis or create_analysis. It also provides a detailed preview of the response, reinforcing what the tool does.

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

Usage Guidelines3/5

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

The description implies usage by explaining the behavior during running and completed states, but it does not explicitly state when to use get_analysis instead of sibling tools like wait_for_analysis. There are no exclusions or alternative recommendations, so it stops at implied context.

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

get_creditsA
Read-only
Inspect

Get the credit balance and transaction ledger for this API key (GET /v1/credits). Returns balance_seconds (the authoritative balance, in billable seconds), grant_seconds, used_seconds, and a paginated transaction list where each debit carries the analysis/stream id it came from (source_id, source_type). Use this to audit what each analysis cost, check the balance before a batch job, or diagnose an insufficient_credits error.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoTransactions per page (default 20).
beforeNoCursor — return transactions older than this id.

Output Schema

ParametersJSON Schema
NameRequiredDescription
objectYes
has_moreYes
transactionsYes
used_secondsYes
grant_secondsYes
balance_secondsYesSeconds of analysis remaining. The authoritative balance.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known. The description adds valuable behavioral context: it identifies balance_seconds as the authoritative balance, explains the transaction list is paginated, and notes that each debit carries source_id/source_type. This goes beyond the annotation hints.

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 three sentences, front-loaded with the main purpose, followed by return structure and use cases. Every sentence is informative, with no redundancy. It is both concise and well-structured.

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 output schema exists and the tool is a straightforward read-only query, the description is complete. It explains the return fields, the pagination behavior, and the practical use cases. There is no missing context that would hinder the agent's ability to use the tool correctly.

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%, with both parameters (limit and before) having descriptions. The description does not add any additional parameter-level detail beyond what the schema already provides, so the baseline score of 3 is appropriate.

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 starts with a specific verb and resource: 'Get the credit balance and transaction ledger for this API key'. It clearly distinguishes this from siblings like get_usage by focusing on credits, balance, and transaction ledger, and even specifies the endpoint. This is a model of purpose clarity.

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?

The description provides explicit use cases: 'audit what each analysis cost, check the balance before a batch job, or diagnose an insufficient_credits error.' This gives the agent clear when-to-use guidance. However, it does not mention any alternatives or exclusions (e.g., when NOT to use it), so it falls just short of a 5.

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

get_test_fixtureA
Read-only
Inspect

Get the stable test fixture (GET /v1/test-fixture): a video URL + prompt + expected answer for verifying an integration end-to-end without burning quota. Test-mode (pv_test_) keys return deterministic canned results.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
fixturesNo
descriptionNo

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds important behavior: the tool returns a static fixture, does not consume quota, and test-mode keys yield deterministic canned results. These details go beyond annotations and help the agent understand the tool's side-effect-free nature.

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 two sentences, with the core purpose stated upfront. Every clause provides relevant information: endpoint, content, purpose, quota savings, and test-mode behavior. No fluff or redundancy.

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 parameterless tool with an output schema and comprehensive annotations, the description covers all needed context: what it returns, why to use it, and how test-mode affects results. There are no gaps in understanding when or how to invoke it.

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?

The tool has zero parameters, and the schema reflects this with an empty properties object. The description need not explain parameters. Since there are no params, the baseline of 4 is appropriate; the description doesn't need to compensate for any missing parameter info.

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 'Get the stable test fixture (GET /v1/test-fixture)' with a specific verb and resource, and enumerates the exact contents: 'a video URL + prompt + expected answer'. It distinguishes itself from sibling tools by focusing on testing/verification use case, making it unmistakable.

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?

The description explains when to use this tool: 'for verifying an integration end-to-end without burning quota', and adds a conditional about test-mode keys. It implies this is for testing scenarios, but does not explicitly mention alternatives or when not to use it. Since siblings are unrelated, this is clear enough.

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

get_usageA
Read-only
Inspect

Get credit balance and period usage meters for the current API key (GET /v1/usage). Use this after an insufficient_credits error to report the balance. For the per-analysis transaction ledger (what each analysis cost, with source ids), use get_credits instead.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
metersYesAuthoritative usage meters (credit_seconds balance, period meters).

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering safety. The description adds useful context: it operates on the 'current API key' and includes the REST endpoint, plus the specific error scenario. This goes beyond the annotations without contradicting them.

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?

Two sentences, front-loaded with the main function, then usage context and alternative. Every word earns its place; no redundancy or 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 no parameters, a read-only annotation, and an output schema present, the description fully covers what the tool does, when to use it, and its scope. The mention of the endpoint and error scenario adds complete operational context.

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?

The tool has zero parameters, so the baseline is 4. The description doesn't need to elaborate on parameters, and the schema trivially covers 100% of them.

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 'Get credit balance and period usage meters for the current API key' with a specific verb and resource. It also names the sibling tool get_credits, distinguishing this tool as the balance/usage meter versus the per-analysis ledger.

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?

Explicitly says 'Use this after an insufficient_credits error to report the balance' and provides a direct alternative: 'For the per-analysis transaction ledger... use get_credits instead.' This gives both when-to-use and when-not-to-use guidance.

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

list_modelsA
Read-only
Inspect

List available analysis models (GET /v1/models) with status (stable | preview | deprecated) and capabilities. Use the model marked default:true unless you have a reason not to.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYes
objectYes
has_moreYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, establishing a safe read operation. The description adds behavioral context by specifying the HTTP method, the status values returned, and the default:true selection rule, going beyond the structured metadata without contradiction.

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?

Two sentences with no filler. The first states purpose and scope, the second offers a practical selection rule. Both are essential and immediately understandable, making the description highly efficient.

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 parameterless listing tool with an output schema and read-only annotations, the description adequately covers what the tool returns and provides a default model heuristic. Nothing critical is missing given the context signals and sibling tool set.

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?

The tool has zero parameters, so there is no parameter ambiguity. The schema is trivially fully covered, and the description adds no parameter details because none are needed. Baseline 4 for a no-parameter tool is appropriate.

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 explicitly states the tool lists available analysis models, specifies the REST endpoint (GET /v1/models), and enumerates the returned metadata (status, capabilities). This clearly distinguishes it from sibling tools like get_analysis or create_analysis.

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?

The description implies when to use the tool (when needing to see available models) and provides a concrete guideline to prefer the default:true model unless there's a reason not to. It does not explicitly contrast with alternatives or state exclusions, so it falls short of a 5.

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

validate_analysisA
Read-only
Inspect

Dry-run a prompt WITHOUT creating an analysis or spending credits (POST /v1/analyses with validate_only: true). Compiles the prompt and returns an analysis_preview: the compiled query, assessable (false means the model cannot score this query form — rephrase as a yes/no or count question), estimated_seconds, and estimated_cost_usd (both null when the video duration is not yet known). Recommended before create_analysis to catch unassessable prompts and preview cost.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNoModel id (see list_models). Defaults to the current default model.
promptYesFree-text question to validate, e.g. "How many people are walking?"
video_idYesThe video the analysis would run against (video_… id).

Output Schema

ParametersJSON Schema
NameRequiredDescription
queryYes
objectYes
assessableYesFalse means the model cannot score this query form — rephrase as yes/no or count.
parse_modeYes
video_duration_sYes
estimated_secondsYesNull when the video duration is not yet known.
estimated_cost_usdYes

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses key behaviors: no analysis creation or credit spending, return of analysis_preview, interpretation of 'assessable: false', and null handling for estimated_seconds/cost when video duration is unknown. No contradiction with annotations.

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 brief but information-dense: two compound sentences lead with the core purpose and then efficiently cover return fields and usage recommendation. Every clause adds meaningful detail without redundancy.

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 output schema present and annotations covering safety, the description adds the missing context: when to use it, what triggers null values, and how to interpret assessable. It is complete for an AI agent to select and invoke the tool correctly.

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 three parameters (100% coverage), so baseline is 3. The description adds value by explaining that 'assessable: false' implies the prompt may need rephrasing as a yes/no or count question, and clarifies when cost/seconds are null—semantics beyond the raw 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 description clearly states the tool's purpose: 'Dry-run a prompt WITHOUT creating an analysis or spending credits.' It identifies the exact resource (analyses) and differentiates from siblings like create_analysis by emphasizing the dry-run nature.

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?

Explicitly recommends using this tool before create_analysis to 'catch unassessable prompts and preview cost.' This provides clear when-to-use guidance and names the primary alternative (create_analysis), making the usage context unambiguous.

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

wait_for_analysisA
Read-only
Inspect

Block until an analysis reaches a terminal state (completed | failed | canceled), polling GET /v1/analyses/{id}. Returns { analysis, retry }: retry is null when the analysis reached a terminal state, or carries timeout guidance when the wait expired (call again). Default timeout 120s (test-mode analyses complete in seconds). On completion, see get_analysis for the full result field semantics (detected_count, indeterminate_reason, nullable video_duration_s, usage snapshot).

ParametersJSON Schema
NameRequiredDescriptionDefault
timeout_sNoMax seconds to wait (default 120).
analysis_idYesThe analysis id (an_…).

Output Schema

ParametersJSON Schema
NameRequiredDescription
retryYesNull when the analysis reached a terminal state. Set when the wait timed out — call wait_for_analysis or get_analysis again.
analysisYes

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, covering the safety profile. The description adds valuable behavioral context: it explicitly states the polling endpoint, the return object shape with retry semantics, timeout expiration behavior, and the default timeout value. This goes beyond the annotations and helps the agent understand the blocking/polling nature.

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 compact and well-structured: the first sentence states the core purpose, the second describes the return shape, the third gives timeout context, and the fourth points to the sibling tool for result semantics. Every sentence earns its place with no redundancy or fluff, and the most important information is front-loaded.

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?

Given the tool's complexity (blocking, polling, timeout, retry) and the presence of an output schema, the description covers the key aspects: terminal states, return structure, timeout behavior, and a pointer to get_analysis for detailed field semantics. It does not detail the polling interval or cancellation options, but these are minor gaps given the output schema covers the return shape.

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?

The input schema already provides 100% coverage with descriptions for both analysis_id and timeout_s, including min/max constraints. The description adds semantic value by explaining the default timeout (120s), the fact that test-mode analyses complete in seconds, and how the retry field behaves on timeout. This supplements the schema meaningfully.

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 a specific verb and resource: 'Block until an analysis reaches a terminal state (completed | failed | canceled), polling GET /v1/analyses/{id}.' This clearly states the tool's function and scopes it to a polling, blocking behavior, distinguishing it from the sibling get_analysis which retrieves results without blocking.

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?

The description provides clear usage context: it mentions the default timeout, that test-mode analyses complete in seconds, and that retry should be called again if the wait expires. It also points to get_analysis as the alternative for result field semantics after completion. It lacks an explicit 'when not to use' statement, but the context is sufficient.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 10 tool updatesv0.2.0
    • First observedcreate_analysis
    • First observedcreate_analysis_batch
    • First observedcreate_video_from_url
    • First observedget_analysis
    • First observedget_credits
    • First observedget_test_fixture
    • First observedget_usage
    • First observedlist_models
    • First observedvalidate_analysis
    • First observedwait_for_analysis

TDQS

A4.4/5.0
Disambiguation4/5

Most tools are clearly distinct: create_analysis vs create_analysis_batch, validate_analysis vs create_analysis, and get_analysis vs wait_for_analysis all have well-defined boundaries. The only potential confusion is between get_usage and get_credits, which both return credit balance, but their descriptions differentiate usage meters from transaction ledger.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with lowercase and underscores. Verbs are limited to get, create, validate, wait_for, and list, and each noun is clear. There are no mixed conventions or stylistic deviations.

Tool Count5/5

With 10 tools, the server is well-scoped for a video analysis API. Each tool serves a distinct purpose in the workflow: video ingestion, analysis creation (single/batch), validation, polling, retrieval, model listing, credit management, and test fixture access. The count feels neither sparse nor bloated.

Completeness3/5

The core workflow (create video, validate prompt, create analysis, wait for result, fetch result) is covered, including batch and dry-run operations. However, there are notable gaps: no way to retrieve or delete a video by ID, no list of analyses, no cancellation for a running analysis, and no explicit check for video readiness before analysis creation. These gaps could cause agent failures in multi-step workflows.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Appeared in Searches

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