Skip to main content
Glama

Set image alt text, title and caption

set_image_text

Set an image's alt text, title or caption per locale. Only the languages you give change: others are kept, and an empty string or null removes that language. Locale codes must be ones the website has (see list_scopes). Image text is shared by every page and environment and shows at once, so images live on pages you may not change are refused. Returns the image with its text in every language.

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": {
      "mediaId": "<mediaId>"
    },
    "name": "set_image_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
altNoText by locale code, such as {"de-DE": "…"}. Languages left out are kept; an empty string or null removes one.
titleNoText by locale code, such as {"de-DE": "…"}. Languages left out are kept; an empty string or null removes one.
captionNoText by locale code, such as {"de-DE": "…"}. Languages left out are kept; an empty string or null removes one.
mediaIdYesThe image's id, from an image field in get_page, from upload_media, or fix.mediaId in get_page_accessibility.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mediaId / description
      Added value: +"The image's id, from an image field in get_page, from upload_media, or fix.mediaId in get_page_accessibility."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare non-read-only, non-destructive, closed-world) by disclosing partial-update semantics, deletion semantics, the cross-page/cross-environment shared scope with immediate visibility, the refusal behavior for images on unmodifiable pages, and the return shape. These are exactly the mutation risks an agent needs.

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?

Four tight sentences, front-loaded with the core action, then update semantics, then constraints, then return value. No filler and nothing repeated unnecessarily.

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 4-parameter mutation with no output schema, the description covers update semantics, validation prerequisites, side effects, failure conditions, and the return value. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: locale codes must be valid for the site and list_scopes is the way to obtain them. The partial-update and null-removal semantics largely restate the schema's own property descriptions.

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?

States a specific verb ('Set') and resource ('an image's alt text, title or caption per locale'), which is unambiguous. It does not explicitly contrast with any sibling tool, but the operation is distinct enough that an agent can identify it 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 Guidelines4/5

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

Gives clear operational context: only supplied languages change, empty string/null removes a language, and locale codes must exist on the site with a pointer to list_scopes. It also states the refusal condition for images on pages the caller cannot change. It stops short of naming an alternative tool for other image operations, but the when-to-use conditions are well covered.

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