maidr

v0.1.5
io.github.xability/maidr-mcp Checked 3 hours ago Published 8 days ago

Accessible maidr charts in ChatGPT and Claude, explored by sound, braille and screen reader

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

show_chart Show an accessible chart

Show data as a chart in the conversation that the reader explores with the keyboard, a screen reader, sonification and braille. Returns the viewId the maidr_* tools take. Only for a chart to show here: not for plotting code, files or web pages, nor where the host shows no MCP Apps, as in a terminal.

maidr_view_svg

The latest SVG of a chart view and its revision: for a host that does not pass the tool result's _meta to it, and for the view to swap in update_chart's chart when its poll did not bring it.

ParameterTypeDescription
viewId *stringThe viewId show_chart returned.

maidr_view_poll

The model's calls waiting for a chart view; waits up to `wait` seconds for one, unless the view is behind the chart's latest revision, when it answers at once with that chart's SVG.

ParameterTypeDescription
viewId *stringThe viewId show_chart returned.
revision
waitnumberSeconds to wait for a call when none is waiting: 20 holds the request open, 0 answers at once, for a host that cuts requests held open.

maidr_view_reply

maidr's answer to one call.

ParameterTypeDescription
callId *string
result *object
viewId *stringThe viewId show_chart returned.

update_chart Change a chart already shown

Replaces the chart in the view show_chart opened with a new chart, in place: new data, another type, a filter. Takes that viewId and a chart as show_chart does, and adds no view to the conversation. A reader in the chart stays in it, on the new chart, and is told it changed; a reader elsewhere keeps their focus. The old chart's layer ids no longer apply, and a move or command still waiting for the reader in it is dropped.

maidr_list_charts List a chart's layers and where the reader is

Runs maidr's maidr_list_charts in the chart: its layers, point counts, whether the reader is in the chart, and, while they are, their position as their screen reader last spoke it, live. Read-only; the reader hears nothing.

ParameterTypeDescription
viewId *stringThe viewId show_chart returned.

maidr_get_layer_data Read a page of a layer's points

Runs maidr's maidr_get_layer_data in the chart. Each point carries the target maidr_navigate takes. Read-only; the reader hears nothing.

ParameterTypeDescription
layerId *stringA layerId from maidr_list_charts.
viewId *stringThe viewId show_chart returned.
chartIdmaidr's chartId; needed only when the view holds several charts.
limit
offset

maidr_navigate Move the reader to a point

Runs maidr's maidr_navigate in the chart: moves the reader's cursor to one point, given as that point's target from maidr_get_layer_data, either row and col or pointIndex. maidr announces it by speech, braille and sound at once when the reader is in the chart. Otherwise it answers applied "on-next-focus" and makes the move when they next enter the chart -- unless you pass focus: true, which moves their keyboard focus into the chart and makes the move there, announced as a keyboard move is. Pass focus: true only when the reader asked to be taken there now, as in "take me to the highest bar" --…

ParameterTypeDescription
layerId *stringA layerId from maidr_list_charts.
viewId *stringThe viewId show_chart returned.
chartIdmaidr's chartId; needed only when the view holds several charts.
col
focusMove the reader's keyboard focus into the chart, if it is not there, so this happens now. Only when they asked for that. Default false.
pointIndex
row

maidr_list_commands List the reader's chart commands

Runs maidr's maidr_list_commands in the chart: the reader's keyboard commands, the ones in maidr's command palette (text, sound, braille, high contrast and monitoring on and off, autoplay, jumps to the highest or lowest value and between layers, and more). Each has a `command` id, a `title` in the reader's language, the `keys` the reader presses for it, and whether maidr_run_command can run it; one that opens a dialog or text field is the reader's to use, so tell them its keys instead. Also returns the reader's current `modes` (text verbose, terse or off; sound, braille, highContrast, monitor…

ParameterTypeDescription
viewId *stringThe viewId show_chart returned.
chartIdmaidr's chartId; needed only when the view holds several charts.

maidr_run_command Run one of the reader's chart commands

Runs maidr's maidr_run_command in the chart: one of the reader's own commands, by its id from maidr_list_commands, as if they had pressed its keys where they are; their screen reader, braille display and sonification report the result. Only run a command the reader asked for. A toggle steps a mode on rather than setting it: toggle_text goes verbose, terse, off, verbose; toggle_sound turns sound off or on, except on a scatter plot, where sound that is on goes combined, separate, off, combined. So check `modes` from maidr_list_commands first, run a toggle only as often as reaching what the reade…

ParameterTypeDescription
command *stringA command id maidr_list_commands lists as runnable.
viewId *stringThe viewId show_chart returned.
chartIdmaidr's chartId; needed only when the view holds several charts.
focusMove the reader's keyboard focus into the chart, if it is not there, so this happens now. Only when they asked for that. Default false.