Skip to content

Commit 72b29b5

Browse files
committed
feat(prompts): update artifacts prompts
1 parent 25611e9 commit 72b29b5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/tools/reports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const runQueryTool = {
122122
description: `Runs a report query with the specified configuration without persisting it.
123123
Fields that are not populated will use their default values if needed.
124124
You must use the 'limit' field to limit the number of rows in the report, maximum is 25.
125-
Use the dimension tool before running the query to get the list of dimensions and their types.
125+
Use the dimension tool or allocation tool before running the query to get the list of dimensions and their types or allocations.
126126
If possible, use \`timeRange\` instead of \`customTimeRange\` when no specific dates are given.
127127
Example for cost report:
128128
{
@@ -534,7 +534,7 @@ export async function handleRunQueryRequest(args: any, token: string) {
534534
if (!queryResponse || !queryResponse.result || queryResponse?.error) {
535535
return createErrorResponse(
536536
`Failed to run query. Try one of the following:
537-
1. Use 'list_dimensions' with a filter like 'filter:type:fixed' to get relevant dimensions
537+
1. Use 'list_dimensions' with a filter like 'filter:type:fixed' to get relevant dimensions or 'list_allocations' to get relevant allocations
538538
2. Check the specific error from the API: ${
539539
queryResponse?.error || "Unknown error"
540540
}

src/utils/prompts.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ export const prompts = [
5454
description: "Guidance for using allocations effectively",
5555
text: `Use the list_allocations tool to explore available allocations. Select allocations that best match your reporting needs, and always review the filter fields reference for optimal filtering.`,
5656
},
57+
{
58+
name: "Allow Artifacts",
59+
description: "Allow document artifacts in the response",
60+
text: `Allow only document artifacts in the response.`,
61+
},
5762
];

0 commit comments

Comments
 (0)