Skip to content

Commit 80b26a4

Browse files
Fix commas (#40)
1 parent 7adbed2 commit 80b26a4

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

tools/get_k8s_event_attribute_values.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ type GetK8sEventAttributeValueHandlerArgs struct {
1818
ExcludeFilters map[string][]string `json:"excludeFilters" jsonschema:"description=The exclude filters to exclude/eliminate possible values an attribute can take. Events matching the exclude filters will not be returned. For example if you want the possible values for attribute key service.name where the attribute environment is not X then you would set the ExcludeFilters as {environment: [X]}"`
1919
Regexes []string `json:"regexes" jsonschema:"description=The regexes to apply to the event messages. Only the attribute values (for a given attribute key) of events messages that match these regexes will be returned. For example if you want the possible values for attribute key service.name where the event message contains the word 'error' you would set the regexes as ['error']"`
2020
ExcludeRegexes []string `json:"excludeRegexes" jsonschema:"description=The exclude regexes to apply to the event messages. The attribute values (for a given attribute key) of events messages that match these regexes will not be returned. For example if you want the possible values for attribute key service.name where the event message does not contain the word 'error' you would set the exclude regexes as ['error']"`
21-
Environments []string `json:"environments" jsonschema:"description=The environments to get events from. If empty, events from all environments will be returned"`
22-
Ascending bool `json:"ascending" jsonschema:"description=If true, events will be returned in ascending order, otherwise in descending order"`
21+
Environments []string `json:"environments" jsonschema:"description=The environments to get events from. If empty events from all environments will be returned"`
22+
Ascending bool `json:"ascending" jsonschema:"description=If true events will be returned in ascending order otherwise in descending order"`
2323
}
2424

2525
func GetK8sEventAttributeValuesForIndividualAttributeHandler(ctx context.Context, arguments GetK8sEventAttributeValueHandlerArgs) (*mcpgolang.ToolResponse, error) {

tools/get_trace_spans.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
type GetTraceSpansHandlerArgs struct {
1414
TimeConfig utils.TimeConfig `json:"time_config" jsonschema:"required,description=The time period to get trace spans for. e.g. if you want to get spans for the last 5 minutes you would set time_period=5 and time_window=Minutes. You can also set an absolute time range by setting start_time and end_time"`
1515
TraceId string `json:"trace_id" jsonschema:"required,description=The traceId of the trace to get the associated spans. get_traces tool will return list of traceIds which should be used for this field."`
16-
Environments []string `json:"environments" jsonschema:"description=The environments to get the spans for. If empty, all environments will be included"`
16+
Environments []string `json:"environments" jsonschema:"description=The environments to get the spans for. If empty all environments will be included"`
1717
}
1818

1919
type GetSpansForTraceRequest struct {

tools/tools.go

+11-9
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ var MetoroToolsList = []MetoroTools{
2424
},
2525
{
2626
Name: "get_logs",
27-
Description: `Get logs from all or specific services/hosts/pods. Before calling this you MUST first call get_attribute_keys and get_attribute_values. Results are limited to 100 logs lines. Log lines are large so if you want to check for trends you should use get_timeseries_data with the log type then us this after to drill in. Before using this you MUST first call get_attribute_keys to get the possible log attribute keys which can be used as Filter/ExcludeFilter keys.`,
27+
Description: `Get logs from all or specific services/hosts/pods. Results are limited to 100 logs lines. Before using this you MUST first call get_attribute_keys and get_attribute_values to get the possible log attribute keys and values which can be used as Filter/ExcludeFilter keys.`,
2828
Handler: GetLogsHandler,
2929
},
3030
{
3131
Name: "get_traces",
3232
Description: `Get list of traces from your cluster. Results are limited to 100 traces so try to use filters to narrow down what you are looking for.
33+
Prior to using this tool, YOU MUST first call get_attribute_keys and subsequently get_attribute_values to get the possible trace attribute keys and values which can be used as Filter/ExcludeFilter keys.
3334
Use this tool when you are interested in the trace attributes to get more information to answer why/what. If you want more details about a specific trace use get_trace_spans to see individual span details.
3435
If you would like to check existence of traces use get_timeseries_data tool with type=trace to get count/p50/p90/p95/p99 of traces instead of using get_traces tool.
36+
After calling get traces you should normally call get_trace_spans to get the spans associated with the traceId you are interested in.
3537
`,
3638
Handler: GetTracesHandler,
3739
},
3840
{
3941
Name: "get_trace_spans",
40-
Description: `Get the spans associated with a specific traceId. This allows you to view the entire trace with all its spans in a tree like structure.`,
42+
Description: `Get the spans associated with a specific traceId. This allows you to view the entire trace with all its spans in a tree like structure. You should basically always use this after calling get_traces tool to get the traceId you are interested in. This tool gives you all spans in a trace.`,
4143
Handler: GetTraceSpansHandler,
4244
},
4345
{
@@ -46,7 +48,7 @@ var MetoroToolsList = []MetoroTools{
4648
First you need the type of timeseries data you are requesting for. This can be one of metric or traces or logs or kubernetes resources. If it is metrics then you HAVE TO call the get_metric_names tool to get the available metric names which can be used as MetricName argument for this tool.
4749
Then YOU HAVE TO call get_attribute_keys tool to retrieve the available attribute keys and get_attribute_values to retrieve values you are interested in to use in Filter/ExcludeFilter keys for this tool.
4850
You can also use Splits argument to group/split the metric data by the given metric attribute keys. Only use the attribute keys and values that are available for the MetricName that are returned from get_attribute_keys and get_attribute_values tools. If you are not getting proper results back then you might have forgotten to set the correct attribute keys and values. Try again with the correct attribute keys and values you get from get_attribute_values.
49-
Metrics of type counter (or with _total suffix) are cumulative metrics but Metoro querying engine already accounts for rate differences when returning the value so you don't need to calculate the rate/monotonic difference yourself. You can just query those metrics as they are without extra functions. If you are in doubt, use the get_metric_metadata tool to get more information (description, type, unit) about the metric and how to use it.
51+
Metrics of type counter (or with _total suffix) are cumulative metrics but Metoro querying engine already accounts for rate differences when returning the value so you don't need to calculate the rate/monotonic difference yourself. You can just query those metrics as they are without extra functions. If you are in doubt use the get_metric_metadata tool to get more information (description type unit) about the metric and how to use it.
5052
`,
5153
Handler: GetMultiMetricHandler,
5254
},
@@ -95,12 +97,12 @@ And then you can call this tool (get_k8s_events) to get the specific events you
9597
},
9698
{
9799
Name: "get_metric_names",
98-
Description: "Get available metric names to query. These metric names can be used as MetricName argument for get_metric, get_metric_metadata and get_timeseries_data and get_attribute_keys tools.",
100+
Description: "Get available metric names to query. These metric names can be used as MetricName argument for get_metric get_metric_metadata and get_timeseries_data and get_attribute_keys tools.",
99101
Handler: GetMetricNamesHandler,
100102
},
101103
{
102104
Name: "get_metric_metadata",
103-
Description: "Get metric description and type and unit for a metric. This tool can be used to get detailed information about a metric including its type, unit and description. Use this tool after getting the metric name that you are interested in from the get_metric_names tool and before calling the get_timeseries_data tool to understand the metric better.",
105+
Description: "Get metric description and type and unit for a metric. This tool can be used to get detailed information about a metric including its type unit and description. Use this tool after getting the metric name that you are interested in from the get_metric_names tool and before calling the get_timeseries_data tool to understand the metric better.",
104106
Handler: GetMetricMetadata,
105107
},
106108
//{
@@ -115,7 +117,7 @@ And then you can call this tool (get_k8s_events) to get the specific events you
115117
},
116118
{
117119
Name: "get_nodes",
118-
Description: "Get the nodes that are running in your cluster. To use this tool, first call get_node_attributes to get the possible node attribute keys and values which can be used for filtering nodes.",
120+
Description: "Get the nodes that are running in your cluster. To use this tool first call get_node_attributes to get the possible node attribute keys and values which can be used for filtering nodes.",
119121
Handler: GetNodesHandler,
120122
},
121123
{
@@ -125,12 +127,12 @@ And then you can call this tool (get_k8s_events) to get the specific events you
125127
},
126128
{
127129
Name: "get_node_info",
128-
Description: "Get detailed node information about a specific node. This tool provides information about the node's capacity, allocatable resources, and usage, yaml, node type, OS and Kernel information.",
130+
Description: "Get detailed node information about a specific node. This tool provides information about the node's capacity allocatable resources and usage yaml node type OS and Kernel information.",
129131
Handler: GetNodeInfoHandler,
130132
},
131133
{
132134
Name: "get_service_summaries",
133-
Description: "Get summaries of services/workloads running in your Kubernetes cluster. The summary includes the number of requests, errors (5xx and 4xx), P50, p95, p99 latencies. This tool is useful for understanding the performance of your services at a high level for a given relative or abosulute time range.",
135+
Description: "Get summaries of services/workloads running in your Kubernetes cluster. The summary includes the number of requests errors (5xx and 4xx) P50 p95 p99 latencies. This tool is useful for understanding the performance of your services at a high level for a given relative or abosulute time range.",
134136
Handler: GetServiceSummariesHandler,
135137
},
136138
{
@@ -140,7 +142,7 @@ And then you can call this tool (get_k8s_events) to get the specific events you
140142
},
141143
{
142144
Name: "get_alert_fires",
143-
Description: "Get list of alert fires from your Kubernetes cluster. Alert fires are the instances when an alert is triggered. This tool provides information about the alert name, the time it was triggered, the time it recovered, the environment, and the service name (if available) and the alert trigger message.",
145+
Description: "Get list of alert fires from your Kubernetes cluster. Alert fires are the instances when an alert is triggered. This tool provides information about the alert name the time it was triggered the time it recovered the environment and the service name (if available) and the alert trigger message.",
144146
Handler: GetAlertFiresHandler,
145147
},
146148
{

0 commit comments

Comments
 (0)