Skip to main content
Glama

assign_asset_to_slot

Assign, reassign, or clear assets in landing-page or side-page slots. Specify slot keys like 'hero.backgroundVideo' and asset IDs to update the slot immediately; pass clear:true to empty it.

Instructions

Assign, reassign, or clear the asset in a landing-page or side-page slot. slotKey is a dotted key like 'hero.backgroundVideo' or 'cta.image' (discover valid keys with list_asset_slots). For array slots pass assetIds; for single slots pass assetId. The asset must already be in the brand's library (see list_assets / upload_asset / import_asset_from_url) and match the slot's media type. Pass sidePageSlug to target a side page. Set clear:true (or assetId:null) to empty the slot. Synchronous — the change applies immediately, no polling. Main-LP changes create a new draft version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesLanding page slug
clearNoSet true to empty the slot
assetIdNoAsset ID for a single (non-array) slot. Pass null to clear the slot.
pageKeyNoPage key within the LP (defaults to 'main'; ignored when sidePageSlug is set)
slotKeyYesDotted slot key, e.g. 'hero.backgroundVideo' or 'cta.image' (from list_asset_slots)
assetIdsNoAsset IDs for an array slot. Pass an empty array (or null) to clear the slot.
sidePageSlugNoSide page slug — target this side page's slot instead of the main LP's
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses key behaviors: synchronous execution (no polling), side effects (Main-LP changes create a new draft version), and clear semantics (clear:true or assetId:null). It also explains the difference between single and array slots. This is thorough and goes beyond what is obvious.

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 concise yet comprehensive, with every sentence adding valuable information. It is front-loaded with the primary purpose and then systematically covers key details (slot keys, array vs. single, side pages, clearing, synchronous behavior, draft versioning). No redundant or fluff content.

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 7 parameters, no output schema, and no annotations, the description is remarkably complete. It explains prerequisites, slot key discovery, input variations, target page selection, clearing options, and side effects. It provides the agent with enough context to invoke the tool correctly without additional lookups.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema covers all parameters (100% coverage), the description adds substantial meaning: it explains that assetId is for single slots and assetIds for array slots, that clear:true or null can empty the slot, and that sidePageSlug targets a specific side page while pageKey is ignored. This provides critical disambiguation beyond the 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: 'Assign, reassign, or clear the asset in a landing-page or side-page slot.' It uses specific verbs and identifies the resource (asset slot). This distinguishes it from sibling tools like list_asset_slots and list_assets.

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 explicit usage context: when to use this tool (to assign/clear assets in slots), prerequisites (asset in brand library, matching media type), and references to alternative tools for discovering valid slot keys (list_asset_slots) and managing assets (list_assets, upload_asset, import_asset_from_url). It also clarifies synchronous behavior.

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/bitsandtea/postking-mcp'

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