Merged
Conversation
Without some guidance, we see some cases of: - Needing a few false starts to find the cost_source table - Reading too much into cost source names to identify a provider
jtroup
approved these changes
Mar 13, 2026
Contributor
jtroup
left a comment
There was a problem hiding this comment.
Thanks @ajkerrigan - I wonder if we want to mention something about cost settings/types too?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
Updates sql_info reference documentation to point to our newer FOCUS-inspired tables, in an attempt to obviate
CLAUDE.md/AGENTS.mdinstructions like this:why
The FOCUS-styled tables are where we're moving in general. Queries against those tables are more performant, don't require dividing by 1000.0 to get "real" numbers, and leave some AWS bias behind. The additional joins make them more complex though, especially for new folks. Leaning on MCP should help with the transition.
testing
Tested these questions:
In 3 different scenarios:
CLAUDE.mdguidanceCLAUDE.mdguidance quoted aboveCLAUDE.mdguidanceI found that either the change or
CLAUDE.mdguidance causes the MCP server to produce "legitimate" cost queries. Without somesql_info.mdadditions for lookup tables likecost_source,account_idandresource_id, it is more likely to look for non-existent tables or infer too much (example: cost source 1 contains the word "azure" so I don't need to bother pulling account details).docs
This is in a way a documentation change, but is also intended to align with updates to this Freshdesk page:
How do I interpret Stacklet's cost data?