High Risk

pat_match_new

Create a new pattern matching tool instance. 创建一个新的模板匹配工具实例。 This interface provides functionalities of pattern matching. 该接口提供模板匹配的功能。 Pattern detector is designed to single or multiple instances of the trained pattern in the given image and region. 模板匹配用于在指定图像和区域中基于训练的模板,搜索和定位一个或多个匹配结果。 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 pat_match_new 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.

pat_match_new 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:
  pat_match_new:
    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 pat_match_new
Category Execute
Risk Level High

View all 169 tools →

What does the pat_match_new tool do? +

Create a new pattern matching tool instance. 创建一个新的模板匹配工具实例。 This interface provides functionalities of pattern matching. 该接口提供模板匹配的功能。 Pattern detector is designed to single or multiple instances of the trained pattern in the given image and region. 模板匹配用于在指定图像和区域中基于训练的模板,搜索和定位一个或多个匹配结果。 The algorithm is real-time and of sub-pixel accuracy. Detection is based mainly on shape information extracted from pattern template, with combination of the gray-scale features. 该算法具有高实时性和高亚像素角度的特点。匹配过程基于从模板图像中训练得到的形状特征,结合图像的灰度特征。 It's robust to translation, scale and rotation of the pattern objects, as well as the lightening or material changes in production line which results in intensity, contrast or blurring in input images. 可以定位目标物体的旋转、平移和缩放,可有效应对产线环境的光照变化、物体材质变化引起的明暗、对比度、模糊等现象。 To use this interface, you should create a LMatch object. 使用这个接口,需要创建一个 LMatch 对象。 返回结构是一个序列化的JSON字符串,属性包括:LpvClassName(调用工具函数的名称) 和 InputParameterFile(调用工具函数需要传入的参数文件名称)。 LpvClassName 表示模板匹配的功能对象名称,目前名称应为:ILMatch (模板匹配的功能对象); InputParameterFile 表示模板匹配的功能对象的参数文件名称。 . 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 pat_match_new? +

Add a rule in your Intercept YAML policy under the tools section for pat_match_new. 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 pat_match_new? +

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

Can I rate-limit pat_match_new? +

Yes. Add a rate_limit block to the pat_match_new 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 pat_match_new completely? +

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

pat_match_new 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.