image_stats_count_pixel_color

Count the pixels in the input image which is between or outside the given color bounds. For all of the channels, the pixel value is within the color bounds, then it's a "between" color pixel. Otherwise, for any of the channel, the pixel value is smaller or greater than the lower/upper bound, then...

Server Leaper Vision Toolkit leaper-mcp/leaper-mcp-proxy
Category Read
Risk class Low
Parameters 80 required

What image_stats_count_pixel_color does on Leaper Vision Toolkit

AI agents call image_stats_count_pixel_color to retrieve information from Leaper Vision Toolkit without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

ParameterTypeRequiredDescription
lbRed integer 颜色范围下限,所有通道的数值需均小于或等于上限,红色通道值,范围0-255
ubRed integer 颜色范围上限,所有通道的数值需均大于或等于上限,红色通道值,范围0-255
lbBlue integer 颜色范围下限,所有通道的数值需均小于或等于上限,蓝色通道值,范围0-255
ubBlue integer 颜色范围上限,所有通道的数值需均大于或等于上限,蓝色通道值,范围0-255
lbGreen integer 颜色范围下限,所有通道的数值需均小于或等于上限,绿色通道值,范围0-255
ubGreen integer 颜色范围上限,所有通道的数值需均大于或等于上限,绿色通道值,范围0-255
imageUrl string 图片的url地址,通过这个地址获取到输入图像
regionJson string 指定的Roi区域。如果用户没有指定区域,请直接传入 "null"。 如果用户指定区域,传入一个序列化的JSON字符串,属性包括:LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。这两个属性的值可以从前处理的MCP工具的返回值中获取。LpvCl

Parameters from the server's own tool schema.

Why image_stats_count_pixel_color needs a policy

This tool analyzes image data and returns computed statistics (pixel counts within/outside color bounds). It performs read-only image analysis with no side effects, no data modification, and no capability to execute commands or access systems beyond the provided image. The operation is deterministic and safe, making it a Read category tool with low risk.

From the tool's definition Tool counts pixels matching color criteria in an image and returns statistics. The description states it 'Count the pixels' and 'Returns a JSON string with...BetweenCount...OutsideCount' — purely data retrieval with no modification, deletion, or execution of…

Questions about image_stats_count_pixel_color

What does the image_stats_count_pixel_color tool do? +

Count the pixels in the input image which is between or outside the given color bounds. For all of the channels, the pixel value is within the color bounds, then it's a "between" color pixel. Otherwise, for any of the channel, the pixel value is smaller or greater than the lower/upper bound, then it's a "outside" color pixel. 计算输入彩色图像中像素值在设置范围之内、之外的像素总数。 对于每一个像素,若其所有通道的颜色值均在指定范围内,则该像素为范围内"between"像素。 反之,若其任一通道的数值小于或大于指定颜色范围的下限或上限,则该像素为范围外"outside"像素。 Returns a JSON string with the following fields: BetweenCount: The count of pixels within the bounds OutsideCount: The count of pixels out of the bounds 返回结构是一个序列化的JSON字符串,包含以下字段: BetweenCount: 颜色值在颜色范围之间的像素总数 OutsideCount: 颜色值在颜色范围以外的像素总数. It is categorised as a Read tool in the Leaper Vision Toolkit MCP Server, which means it retrieves data without modifying state.

What parameters does image_stats_count_pixel_color accept? +

image_stats_count_pixel_color accepts 8 parameters: lbRed, ubRed, lbBlue, ubBlue, lbGreen, ubGreen, imageUrl, regionJson. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on image_stats_count_pixel_color? +

Register the Leaper Vision Toolkit MCP server in PolicyLayer and add a rule for image_stats_count_pixel_color: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Leaper Vision Toolkit. Nothing to install.

What risk level is image_stats_count_pixel_color? +

image_stats_count_pixel_color is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit image_stats_count_pixel_color? +

Yes. Add a rate_limit block to the image_stats_count_pixel_color rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block image_stats_count_pixel_color completely? +

Set action: deny in the PolicyLayer policy for image_stats_count_pixel_color. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides image_stats_count_pixel_color? +

image_stats_count_pixel_color is provided by the Leaper Vision Toolkit MCP server (leaper-mcp/leaper-mcp-proxy). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.