get_molecular_template
Generate Python functions to create molecular contexts for constructing few-shot prompts programmatically in the Sutra MCP server.
Instructions
Returns the Python function for creating molecular contexts (Module 02). Use this to programmatically construct few-shot prompts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function for the 'get_molecular_template' tool, decorated with @mcp.tool(). It simply returns the imported MOLECULAR_CONTEXT_FUNC, which is the molecular template string.@mcp.tool() def get_molecular_template() -> str: """ Returns the Python function for creating molecular contexts (Module 02). Use this to programmatically construct few-shot prompts. """ return MOLECULAR_CONTEXT_FUNC
- src/context_engineering_mcp/server.py:268-268 (registration)The @mcp.tool() decorator registers the get_molecular_template function as an MCP tool.@mcp.tool()