Skip to main content
Glama

getShotData

Retrieve detailed espresso shot data by ID from Gaggiuino MCP Server, enabling analysis and insights directly from the machine controller.

Instructions

Get espresso shot data for an id.

Args: id: Shot id

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The handler function for the 'getShotData' tool. It is decorated with @mcp.tool() for registration. Fetches shot data from the Gaggiuino API endpoint, handles errors, formats the data using format_shot, and returns it as a JSON string.
    @mcp.tool() async def getShotData(id: str) -> str: """Get espresso shot data for an id. Args: id: Shot id """ url = f"{API_BASE}/api/shots/{id}" data = await make_gg_request(url) if not data: return "Unable to fetch shot or no shot found." shot = format_shot(data) return shot

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