Skip to main content
Glama

local_gpu_prepare_mask

Prepare an inpaint mask for a run by converting geometry, feathering, and optional user mask into a JPEG overlay for preview.

Instructions

Prepare an unconfirmed child-run inpaint mask and return its JPEG overlay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes
geometryNo
feather_pixelsNo
user_mask_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It states the tool 'prepare[s]' a mask, implying a state change, but does not clarify whether this modifies the run, is reversible, or requires special permissions. The return of a JPEG overlay is mentioned, but side effects, rate limits, and whether the operation is read-only or destructive are not addressed.

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 a single concise sentence, front-loaded with the core purpose. It is efficient and easy to parse. However, it is so brief that it omits essential details, but that is more a completeness issue than a structure one. For what it does contain, it is well-structured.

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?

Given the tool has 4 parameters, no annotations, and no output schema details in the description, the single-sentence description is insufficient. It does not explain what a 'child-run' is, how the mask is generated, what the JPEG overlay represents, or how the parameters interact. An agent would likely struggle to invoke this tool correctly without additional information.

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

Parameters1/5

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

The schema has 0% description coverage, and the description itself does not mention any parameters. It does not explain the role of run_id, geometry, feather_pixels, or user_mask_path, nor how they influence the prepared mask. This leaves the agent without semantic understanding of how to populate the parameters correctly.

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 tool's function: 'Prepare an unconfirmed child-run inpaint mask and return its JPEG overlay.' It uses a specific verb ('prepare'), identifies the resource ('child-run inpaint mask'), and specifies the output ('JPEG overlay'). The term 'unconfirmed' differentiates it from the sibling tool 'confirm_mask', making its role in the workflow clear.

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 explicit guidance on when to use this tool, what prerequisites are needed, or how it relates to alternatives. It does not mention that it should be used before 'confirm_mask' or under what circumstances. The context is entirely implicit, offering no contextual cues about workflow placement.

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/zc4578980-tech/local-gpu-imagegen'

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