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 through natural language queries.

Instructions

List all available functions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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