Skip to main content
Glama

Website-Bildmaße vorbereiten

prepare_website_image_dimensions
Read-onlyIdempotent

Measure up to twelve existing captured image references of an own published website. Supply exact expectedMediaRevision from get_website_media. Reads original bounded image bytes from that same HTTPS host; redirects, arbitrary URLs and caller-claimed dimensions are rejected. Returns geometry, SHA-256 and an exact review digest. Does not modify images, rights, drafts, snapshots or publication. POST /api/v1/tenant/read/prepare_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>"
    },
    "name": "prepare_website_image_dimensions"
  }
}

Input Schema

NameRequiredDescriptionDefault
websiteYes
imageUrlsYes
expectedMediaRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the description's burden is lower. Even so, it adds meaningful context: it reads original bounded image bytes from the same HTTPS host; it rejects redirects, arbitrary URLs and caller-claimed dimensions; and it returns geometry, SHA-256 and a review digest. With no output schema present, the return summary is especially useful. It does not explain behavior on dimension mismatch or partial failures across the batch.

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?

The definition is dense and front-loaded: scope, precondition, constraint set, then return values, then an explicit negative statement about what it does not touch. Each sentence carries content; the closing endpoint string is the only padding. Jargon such as 'bounded image bytes' and 'review digest' could be plain.

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

Completeness4/5

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

The definition covers the essential concerns for a three-parameter, read-only tool with no output schema: what it measures, the upstream revision source, host restrictions, rejection rules, and the shape of the returned data. Given the nested website oneOf, it is slightly thin on state selection, but nothing critical for a correct invocation is missing.

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 0%, so the schema supplies structure but no prose about parameters. The description compensates partly: it says 'up to twelve' for imageUrls, restricts the website to an owned published site, and explains that expectedMediaRevision must come exactly from get_website_media, which is the only clue to that opaque 64-hex hash. It says nothing about the website state variants (draft, snapshot, published) or surfaceKey and snapshotId, which are the most complex parts of the schema.

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 definition opens with a specific verb and resource: 'Measure up to twelve existing captured image references of an own published website.' Scoping is clear: at most twelve references, only for images on a website the caller represents. It does not explicitly name a sibling or alternative, although 'Does not modify images, rights, drafts, snapshots or publication' implicitly separates it from prepare_website_image_publication, apply_website_image_dimensions and publish_website_image_dimensions.

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 definition gives a real prerequisite: 'Supply exact expectedMediaRevision from get_website_media.' That tells the caller which upstream tool to call first. It also states the 'own published website' precondition and the twelve-reference cap. However, it never says explicitly when to choose this measurement step over prepare_website_image_publication or apply_website_image_dimensions, so the workflow position is only implied.

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