feat: adding tool annotation used by MCP

This commit is contained in:
Lance Galletti 2025-06-23 10:56:08 -04:00
parent 51b179e1c5
commit 7123e9723c
9 changed files with 168 additions and 0 deletions

View file

@ -3940,6 +3940,21 @@ components:
type: object
additionalProperties:
$ref: '#/components/schemas/ToolParamDefinition'
annotations:
type: object
properties:
title:
type: string
read_only_hint:
type: boolean
destructive_hint:
type: boolean
idempotent_hint:
type: boolean
open_world_hint:
type: boolean
additionalProperties: false
title: ToolAnnotations
additionalProperties: false
required:
- tool_name
@ -4638,6 +4653,21 @@ components:
- type: string
- type: array
- type: object
annotations:
type: object
properties:
title:
type: string
read_only_hint:
type: boolean
destructive_hint:
type: boolean
idempotent_hint:
type: boolean
open_world_hint:
type: boolean
additionalProperties: false
title: ToolAnnotations
additionalProperties: false
required:
- name
@ -5990,6 +6020,21 @@ components:
type: string
description:
type: string
annotations:
type: object
properties:
title:
type: string
read_only_hint:
type: boolean
destructive_hint:
type: boolean
idempotent_hint:
type: boolean
open_world_hint:
type: boolean
additionalProperties: false
title: ToolAnnotations
additionalProperties: false
required:
- input_schema
@ -7768,6 +7813,21 @@ components:
- type: string
- type: array
- type: object
annotations:
type: object
properties:
title:
type: string
read_only_hint:
type: boolean
destructive_hint:
type: boolean
idempotent_hint:
type: boolean
open_world_hint:
type: boolean
additionalProperties: false
title: ToolAnnotations
additionalProperties: false
required:
- identifier