Skip to main content
Glama

Set a media file's alternative text

update_media
DestructiveIdempotent

Set or clear the alternative text of a library image or video. It belongs to the file, not to a post: every post and platform that publishes this file sends the same text (where the network supports alt text). Use list_media to see which files have none.

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>",
      "altText": "<altText>"
    },
    "name": "update_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
altTextYesThe description a screen reader announces (max 1000 characters); null or an empty string clears it
mediaIdYesThe media ID (from list_media)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
idNo
altTextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=true, so the safety profile is carried structurally. The description adds genuinely non-obvious behavior: the text is shared by every post and platform publishing the file, and some networks do not support alt text — real blast-radius and caveat information not present in annotations.

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?

Two sentences, zero filler: the scope statement comes first and the discovery pointer second. Every clause carries information an agent cannot get from the schema.

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?

Return values are covered by an output schema and idempotency/destructiveness by annotations, so the remaining burden is scope and side effects — both addressed. Minor gap: it does not say whether clearing alt text affects already-published posts immediately or only future publishes.

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 coverage is 100%, with altText null/empty-string clearing and organizationId's multi-org rule fully documented in the schema. The description's file-level propagation note adds semantic meaning to altText, but it says nothing about mediaId or organizationId beyond what the schema already states, so the baseline of 3 applies.

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?

States a specific verb and resource ('Set or clear the alternative text of a library image or video') and immediately distinguishes the scope from sibling mutation tools by noting it belongs to the file, not a post — implicitly contrasting with update_post.

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 a concrete discovery path ('Use list_media to see which files have none') and clarifies the file-level vs post-level scope, which is the key selection decision here. It does not state exclusions or prerequisites (e.g., permission needs) but the context is clear enough to route correctly.

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