Define & Validate APIsValidation RulesetsOpenAPI Rulesets

OpenAPI v3 Linting for Agentic Tools

Linting checks APIMatic performs on OpenAPI v3 files to make sure they follow practices that improve the output of agentic tools and the overall clarity of the API.

PropertyValue
Ruleset IDopenapi-v3-agentic-tools-linting
Code prefixOPENAPI3AGENTICTOOLS_L
TypeLinting
Default severityWarning
Rule systemSemantic
Rules10

OpenAPI Root Information

CodeRuleSeverityWhat it checks
OPENAPI3AGENTICTOOLS_L001unique-tagsWarningThe 'tags' array in the OpenAPI root must contain unique tag names. Duplicate tags create ambiguity in documentation, code generation, and agentic tools. Ensuring tag name uniqueness improves categorization, clarity, and tool-generated outputs.
OPENAPI3AGENTICTOOLS_L002required-tag-descriptionWarningEvery tag defined in the 'tags' array should contain a meaningful description. Clear descriptions help developers and AI agents understand grouping and intent. Well-documented tags improve agentic tool reasoning and enhance generated outputs.

OpenAPI Info

CodeRuleSeverityWhat it checks
OPENAPI3AGENTICTOOLS_L040required-info-descriptionWarningThe 'info' object should contain a clear and informative description that explains the API's purpose, domain, and features. A detailed description significantly improves agentic tools' ability to reason about API behavior and generate accurate guidance or code.
OPENAPI3AGENTICTOOLS_L041required-environment-informationWarningTo optimize agentic tools output, provide environment-specific details for each server defined in the OpenAPI document. This is best achieved using APIMatic's x-server-configuration extension, which helps distinguish production, staging, and other environments.

OpenAPI Operations

CodeRuleSeverityWhat it checks
OPENAPI3AGENTICTOOLS_L230required-operation-summaryErrorAgentic tools heavily rely on operation summaries to understand API intent. Ensure every operation object includes a concise, meaningful summary to improve AI reasoning and tool output quality.
OPENAPI3AGENTICTOOLS_L231required-operation-descriptionErrorA detailed operation description enables agentic tools to infer behavior, side effects, and constraints. Ensure each operation includes a complete and meaningful description.

OpenAPI Parameters

CodeRuleSeverityWhat it checks
OPENAPI3AGENTICTOOLS_L330required-parameter-descriptionErrorParameter descriptions help both developers and AI agents understand the purpose, expected format, and constraints of inputs. Provide a meaningful description for every parameter.
OPENAPI3AGENTICTOOLS_L331at-least-one-parameter-exampleErrorExamples significantly improve agentic tools' ability to infer parameter usage, constraints, and expected values. Define at least one valid example for every parameter.

OpenAPI Schemas

CodeRuleSeverityWhat it checks
OPENAPI3AGENTICTOOLS_L660required-schema-descriptionWarningSchema descriptions help agentic tools understand the purpose and structure of models. Include meaningful descriptions to improve generated code and AI reasoning.
OPENAPI3AGENTICTOOLS_L661required-description-for-enum-itemErrorEnum values often carry domain-specific meaning. Use APIMatic's x-enum-elements extension to define readable names and descriptions for each enum item to improve clarity for agentic tools.

Learn more

On this page