Skip to main content
Glama

视觉检测

vision_detect
Read-onlyIdempotent

Detect specified objects, text, or UI elements in images, returning labeled normalized bounding boxes with confidence scores.

Instructions

在图片中检测指定目标,返回结构化的位置信息(0-1归一化包围盒)。

传入图片和要检测的目标描述,返回所有检测到的目标的位置信息。

参数:

  • images: 图片路径或URL列表

  • target: 要检测的目标描述(如"按钮"、"标题"、"红色文字"等)

  • max_dimension: 发送给VLM前自动缩放的最大边长(默认2048,设为0禁用)

返回:JSON格式的检测结果,包含每个目标的标签、归一化包围盒和置信度。 { "detections": [ { "label": "对象描述", "bbox": { "x_min": 0.1, "y_min": 0.2, "x_max": 0.3, "y_max": 0.4 }, "confidence": 0.95 } ] } 包围盒坐标为0-1归一化值,x_min/y_min为左上角,x_max/y_max为右下角。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imagesYes图片路径或URL列表(http/https开头为URL,否则为本地路径)。至少1张,最多8张。
targetYes要检测的目标描述
max_dimensionNo发送给VLM前自动缩放的最大边长(像素)。设为0禁用自动缩放。默认2048。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
detectionsYes
Behavior4/5

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

Annotations already cover safety (readOnly, non-destructive, idempotent, openWorld). The description adds meaningful behavioral context beyond annotations: automatic resizing before sending to the VLM, the option to disable it via max_dimension=0, and normalized coordinate conventions for bounding boxes. No contradictions with annotations.

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 well-structured with an opening summary, parameter list, and return format example. It is somewhat longer than strictly necessary because some parameter details repeat the schema, but every section is readable and the core purpose is front-loaded.

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

Completeness5/5

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

With annotations covering safety, a 100%-covered schema, and an output schema present, the description still adds valuable context around normalization, scaling behavior, and detection semantics. The tool is fully specified for an agent to select and invoke correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all three parameters. The description adds useful examples for target descriptions and clarifies the URL vs local path behavior, but it largely duplicates schema information rather than introducing substantial new meaning.

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 states a specific verb ('检测'), a clear resource (images), and a well-defined outcome (normalized bounding boxes). The phrase '返回所有检测到的目标的位置信息' makes it distinct from sibling tools like vision_qa or vision_ocr, even without naming them.

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 intended usage is implied through the description and parameter guidance, and the tool's purpose is clear enough to infer when to call it. However, there is no explicit statement of when to choose this tool over vision_qa, vision_describe, or vision_ocr, and no exclusions are mentioned.

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/karond-is-me/vision-mcp'

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