allfeatures
v0.1.0Protocol feature showcase: echo, math, resources, images, sampling and elicitation demos.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
echo
Return the supplied message unchanged as a text result.
| Parameter | Type | Description |
|---|---|---|
message * | string | Message to return unchanged. |
add
Add two numbers and return the sum as text.
| Parameter | Type | Description |
|---|---|---|
a * | number | First number to add. |
b * | number | Second number to add. |
longRunningOperation
Run a simulated long operation that waits for a duration split across a number of steps.
| Parameter | Type | Description |
|---|---|---|
duration | number | Total duration of the simulated operation, in seconds. |
steps | number | Number of steps the duration is split across. |
printEnv
Return the server process environment as a JSON text result.
sampleLLM
Ask the connected client to sample its language model with a prompt.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Prompt to send to the connected client's language model. |
maxTokens | number | Maximum number of tokens for the sampled response. |
getTinyImage
Return a tiny 1x1 transparent PNG image together with a short text note.
annotatedMessage
Return a text message carrying annotations that vary with the requested message type, optionally with the tiny image attached.
| Parameter | Type | Description |
|---|---|---|
messageType * | string | Kind of message to return: error, success, or debug. |
includeImage | boolean | When true, attach the tiny image to the message. |
getResourceReference
Return an embedded text resource for the given numeric resource identifier.
| Parameter | Type | Description |
|---|---|---|
resourceId * | number | Numeric identifier of the resource to return. |
getResourceLinks
Return the requested number of resource link items.
| Parameter | Type | Description |
|---|---|---|
count * | number | Number of resource links to return. |
structuredContent
Return fixed sample weather data for a location as structured content plus matching text.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location the sample weather data is returned for. |
listRoots
Ask the connected client to list its filesystem roots.
startElicitation
Ask the connected client to elicit a short response from the user.
zip
Return a small ZIP archive containing one text file, as an embedded blob resource.