Embeddings, Translate & Sentiment (FMF Tools)
v1.1.2Embeddings, translate and sentiment.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chat
Chat completion (small open models) ($0.002 per call, paid via MPP on Tempo). OpenAI-style chat with open-weight models on Cloudflare Workers AI: gemma-4-26b-a4b (default), granite-4-micro (fastest), gpt-oss-20b (all Apache-2.0). Send messages[] or a prompt; up to ~6k input tokens and 1,024 output tokens per call, flat price. Returns the reply, token usage and finish reason. Daily capacity is limited; when it is reached you get 402 and are not charged. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/chat. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorizat…
| Parameter | Type | Description |
|---|---|---|
max_tokens | integer | 1-1024 (default 512) |
messages | array | [{role: system|user|assistant, content}] |
model | string | |
prompt | string | |
reasoning | boolean | include the model reasoning text if it produces one (default false) |
system | string | |
temperature | number | 0-2 (default 0.6) |
translate
Translate text (100 languages) ($0.003 per call, paid via MPP on Tempo). Machine translation between 100 languages (Meta M2M-100 1.2B, MIT licence): one text up to 5,000 characters or up to 20 texts per call, source and target as ISO codes or names. Long text is split by sentence and reassembled. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/translate. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
target * | string | target language code or name, e.g. fr, zh-CN |
source | string | source language (auto-detected if omitted; ISO 639-1 or BCP-47, e.g. zh-CN) |
text | string | text, up to 5,000 characters |
texts | array | or up to 20 texts (5,000 chars total) |
embeddings
Text embeddings (multilingual) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings for up to 100 texts per call (BAAI bge-m3, 1024 dimensions, 100+ languages, MIT licence), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | |
texts | array | up to 100 texts, 8,000 chars each Also accepted as: input, inputs, documents, docs, sentences. |
rerank
Rerank documents for a query ($0.001 per call, paid via MPP on Tempo). Score and sort up to 100 documents by relevance to a query with a cross-encoder (BAAI bge-reranker-base, MIT licence). Returns index, relevance score (0-1) and text, best first; top_n to truncate. Ideal after search or embeddings retrieval. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/rerank. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
documents * | array | up to 100 documents, 4,000 chars each |
query * | string | query Also accepted as: q, search, term, text, keywords, topic. |
top_n | integer |
embeddings_bge_small
Text embeddings: bge-small-en-v1.5 (384 dimensions) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings/bge-small. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
embeddings_bge_base
Text embeddings: bge-base-en-v1.5 (768 dimensions) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings/bge-base. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
embeddings_bge_large
Text embeddings: bge-large-en-v1.5 (1024 dimensions) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with bge-large-en-v1.5 (1024 dimensions, MIT) on Cloudflare Workers AI, English, highest quality of the BGE English models. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings/bge-large. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx…
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
embeddings_qwen3
Text embeddings: qwen3-embedding-0.6b (1024 dimensions) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with qwen3-embedding-0.6b (1024 dimensions, Apache-2.0) on Cloudflare Workers AI, 100+ languages. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/embeddings/qwen3. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
similarity
Semantic similarity: score texts against a query ($0.001 per call, paid via MPP on Tempo). Cosine similarity between a query and up to 32 candidate texts using BAAI bge-m3 multilingual embeddings (MIT). Returns each candidate with a similarity score (-1..1), best first. One call instead of embedding + maths. Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/similarity. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
candidates * | array | up to 32 texts (or a JSON array string / comma list), 2,000 chars each Also accepted as: texts, documents. |
query * | string | query Also accepted as: q, search, term, text, keywords, topic. |
top_n | integer |
classify
Zero-shot text classification (your labels) ($0.001 per call, paid via MPP on Tempo). Classify a text into your own labels with no training, by embedding similarity (BAAI bge-m3, multilingual, MIT). Returns labels ranked with a softmax probability and raw cosine score. Fast and cheap; for fine-grained or adversarial tasks use the chat route. Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/classify. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
labels * | array | 2-20 labels (array, JSON array string or comma list) |
text * | string | text to classify, up to 4,000 chars Also accepted as: input, content, body, prompt, message. |
multi_label | boolean |
sentiment
Sentiment analysis (positive / negative) ($0.001 per call, paid via MPP on Tempo). Binary sentiment (POSITIVE / NEGATIVE with confidence) for up to 25 texts per call, using DistilBERT SST-2 (Apache-2.0) on Cloudflare Workers AI. English works best. Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/sentiment. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
text | string | text Also accepted as: input, content, body, prompt, message. |
texts | array | up to 25 texts (or a JSON array string), 2,000 chars each |
summarize
Summarize text (bullet or paragraph) ($0.001 per call, paid via MPP on Tempo). Abstractive summary of up to 16,000 characters as a paragraph, bullets or a one-line TL;DR, with IBM Granite 4 Micro (Apache-2.0) on Cloudflare Workers AI. Flat price. Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/summarize. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
text * | string | up to 16,000 characters Also accepted as: input, content, body, prompt, message. |
lang | string | ISO 639-1 or BCP-47 (e.g. zh, zh-CN). Default: same language as the text. Also accepted via Accept-Language. |
max_words | integer | 20-300 (default 80) |
style | string |
language_detect
Language detection (80+ languages) ($0.001 per call, paid via MPP on Tempo). Detect the language of up to 100 texts per call (franc trigram model, 80+ languages, MIT). Returns the ISO 639-1 code where one exists, the ISO 639-3 code, the score margin over the runner-up and ranked candidates (relative scores, best = 1). Short texts (<20 chars) are flagged as low confidence. No model call, instant. Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/language/detect. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use…
| Parameter | Type | Description |
|---|---|---|
text | string | text Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts (or a JSON array string), 5,000 chars each |
top | integer | candidates per text, 1-5 (default 3) |
keywords
Keyword and key-phrase extraction ($0.001 per call, paid via MPP on Tempo). Extract ranked key phrases (RAKE-style co-occurrence scoring with stopword splitting) from up to 50,000 characters. Returns phrase, score and count. Deterministic, instant, no model call. English stopwords; works on most Latin-script text. Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/keywords. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
text * | string | up to 50,000 characters Also accepted as: input, content, body, prompt, message. |
top | integer | 1-50 (default 10) |
pii_detect
Detect and redact PII and secrets in text ($0.001 per call, paid via MPP on Tempo). Find emails, phone numbers, credit card numbers (Luhn-checked), IBANs, US SSNs, IPv4/IPv6, Ethereum addresses, API keys (Stripe, AWS, GitHub, Slack) and token-bearing URLs in text, with offsets, and return a redacted copy. Pattern based, deterministic, nothing stored or logged (only counts). Free sample: add ?sample=1. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pii/detect. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route…
| Parameter | Type | Description |
|---|---|---|
text * | string | up to 100,000 characters Also accepted as: input, content, body, prompt, message. |
mask | string | replacement style: type (default, e.g. [EMAIL]) or char |
redact | boolean |
pro_embeddings
Text embeddings (multilingual) (listed tier) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings for up to 100 texts per call (BAAI bge-m3, 1024 dimensions, 100+ languages, MIT licence), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/embeddings. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | |
texts | array | up to 100 texts, 8,000 chars each Also accepted as: input, inputs, documents, docs, sentences. |
pro_embeddings_bge_small
Text embeddings: bge-small-en-v1.5 (384 dimensions) (listed tier) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-small ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/embeddings/bge-small. This MCP wrapper does not se…
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
pro_embeddings_bge_base
Text embeddings: bge-base-en-v1.5 (768 dimensions) (listed tier) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-base ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/embeddings/bge-base. This MCP wrapper does not settle payment…
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
pro_embeddings_bge_large
Text embeddings: bge-large-en-v1.5 (1024 dimensions) (listed tier) ($0.001 per call, paid via MPP on Tempo). Dense vector embeddings with bge-large-en-v1.5 (1024 dimensions, MIT) on Cloudflare Workers AI, English, highest quality of the BGE English models. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Listed tier: same output as /mpp/embeddings/bge-large ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/embeddings/bge…
| Parameter | Type | Description |
|---|---|---|
normalize | boolean | |
text | string | one text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message. |
texts | array | up to 100 texts, 2,000 chars each, 20,000 chars total |
pro_sentiment
Sentiment analysis (positive / negative) (listed tier) ($0.001 per call, paid via MPP on Tempo). Binary sentiment (POSITIVE / NEGATIVE with confidence) for up to 25 texts per call, using DistilBERT SST-2 (Apache-2.0) on Cloudflare Workers AI. English works best. Listed tier: same output as /mpp/sentiment ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/sentiment. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
| Parameter | Type | Description |
|---|---|---|
text | string | text Also accepted as: input, content, body, prompt, message. |
texts | array | up to 25 texts (or a JSON array string), 2,000 chars each |
pro_keywords
Keyword and key-phrase extraction (listed tier) ($0.001 per call, paid via MPP on Tempo). Extract ranked key phrases (RAKE-style co-occurrence scoring with stopword splitting) from up to 50,000 characters. Returns phrase, score and count. Deterministic, instant, no model call. English stopwords; works on most Latin-script text. Listed tier: same output as /mpp/keywords ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/keywords. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization…
| Parameter | Type | Description |
|---|---|---|
text * | string | up to 50,000 characters Also accepted as: input, content, body, prompt, message. |
top | integer | 1-50 (default 10) |
pro_pii_detect
Detect and redact PII and secrets in text (listed tier) ($0.001 per call, paid via MPP on Tempo). Find emails, phone numbers, credit card numbers (Luhn-checked), IBANs, US SSNs, IPv4/IPv6, Ethereum addresses, API keys (Stripe, AWS, GitHub, Slack) and token-bearing URLs in text, with offsets, and return a redacted copy. Pattern based, deterministic, nothing stored or logged (only counts). Listed tier: same output as /mpp/pii/detect ($0.001); $0.001 per call, x402 settled via the Coinbase CDP facilitator. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/pro/pii/detect. This MCP wrapper does not…
| Parameter | Type | Description |
|---|---|---|
text * | string | up to 100,000 characters Also accepted as: input, content, body, prompt, message. |
mask | string | replacement style: type (default, e.g. [EMAIL]) or char |
redact | boolean |