Skip to content

Add logging/tracing for MCP server / Pydantic tool registration with LLM #1214

Open
@BazaidKhan

Description

@BazaidKhan

Description

Hi team 👋,

While using the MCP server to define and register tools with the agent and LLM, I noticed that there's currently no logging or trace available to indicate when a tool gets registered. It would be really helpful for debugging and observability to have a log or trace event when:

  • A tool is registered with the agent
  • The tools are passed to the LLM during a ModelRequest

Additionally, since all tools are currently registered on every request, it might also be useful to expose a way to filter which tools are included, allowing for more granular control and traceability.

Thanks!

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions