Skip to main content
Glama

quality_filter

Filters candidate photos by detecting blur, underexposure, and overexposure, returning clarity and brightness metrics for archive review.

Instructions

筛查失焦/过暗/过亮候选图片,返回清晰度与亮度指标清单。

:param out_dir: 归档输出目录。 :param blur_threshold: 灰度方差低于该值判为模糊;缺省取配置 quality.blur_threshold。

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": {
      "out_dir": "<out_dir>"
    },
    "name": "quality_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_dirYes
blur_thresholdNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it does not say whether images are copied, moved, or merely inspected in the archive output directory, or whether anything existing at out_dir is overwritten. It does disclose the blur threshold semantics and that metrics are returned, which is useful. However, the mutation profile of a tool that takes a required output directory remains undisclosed.

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 leads with the purpose in one sentence, then documents each parameter with no padding. Every sentence carries information the schema does not, and there is no redundant restatement of the tool name.

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?

An output schema exists, so return values need no explanation, and parameter documentation covers both inputs. However, for a tool that takes a required output directory, the missing side-effect and overwrite information leaves a substantive gap. That is only partly offset by the blur threshold explanation.

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

Parameters4/5

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

Schema coverage is 0%, so the description must explain both parameters, and it does: out_dir is the archive output directory, and blur_threshold is the grayscale variance below which an image is judged blurry, defaulting to the configuration value quality.blur_threshold. That adds real meaning beyond bare string and number types. Dark and bright cutoffs are mentioned only in the purpose sentence, and it is not explained whether they are also configurable.

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 states a concrete verb-and-resource pair: screen candidate images that are out of focus, too dark, or too bright, and return a list of sharpness and brightness metrics. An agent knows the operation and output shape. It does not distinguish itself from siblings such as scan_photos or build_selection_page, however, and the phrase "candidate images" leaves open where the candidates come from.

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?

Nothing is said about when to use this versus alternatives, or about the prerequisites it needs, such as existing candidate images or a configured quality section. The only implicit signal is that it appears to sit between scanning and selection, which the agent has to infer. There are no exclusions or alternative routes given.

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