Skip to content

When developing an Agent with BAML, how to integrate the MCP server? #1920

@jtsang4

Description

@jtsang4

Hello, I'm trying to integrate BAML with an MCP server, and I'm running into a challenge with function calling. The BAML documentation (https://docs.boundaryml.com/examples/prompt-engineering/tools-function-calling) shows how to dynamically generate parameter signatures for a single function.

However, in my use case with the MCP server, I have multiple functions with dynamically defined signatures that the BAML model needs to be able to call. I'm unsure how to best approach this. Is there existing support for handling multiple dynamic function definitions, or is there a recommended workaround?

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