High Risk

il_image_threshold_stretch

Stretch the input image and output the result image. Each output pixel represents the difference between the greyscale value of each input pixel and the threshold lower bound. For example, if a pixel value is 100 and the threshold lower bound is 25, then the output pixel value will be 75. If the ...

Part of the Leaper Vision Toolkit MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.

leaper-mcp/leaper-mcp-proxy Execute Risk 3/5

AI agents invoke il_image_threshold_stretch to trigger processes or run actions in Leaper Vision Toolkit. Execute operations can have side effects beyond the immediate call -- triggering builds, sending notifications, or starting workflows. Rate limits and argument validation are essential to prevent runaway execution.

il_image_threshold_stretch can trigger processes with real-world consequences. An uncontrolled agent might start dozens of builds, send mass notifications, or kick off expensive compute jobs. Intercept enforces rate limits and validates arguments to keep execution within safe bounds.

Execute tools trigger processes. Rate-limit and validate arguments to prevent unintended side effects.

leaper-mcp-leaper-mcp-proxy.yaml
tools:
  il_image_threshold_stretch:
    rules:
      - action: allow
        rate_limit:
          max: 10
          window: 60
        validate:
          required_args: true

See the full Leaper Vision Toolkit policy for all 169 tools.

Tool Name il_image_threshold_stretch
Category Execute
Risk Level High

View all 169 tools →

What does the il_image_threshold_stretch tool do? +

Stretch the input image and output the result image. Each output pixel represents the difference between the greyscale value of each input pixel and the threshold lower bound. For example, if a pixel value is 100 and the threshold lower bound is 25, then the output pixel value will be 75. If the user has set threshold values, execute the set threshold tool first, then execute this tool. Returns a serialized JSON structure containing: LpvClassName indicating the function name; InputParameterFile representing the parameter file name; result property representing the URL address of the stretched image;这个是拉伸图像工具。拉伸输入图像并输出结果图像。计算输入图像中的每个像素,其灰度值与阈值范围下限的距离。如若阈值范围下限为 25,灰度值为 100 的像素,其输出值为 75。如果用户同时设置了阈值,要先执行设置阈值工具,然后再执行此工具。返回结构是一个序列化的json,其中LpvClassName 表示调用工具函数的名称;InputParameterFile 表示调用工具函数需要传入的参数文件名称;result 属性是输入图像拉伸结果的图片地址. It is categorised as a Execute tool in the Leaper Vision Toolkit MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

How do I enforce a policy on il_image_threshold_stretch? +

Add a rule in your Intercept YAML policy under the tools section for il_image_threshold_stretch. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the Leaper Vision Toolkit MCP server.

What risk level is il_image_threshold_stretch? +

il_image_threshold_stretch is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit il_image_threshold_stretch? +

Yes. Add a rate_limit block to the il_image_threshold_stretch rule in your Intercept 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 il_image_threshold_stretch completely? +

Set action: deny in the Intercept policy for il_image_threshold_stretch. 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 il_image_threshold_stretch? +

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

Enforce policies on Leaper Vision Toolkit

Open source. One binary. Zero dependencies.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

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

Message sent.

We'll get back to you soon.