Skip to content

Commit 13119b9

Browse files
patch: Slightly improve tool description for less token-consumption
1 parent 5c24126 commit 13119b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ const main = async () => {
321321

322322
tool(
323323
'list_vulnerabilities',
324-
'List all non-muted vulnerabilities from Dynatrace for the last 30 days. An additional filter can be provided using DQL filter.',
324+
'Retrieve all active (non-muted) vulnerabilities from Dynatrace for the last 30 days. An additional filter can be provided using DQL filter.',
325325
{
326326
riskScore: z
327327
.number()
@@ -562,7 +562,7 @@ const main = async () => {
562562

563563
tool(
564564
'verify_dql',
565-
'Verify a Dynatrace Query Language (DQL) statement on Dynatrace GRAIL before executing it. This step is recommended for DQL statements that have been dynamically created by non-expert tools. For statements coming from the `generate_dql_from_natural_language` tool as well as from documentation, this step can be omitted.',
565+
'Syntactically verify a Dynatrace Query Language (DQL) statement on Dynatrace GRAIL before executing it. Recommended for generated DQL statements. Skip for statements created by `generate_dql_from_natural_language` tool, as well as from documentation.',
566566
{
567567
dqlStatement: z.string(),
568568
},
@@ -592,7 +592,7 @@ const main = async () => {
592592
if (response.valid) {
593593
resp += `The DQL statement is valid - you can use the "execute_dql" tool.\n`;
594594
} else {
595-
resp += `The DQL statement is invalid. Please adapt your statement.\n`;
595+
resp += `The DQL statement is invalid. Please adapt your statement. Consider using "generate_dql_from_natural_language" tool for help.\n`;
596596
}
597597

598598
return resp;
@@ -602,8 +602,8 @@ const main = async () => {
602602
tool(
603603
'execute_dql',
604604
'Get Logs, Metrics, Spans or Events from Dynatrace GRAIL by executing a Dynatrace Query Language (DQL) statement. ' +
605-
'You can also use the "generate_dql_from_natural_language" tool upfront to generate or refine a DQL statement based on your request. ' +
606-
'Note: For more information about available fields for filters and aggregation, use the query "fetch dt.semantic_dictionary.models | filter data_object == \"logs\""',
605+
'Use the "generate_dql_from_natural_language" tool upfront to generate or refine a DQL statement based on your request. ' +
606+
'To learn about possible fields available for filtering, use the query "fetch dt.semantic_dictionary.models | filter data_object == \"logs\""',
607607
{
608608
dqlStatement: z
609609
.string()
@@ -795,7 +795,7 @@ const main = async () => {
795795

796796
tool(
797797
'chat_with_davis_copilot',
798-
'Use this tool in case no specific tool is available. Get an answer to any Dynatrace related question as well as troubleshooting, and guidance. *(Note: Davis CoPilot AI is GA, but the Davis CoPilot APIs are in preview)*',
798+
'Use this tool to ask any Dynatrace related question, in case no other more specific tool is available.',
799799
{
800800
text: z.string().describe('Your question or request for Davis CoPilot'),
801801
context: z.string().optional().describe('Optional context to provide additional information'),

0 commit comments

Comments
 (0)