Skip to content

Tools — API Reference

Concept Tools

groundworkers.tools.concept_tools

register_concept_tools(server, graph_service)

Register deterministic concept lookup tools against the MCP server.

These tools take a known identifier (concept_id, vocabulary+code) and return a fact — they are deterministic lookups, not text matching.

For free-text grounding see resolver_tools.py. For direct lexical search with retrieval signals see search_tools.py.

Resolver Tools

groundworkers.tools.resolver_tools

register_resolver_tools(server, grounding_service)

Register free-text concept resolution tools against the MCP server.

These tools map unstructured text (clinical terms, natural language, partial descriptions) to OMOP standard concepts. They are probabilistic — results are ranked candidates, not guaranteed matches.

For deterministic lookups from known identifiers (concept_id, vocab+code, hierarchy traversal) see concept_tools.py. For direct lexical search with retrieval signals see search_tools.py.

Search Tools

groundworkers.tools.search_tools

register_search_tools(server, vocab_service)

Register lexical search tools against the MCP server.

Mapping Tools

groundworkers.tools.mapping_tools

Embedding Tools

groundworkers.tools.embedding_tools

Domain Tools

groundworkers.tools.domain_tools

Source Planning Tools

groundworkers.tools.source_planning_tools

Knowledge Tools

groundworkers.tools.knowledge_tools

Expose the knowledge pack catalogue and selected pack content over MCP.

register_knowledge_tools(server, catalogue)

Register the knowledge tools and resource when a packs root is available.

System Tools

groundworkers.tools.system_tools

System-level MCP tools and resources.

Tools are always registered regardless of adapter availability, so callers always get a structured response (never "unknown tool").

Tools

system_status — reports availability of every configured backend. system_vocabulary_catalogue — returns the full OMOP vocabulary/domain/class catalogue from the omop-graph backend. Requires omop_graph to be configured.

Resources

config://active — sanitised view of the active server configuration. vocabularies://catalogue — full OMOP vocabulary/domain/concept-class catalogue with concept counts. Requires omop_graph to be configured.