Skip to main content
Glama

measure_pulse_width

Measure pulse width at specified threshold on oscilloscope channels to analyze signal timing characteristics and duration parameters.

Instructions

Measure pulse width at specified threshold.

Args: channel: Channel to measure. threshold_percent: Threshold percentage for pulse measurement (0-100).

Returns: Dictionary containing pulse width in seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYes
threshold_percentNo

Implementation Reference

  • Handler function for the 'measure_pulse_width' MCP tool. It is decorated with @mcp.tool() for registration and provides input schema via type hints. Currently returns a 'not_implemented' stub.
    @mcp.tool() def measure_pulse_width( channel: Literal["A", "B", "C", "D"], threshold_percent: float = 50.0 ) -> dict[str, Any]: """Measure pulse width at specified threshold. Args: channel: Channel to measure. threshold_percent: Threshold percentage for pulse measurement (0-100). Returns: Dictionary containing pulse width in seconds. """ # TODO: Implement pulse width measurement return { "status": "not_implemented", "channel": channel, "threshold": threshold_percent, }
  • Call to register_analysis_tools which defines and registers the measure_pulse_width tool along with other analysis tools.
    register_analysis_tools(mcp)
  • Import of register_analysis_tools function from analysis.py.
    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