Skip to content

FunctionDefinition only accepts raw struct types for setting parameter and response schemas #65

@rileyg98

Description

@rileyg98

I've just noticed FunctionDefinition seems to only accept the raw struct types implementing JsonSchema when setting the parameter and response schemas. This makes the FunctionDefinition object fundamentally incompatible with the official Model Context Protocol Rust SDK, which exposes its tools with only a serde_json::Value schema object. Since you're converting the struct to a Value object, I've created a PR with two functions to allow setting of the parameter and response schemas directly to allow RMCP interop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions