Skip to main content
Glama

update_image

Modify an image's alt text and tags to improve accessibility and organization within the Spronta Image CDN.

Instructions

Update an image's alt text and/or tags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoProject ID (UUID). If omitted, uses SPRONTA_PROJECT_ID env var.
imageIdYesImage ID (UUID)
altTextNoAlt text (max 1000 chars), or null to remove
tagsNoTags (max 50, each max 100 chars)

Implementation Reference

  • The handler for the update_image tool, which processes the request parameters and calls the API PATCH endpoint.
    case "update_image": {
      const pid = getProjectId(args);
      const body: Record<string, unknown> = {};
      if (args.altText !== undefined) body.altText = args.altText;
      if (args.tags !== undefined) body.tags = args.tags;
      return ok(
        await api.request(
          "PATCH",
          `/images/projects/${pid}/images/${args.imageId}`,
          body,
        ),
      );
    }
  • The schema definition for the update_image tool, defining its input parameters.
    {
      name: "update_image",
      description: "Update an image's alt text and/or tags.",
      inputSchema: {
        type: "object",
        properties: {
          ...projectIdParam,
          imageId: { type: "string", description: "Image ID (UUID)" },
          altText: {
            type: "string",
            description: "Alt text (max 1000 chars), or null to remove",
          },
          tags: {
            type: "array",
            items: { type: "string" },
            description: "Tags (max 50, each max 100 chars)",
          },
        },
        required: ["imageId"],
      },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spronta/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server