Skip to main content
Glama

batch_merge_models

Merge a base model with multiple target models in one batch operation, choosing merge methods and alpha strength, and wait for completion.

Instructions

Merge a base model with multiple target models in batch. Waits for completion.

Args:
    model_type: Model architecture — "sd15" or "sdxl"
    base_model: Base model checkpoint filename
    target_models: List of target model checkpoint filenames
    method: Merge method — "linear", "slerp", "additive", or "subtract"
    alpha: Merge strength (0.0-1.0)
    output_subdir: Output subdirectory name for merged models
    preserve_metadata: Whether to preserve model metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alphaNo
methodNolinear
base_modelYes
model_typeYes
output_subdirNobatch_merged
target_modelsYes
preserve_metadataNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description must carry full behavioral transparency. It discloses that the tool 'Waits for completion,' which is useful, but omits any mention of side effects, permissions, idempotency, or potential long-running behavior. Similar to the calibration example, a batch operation of this nature should clarify reversibility or failure handling; the description does not.

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?

The description is front-loaded with a one-sentence summary followed by a structured parameter list. Every line provides necessary information, though the docstring format is somewhat mechanical; it is appropriately sized for a 7-parameter tool and avoids fluff.

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?

The presence of an output schema means return values are documented elsewhere, so the description doesn't need to cover them. For the complexity (7 params, no enums, no nesting), the description covers the operation's purpose and all parameter semantics adequately. Minor gaps like validation rules or error behavior exist but aren't critical for invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Since schema description coverage is 0%, the description is the only source of parameter meaning. It explicitly explains each parameter (e.g., 'model_type: Model architecture — "sd15" or "sdxl"') with types, enums, and defaults, going far beyond the schema's bare types and titles.

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?

The description clearly states the verb ('Merge'), the resource ('base model with multiple target models'), and the batch scope ('in batch'). It distinguishes itself from the sibling 'merge_models' by implying the batch variant, and the summary sentence is specific and unambiguous.

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

Usage Guidelines3/5

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

The description implies when to use the tool (for batch merging) via the phrase 'in batch', but it never explicitly contrasts with alternatives like 'merge_models' or states when not to use it. The behavior 'Waits for completion' hints at synchronous execution but does not provide explicit exclusions or prerequisites.

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/mcaimi/sd-api-mcp'

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