Skip to main content
Glama

Import Resource

import_resource

Import a stock candidate (candidateId from search_resources) into a project as an ORG-OWNED media item — provider/externalId/license provenance preserved, bytes deduped across orgs. Pass projectId + candidateId. Returns { id, status:"importing"|"ready" }; processing is async — call wait_job(kind="media", id=mediaItemId), then use the returned id as a composition source. Gated on the resource_import plan feature (402 billing_required if your plan lacks it). COST: 0 credits — search and import are both free for a keyed caller (get_account → entitlements.resource_import.listUsdPerUnit is 0); imported bytes count toward the storage gauge. 422 candidate_mismatch if the candidate expired — re-run search_resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesPOST /resources/import body — stock candidate lane { projectId, candidateId } OR curated pack lane { kind:"sfx-pack"|"music-pack", id }.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses async processing with the { id, status:"importing"|"ready" } shape, plan gating (402 billing_required), zero credit cost with the entitlements path, storage-gauge effect, provenance preservation, cross-org byte dedup, and the 422 candidate_mismatch failure mode. This is exactly the behavioral context annotations like readOnly/destructive cannot carry.

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-loads the core action and result before layering on async, gating, cost, and error detail, so each clause carries operational information. It is dense and long, but no sentence is pure filler; slightly tighter grouping of the error/cost notes would help.

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 write tool with an output schema, it still supplies everything an agent needs to call it correctly: inputs, async follow-up via wait_job, downstream usage as a composition source, entitlement gating, cost, and recovery on failure. Nothing material is missing.

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 the structured fields already document the body, giving a baseline of 3. The description still adds meaning by identifying candidateId's source (search_resources), the projectId pairing, and the dedup/provenance semantics of the import; it only omits the curated pack lane that the schema body description mentions.

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 verb (import) and resource (a stock candidate keyed by candidateId from search_resources) and the exact resulting object (an ORG-OWNED media item in a project). This clearly separates it from siblings like import_media, select_candidate, and search_resources without the agent needing to open a 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 concrete workflow context: pull candidateId from search_resources, pass projectId + candidateId, then poll wait_job(kind="media"), and re-run search_resources on 422 candidate_mismatch. It does not explicitly state when to prefer import_media or select_candidate instead, so it is strong but not a full when/when-not routing.

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.