Skip to content

Commit 5b363de

Browse files
committed
chore(ref): split long tool descriptions across lines
Signed-off-by: TJ Hoplock <[email protected]>
1 parent 63cbdba commit 5b363de

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

pkg/mcp/tools.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ var (
3232
mcp.Description("Query to be executed"),
3333
),
3434
mcp.WithString("start_time",
35-
mcp.Description("[Optional] Start timestamp for the query to be executed at. Must be either Unix timestamp or RFC3339. Defaults to 5m ago."),
35+
mcp.Description("[Optional] Start timestamp for the query to be executed at."+
36+
" Must be either Unix timestamp or RFC3339. Defaults to 5m ago."),
3637
),
3738
mcp.WithString("end_time",
3839
mcp.Required(),
39-
mcp.Description("[Optional] End timestamp for the query to be executed at. Must be either Unix timestamp or RFC3339. Defaults to current time."),
40+
mcp.Description("[Optional] End timestamp for the query to be executed at."+
41+
" Must be either Unix timestamp or RFC3339. Defaults to current time."),
4042
),
4143
mcp.WithString("step",
42-
mcp.Description("[Optional] Query resolution step width in duration format or float number of seconds. It will be set automatically if unset."),
44+
mcp.Description("[Optional] Query resolution step width in duration format or float number of seconds."+
45+
" It will be set automatically if unset."),
4346
),
4447
)
4548

@@ -50,11 +53,14 @@ var (
5053
mcp.Description("Series matchers"),
5154
),
5255
mcp.WithString("start_time",
53-
mcp.Description("[Optional] Start timestamp for the query to be executed at. Must be either Unix timestamp or RFC3339. Defaults to 5m ago."),
56+
mcp.Description("[Optional] Start timestamp for the query to be executed at."+
57+
" Must be either Unix timestamp or RFC3339. Defaults to 5m ago."),
5458
),
5559
mcp.WithString("end_time",
5660
mcp.Required(),
57-
mcp.Description("[Optional] End timestamp for the query to be executed at. Must be either Unix timestamp or RFC3339. Defaults to current time."),
61+
mcp.Description("[Optional] End timestamp for the query to be executed at."+
62+
" Must be either Unix timestamp or RFC3339. Defaults to current time."),
63+
),
5864
),
5965
)
6066

0 commit comments

Comments
 (0)