- Call
list-contextsto discover what’s available and to obtaincontextIds andinsightIds. - Call
context-summarywith acontextId, a natural-languagequery, and a time range to generate a written summary. - Call
context-insightwith acontextIdand aninsightIdfrom step 1 to generate a markdown insight (chart/table/visualization rendered as markdown).
list-contexts
Lists all contexts accessible by the authenticated user. Each entry describes the context’s data sources and the insight IDs that are compatible with it.Parameters
None.Returns
A JSON array of context objects:| Field | Type | Description |
|---|---|---|
id | string | Context ID. Pass to context-summary and context-insight. |
title | string | Human-readable context title. |
created | string (ISO datetime) | When the context was created. |
updated | string (ISO datetime) | When the context was last updated. |
dataSources | array | Data sources backing the context. Each item has app (e.g. "GitHub"), name, and an optional type. |
compatibleInsights | array | Insights that can be generated against this context. Each item has id and name. Pass id to context-insight. |
Example
context-summary
Generates a written summary from a context using a natural-language query and a time range.Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contextId | string | yes | The ID of the context to summarize, from list-contexts. |
query | string | yes | The question, summarization instruction, or prompt. |
fromDate | string | yes | Start of time range. ISO date (2025-02-25) or datetime (2025-02-25T00:00:00Z). |
toDate | string | no | End of time range, same format as fromDate. Defaults to now. |
timeZone | string | no | IANA timezone (e.g. America/New_York). Defaults to UTC. |
Returns
Markdown text containing the generated summary. While the summary is being generated, the server emits MCPnotifications/progress events (rendered by the client as a running word count) so the UI stays responsive during long generations.
If the request fails, the response is returned with isError: true and the text contains a human-readable error message.
Example
Request:context-insight
Generates a markdown insight (chart, table, or other visualization rendered as markdown) for a context using a given insight ID. OnlyinsightIds returned by list-contexts for that context are valid.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contextId | string | yes | The ID of the context. |
insightId | string | yes | The ID of the insight to generate, from the compatibleInsights array on list-contexts. |
Returns
Markdown text with the rendered insight, prefixed with the insight title as an## H2 heading.
If the context cannot be found or the user lacks access, the response text is "Context not found or access denied". If the insight isn’t compatible with the context, the response explains that and points back to list-contexts.