Add items and title to ToolParameter/ToolParamDefinition

This commit is contained in:
Tami Takamiya 2025-07-31 14:03:04 -04:00
parent 6b855af96f
commit 30768cc8c6
No known key found for this signature in database
GPG key ID: B23C22B8CB1E70C7
5 changed files with 18 additions and 0 deletions

View file

@ -120,6 +120,10 @@ async def list_mcp_tools(endpoint: str, headers: dict[str, str]) -> ListToolDefs
name=param_name,
parameter_type=param_schema.get("type", "string"),
description=param_schema.get("description", ""),
required="default" not in param_schema,
items=param_schema.get("items", None),
title=param_schema.get("title", None),
default=param_schema.get("default", None),
)
)
tools.append(