Skip to main content
Glama

get_statistics

Analyze signal data from PicoScope oscilloscopes to calculate statistical metrics including minimum, maximum, mean, and standard deviation values.

Instructions

Get statistical analysis of signal.

Args: channel: Channel to analyze. num_samples: Number of samples to analyze.

Returns: Dictionary containing min, max, mean, std dev, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYes
num_samplesNo

Implementation Reference

  • The handler function for the 'get_statistics' MCP tool. Defined as a nested function within register_analysis_tools and decorated with @mcp.tool(). Includes parameter type hints serving as input schema and a stub implementation.
    @mcp.tool() def get_statistics( channel: Literal["A", "B", "C", "D"], num_samples: int = 1000 ) -> dict[str, Any]: """Get statistical analysis of signal. Args: channel: Channel to analyze. num_samples: Number of samples to analyze. Returns: Dictionary containing min, max, mean, std dev, etc. """ # TODO: Implement statistics calculation return {"status": "not_implemented", "channel": channel, "num_samples": num_samples}
  • The registration point where register_analysis_tools is called on the MCP server instance, thereby registering the 'get_statistics' tool along with other analysis tools.
    register_analysis_tools(mcp)
  • Import of register_analysis_tools from analysis.py, prerequisite for registering the tools including 'get_statistics'.
    from .tools.analysis import register_analysis_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/markuskreitzer/picoscope_mcp'

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