Skip to main content
Glama
qwert666
by qwert666

execute_function

Run functions in Foundry datasets with specified parameters to process data and perform operations through natural language commands.

Instructions

Execute a function using given parameters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
query_api_nameYes
parametersYes

Implementation Reference

  • The handler function for the 'execute_function' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function executes a Foundry ontology query using the provided query_api_name and parameters, accessing the Foundry client from the context.
    @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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qwert666/mcp-server-foundry'

If you have feedback or need assistance with the MCP directory API, please join our Discord server