ExMCP.Server.Tools.Simplified (ex_mcp v1.0.0-rc.8)

Copy Markdown View Source

Simplified tool definition DSL that reduces metaprogramming complexity.

Deprecated

Part of the deprecated ExMCP.Server.Tools API. Planned for removal in 2.0.0. Use ExMCP.Server.Handler with ExMCP.Server.DSL instead. use ExMCP.Server.Tools.Simplified emits a compile-time warning.

This module provided a cleaner API that avoided heavy AST manipulation. Prefer ExMCP.Server.DSL for new servers.

Summary

Functions

annotations(anns)

(macro)

apply_default_description(tool, desc)

deftool(name, description \\ nil, list)

(macro)

Define a tool with a cleaner syntax.

Instead of heavy metaprogramming, this builds a tool at compile time and registers it at runtime.

description(text)

(macro)

input_schema(schema)

(macro)

output_schema(schema)

(macro)

param(name, type, opts \\ [])

(macro)

process_instructions(tool, instructions)

run(handler)

(macro)

title(text)

(macro)