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"],
      },
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but provides minimal information. It states this is an update operation but doesn't mention permission requirements, whether the update is destructive to existing data, error conditions, or what happens when only partial fields are provided. For a mutation tool with zero annotation coverage, this is insufficient.

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?

The description is extremely concise - a single sentence that gets straight to the point with no wasted words. It's front-loaded with the essential information and doesn't include any unnecessary elaboration or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description is inadequate. It doesn't explain what the tool returns, what happens on success/failure, or important behavioral aspects like whether the update is partial or requires all fields. Given the complexity of the transforms object with many nested properties, more context would be helpful.

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?

The description mentions 'name or transforms' which maps to two of the four parameters, but with 100% schema description coverage, the schema already fully documents all parameters including projectId, presetId, name, and transforms with all their nested properties. The description adds minimal value beyond what's already in the well-documented schema.

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?

The description clearly states the action ('Update') and the resource ('a preset's name or transforms'), making the purpose immediately understandable. However, it doesn't differentiate this tool from sibling tools like 'update_image' or 'update_project' - it only tells what it does, not how it differs from similar update operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites (like needing a preset to exist first), no comparison to sibling tools like 'create_preset' or 'update_image', and no context about when this operation is appropriate versus creating a new preset.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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