Skip to main content
Glama

p-pic

Edit any local image by providing a prompt that describes the desired outcome; get a regenerated picture matching your instructions.

Instructions

图生图(EDIT_IMAGE 流水线,默认模型 sensenova-u1.5-lite)。

参数: prompt: 编辑指令,描述期望最终画面,必填 image_path: 参考图路径(本地,PNG/JPG/WEBP/GIF),必填 size: 尺寸(默认 2752x1536) provider: 后端(sensenova/openai_compat,默认读 EDIT_IMAGE_ADAPTER→sensenova) instance: 命名实例名(默认 None 走主实例,见 3.7)

说明:Python 语法要求必填参数(image_path)置于带默认值参数(size)之前, 工具契约即本签名:p-pic(prompt, image_path, size, provider=None, instance=None)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo2752x1536
promptYes
instanceNo
providerNo
image_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it delivers: it discloses the pipeline name, default model, default size, provider resolution order (EDIT_IMAGE_ADAPTER env → sensenova), and instance fallback behavior (None → main instance). This gives an agent a realistic picture of how invocation will behave. The only omission is output behavior, but an output schema is present, lowering that burden.

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 structure is efficient: a one-line purpose, a scannable parameter list, and a final note about the callable signature. The Python-syntax note about required-before-default parameters is unusual but earns its place by clarifying the exact tool contract. Nothing is redundant, though the signature line partially repeats schema information.

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?

For a 5-parameter tool with zero schema descriptions and no annotations, the description covers all parameters, defaults, and behavioral nuances, including the provider fallback and instance resolution. The reference to '见 3.7' for instance details is a minor external dependency, and the output schema covers return values. Slightly more context on when to set provider explicitly would round it out.

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?

Schema description coverage is 0%, so the description must fully compensate, and it does. Every parameter gets a meaningful definition: prompt is the edit instruction, image_path specifies local path and accepted formats (PNG/JPG/WEBP/GIF), size has a default, provider enumerates the two backends, and instance explains the named-instance concept. This exceeds what a bare schema would convey.

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 opening line '图生图(EDIT_IMAGE 流水线,默认模型 sensenova-u1.5-lite)' identifies the tool as an image-to-image operation on the EDIT_IMAGE pipeline with a named default model. This is clear enough to distinguish it from siblings like r-pic (likely generate-from-reference) or g-pic (likely text-to-image), though it lacks an explicit action verb like 'edits' or 'generates'.

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?

No guidance is given on when to choose this tool over its siblings. The parameter list implies you need a prompt and a local reference image, but there is no statement of when image-to-image editing is appropriate versus alternatives like r-pic or i-pic. An agent must infer selection criteria entirely from the tool name and parameter shapes.

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/bliubliuing/pivision'

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