Skip to main content
Glama

getLatestShotId

Retrieve the latest espresso shot ID from Gaggiuino espresso machine controllers using the MCP server, enabling AI clients to access real-time data for analysis.

Instructions

Get latest espresso shot id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'getLatestShotId' tool. It is decorated with @mcp.tool() for registration and fetches the latest shot ID from the espresso machine's API endpoint using the make_gg_request helper.
    @mcp.tool()
    async def getLatestShotId() -> str:
        """Get latest espresso shot id.
        """
        url = f"{API_BASE}/api/shots/latest"
        data = await make_gg_request(url)
    
        if not data:
            return "Unable to fetch shot or no shot found."
    
        id = data[0]
        return id
Install Server

Other Tools

Related Tools

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/AndrewKlement/gaggiuino-mcp'

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