Change the server’s lists (list_changed)
change_listsAdd, remove, or reset dynamic tools, prompts, and resources, then send list-changed notifications to verify client lists update automatically.
Instructions
Add or remove a dynamic tool (dynamic_tool_N), prompt (dynamic_prompt_N) and resource (test://dynamic/N), at most 3 each, and send the matching notifications/*/list_changed. Then check whether the client’s tool, prompt and resource lists update by themselves. The lists are shared by all clients of this server; action=reset removes every dynamic item.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "change_lists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Which list to change | all |
| action | No | add the next item, remove the newest one, or reset everything | add |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| atLimit | Yes | ||
| changed | Yes | ||
| dynamic | Yes |