You currently cannot make a tool that takes a JSON object or array as a parameter. This is problematic because MCP protocol itself supports JSON objects. CommandExtensions.ParseFromDictionary(Command ...
Currently, the ConvertTo-Json cmdlet assembles all input objects into an in-memory List, then converts that to one Json string for output. This can be inefficient if there are many input objects.
Whenever you use PowerShell, whether it is querying data or making a change to some configuration or existing object, you are working with different types of objects. You may not be aware of it ...
How to use PowerShell objects, how to tease more info and functionality out of them and how objects can be useful in scripting scenarios. One of the things most people do not realize about PowerShell, ...