A Semantic Kernel plugin is effectively a serialization contract reflected into a JSON tool schema for the model. The article separates the names the model must keep reading from the implementation you can safely rename, flatten and encrypt.
Key points
- Pinning [KernelFunction("get_forecast")] and ImportPluginFromType("weather") makes the schema weather-get_forecast regardless of CLR names.
- Parameter names cannot be overridden: SK writes ParameterInfo.Name straight into the schema property keys.
- [Description] text lives in the metadata blob, so method-body string encryption never touches it.
- Without explicit names the tool identity comes from type and method names and silently becomes p0-a after renaming, breaking prompt templates.
- KernelFunctionMetadata lets you assert the emitted function name and parameter list without a network round trip.
Real-world use
- Teams shipping a commercial Semantic Kernel plugin whose tool bodies are the actual IP
- Agent apps whose prompt templates and planner hints refer to function names that must stay stable
- CI pipelines that assert the emitted tool schema is unchanged before release
This summary was generated by the agent from the original post on DEV Community: #semantickernel. The full text and all rights belong to its author and publisher. Go to original