Open
Description
Problem Statement
There's no way to specify that a tool argument can be any shape. withNumber, withBoolean, withArray, withObject, withString exist, but there's nothing for a schema-less type.
Proposed Solution
JSON Schema defines the any type as an empty object:
"properties": {
"F1": {
"type": "string"
},
"F2": {
"type": "integer"
},
"F3": {}
},
where F3 is any.
I'd like to see a withAny tool argument method.
Example Usage
tool := mcp.NewTool(
toolName,
mcp.WithDescription(toolDescription),
mcp.WithAny("freeEntry"),
)