Skip to main content
Glama

Website-Bildmaße übernehmen

apply_website_image_dimensions

Persist remeasured dimensions of existing website images into the canonical Sites draft only. Requires current Owner and sites:read plus separately consented sites:media:write. Supply the exact published media revision and measurementSha256 from prepare_website_image_dimensions, plus the matching draft media revision from get_website_media. Original bytes are fetched again; changed measurements, source or authority reject the write. Only geometry evidence is changed; no image, rights, pricing, policy or snapshot changes and no publishing. POST /api/v1/tenant/write/apply_website_image_dimensions.

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": {
      "website": "<website>",
      "expectedMediaRevision": "<expectedMediaRevision>",
      "imageUrls": "<imageUrls>",
      "expectedDraftMediaRevision": "<expectedDraftMediaRevision>",
      "expectedMeasurementSha256": "<expectedMeasurementSha256>"
    },
    "name": "apply_website_image_dimensions"
  }
}

Input Schema

NameRequiredDescriptionDefault
websiteYes
imageUrlsYes
expectedMediaRevisionYes
expectedMeasurementSha256Yes
expectedDraftMediaRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-idempotent, non-destructive and open-world; the description adds the far more useful facts: Owner plus sites:read and separately consented sites:media:write are required, original bytes are re-fetched and re-verified, and only geometry evidence changes while image, rights, pricing, policy and snapshot data are untouched. That is materially more than the annotations convey.

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?

It is a single front-loaded paragraph that leads with the effect, then prerequisites, then failure modes, then blast radius — every sentence carries operational content. It is noticeably dense and could be split into bullets, but there is no 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?

For a mutating, revision-pinned write with no output schema, the description covers authorization, provenance of every expected hash, rejection semantics and the exact scope of change. An agent has everything needed to call it correctly and to know what it must not expect it to do.

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 description coverage is 0%, so the description must carry the load and it partially does — it explains where expectedMediaRevision, expectedMeasurementSha256 and expectedDraftMediaRevision come from and why they are pinned. The website target object (draft/snapshot/published variants) and imageUrls semantics are left to the schema, leaving a residual gap.

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 ("Persist remeasured dimensions of existing website images") and immediately narrows scope to "the canonical Sites draft only", explicitly separating this write from the publishing siblings. An agent can tell this apart from apply/publish/prepare variants without opening another schema.

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?

It names the prerequisite siblings and what each supplies: the published media revision and measurementSha256 from prepare_website_image_dimensions plus the matching draft media revision from get_website_media. It also states the rejection conditions ("changed measurements, source or authority reject the write"), giving an explicit when-not signal.

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.

Resources