Sentor

v1.0.5
io.github.NIKX-Tech/sentor-mcp Checked 3 days ago Published 5 months ago

Score sentiment toward specific entities in text.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_sentiment

Analyze entity-based sentiment in one or more documents. Each item in docs must be: { "doc_id": "unique-id", "doc": "text to analyze", "entities": ["entity1", "entity2"] } Entities are the specific subjects you want sentiment scored for (e.g. a brand, product, feature, or person). The model returns per-document sentiment (negative/neutral/positive) plus per-sentence breakdowns. Args: docs: List of document objects with doc_id, doc, and entities fields. language: Language code — "en" (English) or "nl" (Dutch). Defaults to "en". Returns:…

ParameterTypeDescription
docs *array
languagestring

cluster_documents

Group documents into thematic clusters using BERTopic + HDBSCAN. Requires at least 5 documents. The algorithm automatically discovers the natural number of clusters — you do not need to specify how many. Cluster -1 contains outliers that did not fit any topic. Each item in documents must be: { "doc_id": "unique-id", "text": "document text", "entities": ["optional", "entities"] } After clustering, pass each cluster's top_words and documents to name_topic to get a human-readable label. Args: documents: List of document objects with doc_id, text, an…

ParameterTypeDescription
documents *array
languagestring

name_topic

Generate a short descriptive name for a document cluster using an LLM. Call this after cluster_documents. Pass the cluster's documents and top_words from the clustering response for best results. The model produces a 3-5 word label (e.g. "Shipping Delay Complaints", "Product Quality Praise"). Args: cluster_id: The cluster ID from the clustering response (e.g. 0, 1, 2). documents: The documents list from that cluster's clustering response entry. top_words: The top_words list from that cluster's clustering response entry (recommended). entities:…

ParameterTypeDescription
cluster_id *integer
documents *array
entities
languagestring
top_words

health_check

Check Sentor API availability and model status. Returns the API status, version, and whether the LLM provider (used for topic naming and report generation) is reachable. Returns: Dict with status ("healthy" or "degraded"), version, llm_provider, and llm_status.