Embeddings, Translate & Sentiment (FMF Tools)

v1.1.2
io.github.GeminiGeorge22/fmf-ai Checked 4 days ago Published 4 days ago

Embeddings, 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…

ParameterTypeDescription
max_tokensinteger1-1024 (default 512)
messagesarray[{role: system|user|assistant, content}]
modelstring
promptstring
reasoningbooleaninclude the model reasoning text if it produces one (default false)
systemstring
temperaturenumber0-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.

ParameterTypeDescription
target *stringtarget language code or name, e.g. fr, zh-CN
sourcestringsource language (auto-detected if omitted; ISO 639-1 or BCP-47, e.g. zh-CN)
textstringtext, up to 5,000 characters
textsarrayor 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.

ParameterTypeDescription
normalizeboolean
textstring
textsarrayup 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.

ParameterTypeDescription
documents *arrayup to 100 documents, 4,000 chars each
query *stringquery Also accepted as: q, search, term, text, keywords, topic.
top_ninteger

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.

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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.

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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…

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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.

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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.

ParameterTypeDescription
candidates *arrayup to 32 texts (or a JSON array string / comma list), 2,000 chars each Also accepted as: texts, documents.
query *stringquery Also accepted as: q, search, term, text, keywords, topic.
top_ninteger

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.

ParameterTypeDescription
labels *array2-20 labels (array, JSON array string or comma list)
text *stringtext to classify, up to 4,000 chars Also accepted as: input, content, body, prompt, message.
multi_labelboolean

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.

ParameterTypeDescription
textstringtext Also accepted as: input, content, body, prompt, message.
textsarrayup 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.

ParameterTypeDescription
text *stringup to 16,000 characters Also accepted as: input, content, body, prompt, message.
langstringISO 639-1 or BCP-47 (e.g. zh, zh-CN). Default: same language as the text. Also accepted via Accept-Language.
max_wordsinteger20-300 (default 80)
stylestring

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…

ParameterTypeDescription
textstringtext Also accepted as: input, content, body, prompt, message.
textsarrayup to 100 texts (or a JSON array string), 5,000 chars each
topintegercandidates 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.

ParameterTypeDescription
text *stringup to 50,000 characters Also accepted as: input, content, body, prompt, message.
topinteger1-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…

ParameterTypeDescription
text *stringup to 100,000 characters Also accepted as: input, content, body, prompt, message.
maskstringreplacement style: type (default, e.g. [EMAIL]) or char
redactboolean

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.

ParameterTypeDescription
normalizeboolean
textstring
textsarrayup 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…

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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…

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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…

ParameterTypeDescription
normalizeboolean
textstringone text (or a JSON array string of texts) Also accepted as: input, content, body, prompt, message.
textsarrayup 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.

ParameterTypeDescription
textstringtext Also accepted as: input, content, body, prompt, message.
textsarrayup 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…

ParameterTypeDescription
text *stringup to 50,000 characters Also accepted as: input, content, body, prompt, message.
topinteger1-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…

ParameterTypeDescription
text *stringup to 100,000 characters Also accepted as: input, content, body, prompt, message.
maskstringreplacement style: type (default, e.g. [EMAIL]) or char
redactboolean