Skip to main content
Glama
qwert666
by qwert666

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)]

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