list_functions
Discover available functions in the Foundry MCP Server to interact with datasets and ontology objects using natural language queries.
Instructions
List all available functions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_server_foundry/server.py:120-128 (handler)The handler function for the 'list_functions' tool. It retrieves and returns the list of available query types (functions) from the Foundry ontology using the provided context.@mcp.tool() def list_functions(ctx: Context) -> Iterator[str]: """ List all available functions""" foundry_client: FoundryClient = ctx.request_context.lifespan_context.foundry_client ontology_id: str = ctx.request_context.lifespan_context.ontology_id return [ontologyType for ontologyType in foundry_client.ontologies.Ontology.QueryType.list(ontology_id)]