Skip to main content
Glama

图文一致性诊断与修复 / Image-text consistency fix

process_images

优化产品图片与文案的一致性。当用户说「这个商品图片和标题对不上」「帮我把混进来的图剔掉」「优化一下这个产品的图片」时调用:AI 看图核对标题/颜色/变体,诊断不一致并按图修复文案、剔除混图(作用于暂存商品)。Diagnose image-text mismatches on a staging item and fix the copy/images to match (vision AI).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "staging_id": "<staging_id>"
    },
    "name": "process_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNo
staging_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and openWorldHint=true, so mutability and non-idempotence are covered. The description adds genuinely new behavior: a vision model compares images against the title/color/variant and may both rewrite copy and delete stray images from the staging record, which tells the agent data will be changed. It does not say whether changes are reversible or what permissions/plan are needed.

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?

Front-loaded with the purpose, then trigger phrases, then mechanism — a sensible order. The Chinese and English sentences largely restate each other, which adds mild redundancy but keeps the definition short overall.

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

Completeness3/5

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

For a mutating, non-idempotent tool with no output schema and an undocumented default-on `apply` flag, the description should say what a call returns or what changes when apply is false. It conveys scope and mechanism adequately but leaves the write semantics and result shape entirely unspecified.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters, so the description must carry the meaning and it carries none. The critical `apply` flag (default true, i.e. it writes by default) is never mentioned, and there is no hint of a preview/dry-run mode, leaving the agent to guess whether calling it mutates the staging item.

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?

States a concrete verb+resource pair: diagnose image-text mismatches on a staging item and fix the copy or remove mismatched images, with the vision-AI mechanism named. It is clearly distinct from a plain listing rewrite because it is scoped to image/copy consistency on a staging item, though it never explicitly contrasts itself with siblings like rewrite_listing or validate_listing.

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

Usage Guidelines4/5

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

Gives concrete user-utterance triggers ("图片和标题对不上", "把混进来的图剔掉", "优化一下这个产品的图片") plus the operating precondition that it acts on a staging item. No when-not guidance or named alternative for cases that should route elsewhere, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources