Skip to content

Rule Reference

SEC315lintai-ai-securitycompatqualitystabletool_jsonwarn

Tool descriptors: duplicate tool names

MCP-style tool descriptor collection contains duplicate tool names

Public lane
compat
Category
quality
Provider
lintai-ai-security
Scope
per-file
Surface
tool_json
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message only
How to read this lane

Config, schema, and policy contract review.

How to read this category

Contract, schema, or config correctness signal.

Activation Model

Preset Activation

These presets explain where this rule appears in the product experience.

Lifecycle

Stable Lifecycle Contract

State

stable

Graduation rationale

Checks structured MCP-style tool collections for duplicate names that can shadow one another.

Deterministic signal basis

ToolJsonSignals duplicate-name detection over MCP-style tool collections.

Malicious corpus
tool-json-duplicate-tool-names
Benign corpus
tool-json-unique-tool-names
structured evidence required remediation reviewed
Canonical note

Structural stable rule intended as a high-precision check with deterministic evidence.

Nearby Signals

Related Rules

Why It Matters

Duplicate tool names create ambiguity in machine-consumed tool catalogs. One tool can shadow another, or clients can behave inconsistently about which definition wins.

What Triggers

SEC315 applies to MCP-style tool descriptor collections and triggers when the same tool name appears more than once in the parsed collection.

Example that triggers:

json
[
  { "name": "list_clusters", "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false } },
  { "name": "list_clusters", "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false } }
]

False Positives

This is a deterministic structural check over parsed tool names. If duplicate names are intentional, the safer fix is still to make the identifiers unique and keep aliases in descriptive fields instead.

Remediation

Rename the duplicated tool so each exported machine identifier is unique.