diff options
| author | main <main@swarm.moe> | 2026-03-20 23:31:29 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-03-20 23:31:29 -0400 |
| commit | 3a523c3c8ac1bf9094dbe65a6f53b71085438c0c (patch) | |
| tree | 5055c0e64f3024059221d341f3b81434cae34586 /crates/fidget-spinner-cli/src/mcp | |
| parent | eb0f0f73b7da9d76ff6833757fd265725d3e4b14 (diff) | |
| download | fidget_spinner-3a523c3c8ac1bf9094dbe65a6f53b71085438c0c.zip | |
Open the metric unit vocabulary
Diffstat (limited to 'crates/fidget-spinner-cli/src/mcp')
| -rw-r--r-- | crates/fidget-spinner-cli/src/mcp/catalog.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/fidget-spinner-cli/src/mcp/catalog.rs b/crates/fidget-spinner-cli/src/mcp/catalog.rs index 9b486bc..d6c8171 100644 --- a/crates/fidget-spinner-cli/src/mcp/catalog.rs +++ b/crates/fidget-spinner-cli/src/mcp/catalog.rs @@ -601,9 +601,8 @@ fn tool_input_schema(name: &str) -> Value { ("key", string_schema("Metric key.")), ( "unit", - enum_string_schema( - &["seconds", "bytes", "count", "ratio", "custom"], - "Metric unit.", + string_schema( + "Metric unit token. Builtins include `scalar`, `count`, `ratio`, `percent`, `bytes`, `nanoseconds`, `microseconds`, `milliseconds`, and `seconds`; custom lowercase ascii tokens are also allowed.", ), ), ( |