Skip to main content
Glama

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
NameRequiredDescriptionDefault

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
  • The @mcp.tool() decorator registers the get_molecular_template function as an MCP tool.
    @mcp.tool()

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/4rgon4ut/sutra'

If you have feedback or need assistance with the MCP directory API, please join our Discord server