execute_function
Run Foundry functions with specified parameters to process data and perform operations within the platform.
Instructions
Execute a function using given parameters
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_api_name | Yes | ||
| parameters | Yes |
Implementation Reference
- src/mcp_server_foundry/server.py:130-143 (handler)The core handler implementation for the 'execute_function' tool, which executes a Foundry ontology query using the provided API name and parameters.@mcp.tool() def execute_function(query_api_name: str, parameters: dict, ctx: Context): """ Execute a function using given parameters """ foundry_client: FoundryClient = ctx.request_context.lifespan_context.foundry_client ontology_id: str = ctx.request_context.lifespan_context.ontology_id results = foundry_client.ontologies.Query.execute( ontology_id, query_api_name, parameters=parameters ) return results