Skip to main content
Glama
qwert666
by qwert666

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
NameRequiredDescriptionDefault
query_api_nameYes
parametersYes

Implementation Reference

  • 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

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