predicts_next
Pack: datamuse · Endpoint: https://gateway.pipeworx.io/datamuse/mcp
Autocomplete prediction. Pass the word that comes BEFORE as after.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
after | string | yes | Prefix word (Datamuse param: lc) |
before | string | no | Word that should come right after the suggestion (rc) |
max | number | no |
Example call
curl -X POST https://gateway.pipeworx.io/datamuse/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"predicts_next","arguments":{}}}'
Response shape
Full JSON Schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"word": {
"type": "string",
"description": "The word"
},
"score": {
"type": "number",
"description": "Relevance score"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Word tags (n, v, adj, etc.)"
},
"defs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Word definitions"
}
},
"required": [
"word"
]
},
"description": "Array of predicted next words"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"datamuse": {
"url": "https://gateway.pipeworx.io/datamuse/mcp"
}
}
}
See Getting Started for client-specific install steps.