list_functions
Discover available functions in the Foundry MCP Server to interact with datasets and ontology objects through 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' MCP tool, registered via the @mcp.tool() decorator. It lists all available ontology query types by accessing the FoundryClient from the context and returning their names.@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)]