definy.mcp-rpc-tool
- description
- Run the RPC method (definy.handle-rpc) with the tool arguments as the request body
- type
Fn(method: String, arguments: @definy.json, request: @http.request) -> @definy.service-io
- expression
fn(method$0, arguments$1, request$2) =>
match @definy.handle-rpc(method: $0, request: $2) {
#some(handler$3) =>
$3(request: $1),
#none(_) =>
@definy.mcp-text-error(text: @core.string-concat(left: "No RPC method: ", right: $0))
}- visibility
- public
definy.mcp-rpc-tool (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: HD_OGW6olDL5E_zdYDprIYaInXsMiq1G-V7UmZWdld8
content hash: enP6R7z8fa2JDr4xsBBHd20q3k_WaHKc0xGGwBiNIXs