Skip to main content
Glama

locate_object

Locate a named object in an image and return its coordinates. If absent, returns count=0. Supports pixel or normalized units and optional two-stage refinement for better precision.

Instructions

在图片中定位目标对象,返回坐标 primitives(让 LLM 输出坐标)。找不到会返回 count=0。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYes
coordsNo返回坐标单位:pixel(默认,像素)或 norm(0-1000 归一化)
refineNo两阶段精修:粗定位后裁切放大二次定位(更准,代价是每个候选多一次视觉调用),默认 false
targetYes要定位的目标,如:蓝色提交按钮 / 红色圆形 / 报错文字
Behavior3/5

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

The description adds one key behavioral trait: '找不到会返回 count=0' (returns count=0 if not found), which is useful and goes beyond the schema. It also mentions the coordinates are 'primitives' for LLM output. However, it does not disclose other behaviors such as error handling, performance implications, or whether the operation is read-only/destructive, and with no annotations, the burden is higher.

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 is a single sentence that front-loads the core purpose and includes a key behavioral detail (count=0). It is concise with no wasted words, and the structure is clean.

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?

With 4 parameters, no output schema, and no annotations, the description is underspecified. It does not describe the return structure (e.g., shape of primitives, how count is included), doesn't clarify when to use this tool over many siblings, and doesn't explain the coords/refine options sufficiently. The description is too minimal for the tool's complexity.

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 coverage is 75% and the description adds little parameter meaning beyond what's in the schema. It mentions '坐标 primitives' which loosely relates to the coords parameter, but does not explain the refine or target parameters or how they affect behavior. The schema descriptions for coords and refine are already present, so the description does not compensate for any gaps.

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 clearly states the tool locates a target object in an image and returns coordinate primitives, with a specific verb-resource pairing ('locate object in image'). However, it does not differentiate from sibling tools like ui_locate or cv_locate, which also locate objects, so it lacks sibling differentiation.

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 implies usage for object localization but provides no explicit guidance on when to use this tool versus alternatives. There is no mention of exclusions, prerequisites, or when another locator (e.g., ui_locate, som_locate) would be more appropriate.

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/zouyuanqing/vision-primitives-mcp'

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