autocomplete

Pack: words · Endpoint: https://gateway.pipeworx.io/words/mcp

Return word completions for a given prefix string using the Datamuse suggestion endpoint. Takes a prefix (e.g., “hel”) and returns matching words ranked by score (e.g., “hello”, “help”, “helpless”).

Parameters

NameTypeRequiredDescription
prefixstringyesThe prefix to autocomplete (e.g. “hel” returns “hello”, “help”, etc.)
limitnumbernoMaximum number of results to return (default: 10)

Example call

Arguments

{
  "prefix": "hel"
}

curl

curl -X POST https://gateway.pipeworx.io/words/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"autocomplete","arguments":{"prefix":"hel"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('autocomplete', {
  "prefix": "hel"
});

More examples

{
  "prefix": "inter",
  "limit": 12
}

Response shape

Always returns: prefix, results

FieldTypeDescription
prefixstringThe prefix that was autocompleted
resultsarrayList of word completions ranked by score
Full JSON Schema
{
  "type": "object",
  "properties": {
    "prefix": {
      "type": "string",
      "description": "The prefix that was autocompleted"
    },
    "results": {
      "type": "array",
      "description": "List of word completions ranked by score",
      "items": {
        "type": "object",
        "properties": {
          "word": {
            "type": "string",
            "description": "The completed word"
          },
          "score": {
            "type": "number",
            "description": "Completion relevance score"
          }
        },
        "required": [
          "word",
          "score"
        ]
      }
    }
  },
  "required": [
    "prefix",
    "results"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "words": {
      "url": "https://gateway.pipeworx.io/words/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 21, 2026