Skip to main content
Glama

Image Alt Text Generator (AI)

image_alt_text
Read-only

Alt text for images, for web accessibility (WCAG 1.1.1, BFSG, European Accessibility Act) and SEO: send image_url or image_base64, get alt text under 125 characters that describes purpose and content, a longer description for complex images such as charts, whether the image is decorative (then alt=""), all readable text in the image, and a ready alt="..." attribute. Optional language (e.g. German) and context (where the image is used). The image is scaled to at most 800 x 800 px first, then described by Claude Haiku 5.5. Pairs with accessibility-check, which finds images without alt text. Price: $0.005 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"image_url":"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/1280px-Fronalpstock_big.jpg"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoWhere the image is used, max 500 chars
languageNoLanguage of the alt text, default English
image_urlNoPublic image URL (max 15 MB)
image_base64NoBase64 image instead of a URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses the return shape (short alt under 125 chars, long description, decorative flag, in-image text, ready attribute), that the image is scaled to 800x800, the model used, and the cost/payment mechanism. This is unusually rich behavioral context for an agent deciding whether and how to call.

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?

Front-loaded with purpose and outputs, and the size is justified by genuinely call-relevant detail (cost, payment, free sample). It is dense and crams the payment mechanics and a full example payload into a single paragraph, but no sentence is wasted.

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?

With no output schema, the description carries the burden of explaining returns and does so fully, along with inputs, processing, pricing, and workflow. Nothing an agent needs to invoke it correctly 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 coverage is 100%, so the baseline is 3. The description adds only marginal meaning — the image_url-or-image_base64 either/or, and an example for language ('German') — both of which the schema largely already conveys.

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 — generate alt text for images — and names the accessibility/SEO use case. It also distinguishes itself from the sibling accessibility_check, which 'finds images without alt text', so an agent can route between the two without opening a 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 context (web accessibility per WCAG 1.1.1/BFSG/EAA, and SEO) and an explicit workflow relationship with accessibility_check. It lacks a direct when-not-to-use or alternative-selection statement, but the routing context is strong.

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