allfeatures

v0.1.0
io.github.CloudCorpRecords/allfeatures Checked 3 days ago Published 1 month ago

Protocol 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.

ParameterTypeDescription
message *stringMessage to return unchanged.

add

Add two numbers and return the sum as text.

ParameterTypeDescription
a *numberFirst number to add.
b *numberSecond number to add.

longRunningOperation

Run a simulated long operation that waits for a duration split across a number of steps.

ParameterTypeDescription
durationnumberTotal duration of the simulated operation, in seconds.
stepsnumberNumber 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.

ParameterTypeDescription
prompt *stringPrompt to send to the connected client's language model.
maxTokensnumberMaximum 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.

ParameterTypeDescription
messageType *stringKind of message to return: error, success, or debug.
includeImagebooleanWhen true, attach the tiny image to the message.

getResourceReference

Return an embedded text resource for the given numeric resource identifier.

ParameterTypeDescription
resourceId *numberNumeric identifier of the resource to return.

structuredContent

Return fixed sample weather data for a location as structured content plus matching text.

ParameterTypeDescription
location *stringLocation 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.