Skip to main content
Glama
Storyblok MCP Server

Storyblok MCP Server

Official
by storyblok

upload_asset

Uploads an asset to Storyblok in one operation by creating the asset record, sending the file to S3, and finalizing it automatically from a local path or HTTP/HTTPS URL.

Instructions

Upload an asset to Storyblok in a single operation. Handles the Storyblok asset record creation, S3 file upload, and finalization automatically. Supports local file paths and HTTP/HTTPS URLs as source.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "space_id": "<space_id>",
      "filename": "<filename>",
      "source": "<source>"
    },
    "name": "upload_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
altNoAlt text for the asset
titleNoTitle for the asset
regionNoStoryblok region (eu, us, cn, ap, ca). Do NOT provide this parameter by default — it is auto-detected from space_id. Only provide it when the operation description explicitly asks you to.
sourceYesLocal file path or HTTP/HTTPS URL of the file to upload
filenameYesFilename including extension (e.g. 'image.jpg')
space_idYesStoryblok space ID
copyrightNoCopyright information for the asset
asset_folder_idNoID of the asset folder to upload into

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the safety profile is covered. The description usefully discloses that this is a compound three-step pipeline (record creation, S3 transfer, finalization) rather than a single write, which is genuinely non-obvious. However it says nothing about what happens on partial failure, whether an existing file with the same filename is overwritten, or size/type limits — material gaps for a non-idempotent upload.

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?

Three sentences, front-loaded with the action, with no filler or repetition. The third sentence largely restates the schema's description of 'source', which is the only mildly redundant element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Parameters and safety annotations are fully covered, so an agent has what it needs to construct a call. But with no output schema, the description never says what is returned (presumably the created asset object with URL and ID), and it omits overwrite/duplicate behavior that matters given idempotentHint=false. For an eight-parameter compound mutation, that leaves real gaps.

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 description coverage is 100%, so all eight parameters are already documented, including the careful region auto-detection note. The description adds only that 'source' accepts a local path or an HTTP/HTTPS URL, which the schema's own description of that parameter already states. Baseline 3 is appropriate since the schema does the heavy lifting.

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 and resource ('Upload an asset to Storyblok') plus the exact mechanism (asset record creation, S3 upload, finalization) and the accepted source types. The scope is narrow and unambiguous against the generic execute/search siblings, so an agent can tell exactly what this tool does without opening the schema.

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

Usage Guidelines2/5

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

No when-to-use guidance relative to the execute/execute_readonly siblings, and no stated prerequisites such as management-token or space-level permissions needed for uploads. The only implied usage is the obvious one from the tool name; nothing tells the agent when to prefer another tool or when this would fail.

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