Skip to main content
Glama

update_preset

Modify an image transform preset's name or processing parameters like dimensions, format, and effects within the Spronta MCP Server.

Instructions

Update a preset's name or transforms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoProject ID (UUID). If omitted, uses SPRONTA_PROJECT_ID env var.
presetIdYesPreset ID (UUID)
nameNoNew name
transformsNoImage transform parameters

Implementation Reference

  • The handler logic for the update_preset tool, which performs a PATCH request to the API.
    case "update_preset": {
      const pid = getProjectId(args);
      const body: Record<string, unknown> = {};
      if (args.name !== undefined) body.name = args.name;
      if (args.transforms !== undefined) body.transforms = args.transforms;
      return ok(
        await api.request(
          "PATCH",
          `/images/projects/${pid}/presets/${args.presetId}`,
          body,
        ),
      );
    }
  • The schema definition for the update_preset tool, specifying the input parameters and description.
    {
      name: "update_preset",
      description: "Update a preset's name or transforms.",
      inputSchema: {
        type: "object",
        properties: {
          ...projectIdParam,
          presetId: { type: "string", description: "Preset ID (UUID)" },
          name: { type: "string", description: "New name" },
          transforms: transformsSchema,
        },
        required: ["presetId"],
      },
    },

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