Strategy for managing context windows with Dashboard JSON · Issue #101 · grafana/mcp-grafana (original) (raw)

We eventually want LLMs to understand and possibly modify dashboards. The best way to do this is to access the dashboard JSON. An alternative is to provide a screenshot of the dashboard to a model that can understand images, which doesn't scale and can miss crucial context.

Providing modification tools is fairly trivial, but we need to be careful about context windows. Dashboard JSONs can be very large and users can use up their context limits without knowing. We can use this issue to discuss possible solutions, while adding disclaimers in the code for a start.

Some early thoughts:

I can see possible use-cases for both, and a complete solution would probably involve more features.