Skip to main content
Glama

asset.replace_placeholder

Point a placeholder at a real uploaded/generated asset (§11.7, §18.2). Preserves the placeholder and its prompt for provenance; sets its status to 'generated'.

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": {
      "projectId": "<projectId>",
      "expectedVersion": "<expectedVersion>",
      "placeholderId": "<placeholderId>",
      "assetId": "<assetId>"
    },
    "name": "asset.replace_placeholder"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetIdYes
projectIdYes
placeholderIdYes
expectedVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose two useful traits -- the placeholder and its prompt are preserved for provenance, and its status flips to 'generated' -- but omits whether the replacement is reversible, what happens to any previously linked asset, and how the required expectedVersion optimistic-lock behaves on conflict. For an unannotated mutation tool, that leaves significant behavioral gaps.

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?

Two tight sentences with the core action front-loaded and the side effect on status clearly appended. The '§11.7, §18.2' spec references add little for an agent deciding how to call the tool, but the rest is free of filler.

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

Completeness2/5

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

For a four-parameter mutation with no annotations, no output schema, and zero schema description coverage, the definition should explain the version-check contract and the preconditions on assetId. Neither is covered, so an agent could invoke it without understanding failure modes or ordering constraints.

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

Parameters2/5

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

Schema description coverage is 0% across four required parameters, so the description must compensate and largely does not. It implies the meaning of placeholderId and assetId through the prose, but says nothing about projectId scoping or the role of expectedVersion, which is the least self-explanatory parameter in the set.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource pair: 'point a placeholder at a real uploaded/generated asset,' which is unambiguous about the operation. It does not explicitly distinguish itself from related siblings such as timeline.add_placeholder or asset.upload, which is the only thing separating it from a 5.

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 phrase 'real uploaded/generated asset' implies the assetId must already exist from a prior upload or generation step, which hints at a precondition. However, there is no explicit when-to-use guidance, no statement of when this should not be used, and no mention of the expectedVersion concurrency requirement or what happens on a version mismatch.

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.