Tool Schema

Schema for tools generated from OpenAPI specifications.

JSON Schema: /schemas/ocp-tool.json

Properties

FieldTypeRequiredDescription
descriptionstringYesHuman-readable description from OpenAPI operation summary/description
methodstringYesHTTP method for this operation
namestringYesDeterministic camelCase tool name generated from operationId or method+path
parametersobjectYesParameter definitions extracted from OpenAPI specification
pathstringYesAPI endpoint path template with {parameter} placeholders
response_schemaobjectYesOpenAPI response schema for successful responses (2xx status codes)
deprecatedbooleanNoWhether this operation is marked as deprecated in OpenAPI
operation_idstring?NoOriginal OpenAPI operationId if present
securityarrayNoSecurity requirements from OpenAPI specification
serversarrayNoServer information from OpenAPI specification
tagsarray?NoOpenAPI tags for categorizing and organizing tools

name

Type: string

Deterministic camelCase tool name generated from operationId or method+path

Pattern: ^[a-z][a-zA-Z0-9]*$

method

Type: string

HTTP method for this operation

Allowed values:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • HEAD
  • OPTIONS

path

Type: string

API endpoint path template with {parameter} placeholders

Pattern: ^/

parameters

Type: object

Parameter definitions extracted from OpenAPI specification

parameters.parameters_pattern

Type: object (dynamic properties)

Pattern: Properties matching ^[a-zA-Z][a-zA-Z0-9_]*$

Each property matching this pattern must be an object with:

Properties

FieldTypeRequiredDescription
locationstringYesWhere this parameter should be placed in the HTTP request
requiredbooleanYesWhether this parameter is required
typestringYesParameter data type
defaultanyNoDefault value for optional parameters
descriptionstringNoHuman-readable parameter description
enumarrayNoAllowed values for enumerated parameters
formatstringNoOpenAPI format specifier (e.g., ‘date-time’, ’email’)
itemsobjectNoSchema for array items when type is ‘array’
maximumnumberNoMaximum value for numeric parameters
maxLengthintegerNoMaximum length for string parameters
minimumnumberNoMinimum value for numeric parameters
minLengthintegerNoMinimum length for string parameters
patternstringNoRegular expression pattern for string validation
propertiesobjectNoProperty schemas when type is ‘object’
schemaobjectNoFull OpenAPI schema definition for this parameter

parameters.parameters_pattern.type

Type: string

Parameter data type

Allowed values:

  • string
  • number
  • integer
  • boolean
  • array
  • object

parameters.parameters_pattern.location

Type: string

Where this parameter should be placed in the HTTP request

Allowed values:

  • path
  • query
  • header
  • body

parameters.parameters_pattern.description

Type: string

Human-readable parameter description

Default: ""

response_schema

Type: object

OpenAPI response schema for successful responses (2xx status codes)

Properties

FieldTypeRequiredDescription
itemsobjectNoArray item schema definition
propertiesobjectNoObject property definitions
typestringNoResponse data type

servers

Type: array

Server information from OpenAPI specification

Array items: object

Item Properties:

Properties

FieldTypeRequiredDescription
urlstringYesBase URL for this server
descriptionstringNoHuman-readable description of this server

servers.url

Type: string

Base URL for this server

Format: uri

deprecated

Type: boolean

Whether this operation is marked as deprecated in OpenAPI

Default: false