[ENH] add list_metrics and compute_metric MCP tools (#79)#137
Open
rupeshca007 wants to merge 2 commits intosktime:mainfrom
Open
[ENH] add list_metrics and compute_metric MCP tools (#79)#137rupeshca007 wants to merge 2 commits intosktime:mainfrom
rupeshca007 wants to merge 2 commits intosktime:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #79
Adds two new MCP tools that expose sktime's forecasting performance metrics to LLM agents:
list_metrics- returns a catalogue of all supported metrics (name, description,lower_is_better,scale_dependent,requires_y_train).compute_metric- evaluates any metric from the catalogue on explicity_true/y_predlist inputs. Scale-normalised metrics (MASE, RMSSE) additionally accept ay_trainargument.Supported Metrics
Files Changed
src/sktime_mcp/tools/metrics.pysrc/sktime_mcp/tools/__init__.pysrc/sktime_mcp/server.pytests/test_metrics.pyHow LLMs Can Use This
Checklist
tools/describe_estimator.py,tools/evaluate.py)list_tools()with full JSON schema (includingrequiredfields)call_tool()pytest.mark.skipifused (notimportorskip) so list_metrics tests always run without sktime installed