Tools User Guide
These guides cover declaring tools on an MCP server and controlling what a tool returns. Start with Getting started if you have not registered a tool yet.
Guides
| Guide | Scope | API starting points |
|---|---|---|
| Defining tools | Registration, the fluent builder, typed input properties, enum constraints, arrays of objects, and the four behaviour hints. | TTMSMCPTool, TTMSMCPToolProperty, TTMSMCPToolBuilder |
| Tool results | Return types, structured output with a JSON output schema, native MCP content items, and opt-in long-running task execution. | TTMSMCPContent, TTMSMCPTool, TTMSMCPJSONSchemaGenerator |
Related components
- MCP Server owns the
Toolscollection and answerstools/listandtools/call. - Attributes generates the same tool surface from RTTI attributes, so plain Delphi methods become tools without explicit registration.
- Resources exposes readable content by URI, and Prompts exposes reusable prompt templates — the other two things a server advertises alongside tools.