Content-Length: 286474 | pFad | https://github.com/modelcontextprotocol/python-sdk/issues/1462

4D Availability of the meta parameter in tool definition on the server · Issue #1462 · modelcontextprotocol/python-sdk · GitHub
Skip to content

Availability of the meta parameter in tool definition on the server #1462

@gabteixeira

Description

@gabteixeira

Description

Summary
It would be great if the SDK supported passing a meta field when defining tools, allowing developers to include additional metadata directly in the tool decorator.

Motivation
Currently, the SDK does not support passing a meta field during tool definition, limiting flexibility for attaching structured metadata such as descriptions, categories, or configuration details.

For example

from mcp.server import fastmcp

mcp = fastmcp.FastMCP(...)

@mcp.tool(meta={...})
def my_tool():
    ...

Comparison
In the latest version of the FastMCP package, this functionality is already supported:

from fastmcp import FastMCP

mcp = FastMCP(...)

@mcp.tool(meta={...})
def my_tool():
    ...

Expected behavior
The server SDK should support the meta argument when defining tools, consistent with the FastMCP implementation.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Significant bug affecting many users, highly requested featureenhancementRequest for a new feature that's not currently supportedready for workEnough information for someone to start working on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/modelcontextprotocol/python-sdk/issues/1462

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy