esTS-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Statistics of Spanish texts computed by the esTS library. The tools measure a text so that it is not judged by eye: every value comes with a description of what it computes, and the warnings of the result say when the values make no sense for the text.
Which tasks to call them for:
for which age and school stage a text is, how hard it is - analyze_text with the groups basic and readability (and syntax);
the administrative style and plain language - analyze_text with the groups style and syntax;
meter, metrical syllables, rhyme, line endings, strophes and sound patterns of a poem - analyze_text with the groups verse and phon;
morphology, lexical diversity, cohesion, word frequency - analyze_text with the groups morph, diversity, cohesion, lexical;
SEO metrics of a text for a site (nausea, water, spam) - analyze_text with the group style;
readability formulas of other languages for comparison with other tools - analyze_text with the group unadapted_readability;
keywords of a text against the language or another text - keyness;
how a word is used, quotations with context - kwic;
set phrases and the company of a word - collocations; how evenly a word is spread over a text - dispersion;
how two texts or corpora differ in style, authorship, a text by a person or by a model - compare_texts;
show a distribution as a picture (Zipf's law, sentence lengths, places of words, the rhythm of a verse) - visualize;
a reference text or corpus (the sonnets of a poet, the prose of a classic, the drama of an epoch) - find_texts, then its links in path, reference_path, a_paths or b_paths.
Pass a text from a file through path instead of sending it whole. The scales of the readability metrics are in the resource ests://scales/readability, whether the dictionaries are downloaded - in ests://data, the datasets of esTS - in ests://datasets.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_textA | Measure a Spanish text with the statistics of the esTS library. Use it to get exact numbers about a text instead of judging it by eye. Only the requested groups are computed. Pass a text from a file through path instead of sending it whole: this is faster, and the statistics are computed on the original text. Statistic groups:
The result has a key for every requested group: a statistic with its value "value", its share "share" or its interpretation by a scale "interpretation", if it has them, and its description "description" - what it computes; the markers of the administrative style of the group style also have the number of occurrences "count" and the words and phrases found "found". The value null means the statistic is undefined on this text. The key "warnings" lists the reasons why the values may be unstable or make no sense for this text: a short text, a text not in Spanish, a dictionary not downloaded (then the warning names the command that downloads it). Read the warnings before drawing conclusions. With per_text the response is "per_text" instead of the groups: "rows" - a row for every text (the link "path", the title "title", the values by the keys «group.key»), "summary" - a summary over the corpus: for numbers the number of texts "n", the mean "mean", the smallest "min" and the largest "max", for strings (the meter) "n" and the frequencies of the values "counts", for dictionaries (parts of speech, rhyme schemes) "n" and the summed frequencies "totals", up to 20 most frequent; a text where the group does not give the statistic has null. The rows are limited to 40 thousand characters, and then a warning says how many are shown, while the summary covers all the texts. The warnings of the texts come once each with the number of texts that have them, and the numbers that differ in them as a range. |
| kwicA | Find every occurrence of a word or a phrase in a text with its context (KWIC concordance). Use it to see how a word is used in the text and to quote it exactly. Words are compared ignoring case; accents are part of the word (solo and sólo are two words); with by_lemma - by the lemmas of esMorph in the context of the sentence (a word of the query by any lemma of its analyses: vino finds both the wine and the forms of venir). A phrase does not run across the end of a sentence. The texts of a query link ests://datasets/...? are searched one by one: the context does not run into the next text. The result has "n_matches" - the number of occurrences, and "matches" - the lines in the order of the text: the left context "left", the occurrence "keyword" as written in the text and the right context "right"; a line of a text of a dataset also has the link "path" and the title "title" of that text. The lines are limited by the parameter limit and by about 40 thousand characters of the response in all. The key "warnings" lists the warnings: a text not in Spanish, not all occurrences shown. |
| collocationsA | Find the collocations of a text - pairs of words that occur together more often than by chance. Use it for set phrases, terminology and the company of a word (the parameter node; side - only the words before or after it). A pair is ordered: the right word stands at most window words after the left one. The lemmas are those of esMorph in the context of the sentence, as kwic finds them with by_lemma. The texts of a query link ests://datasets/...? go one after another, and at the junction of two texts the pairs are made of the words of both: the company within one text is more exact by a link to it. The result has "n_words" - the number of words of the text, "measure" - the measure and how to read it, and "collocations" - the pairs by decreasing measure: the left word "left", the right word "right", their frequencies "freq_left" and "freq_right", the frequency of the pair "freq_pair" and the value of the measure "score". freq_pair is the number of pairs of positions where the right word stands in the window after the left one: a word repeated in the window gives several pairs, so freq_pair can exceed the frequency of a word, and such a pair is a repetition, not a set phrase. The key "warnings" lists the warnings: a text not in Spanish, the word node is not in the text, no pairs of such frequency. |
| dispersionA | Measure how evenly words are spread over a text (Gries's dispersion). Use it to tell a word that runs through the whole text from a word gathered in one place: frequency does not tell them apart. The text is divided into the given number of parts of about equal size, and the texts of a query link ests://datasets/...? are the parts themselves, so the measure shows whether a word runs through the texts of the corpus. The result has "n_words" - the number of words of the text, "n_parts" - the number of parts, and "words" - the words in the order of the query or by decreasing frequency, with the frequency "freq" and the measures of dispersion:
|
| keynessA | Find the keywords of a text - words significantly more (or less) frequent in it than in a reference. Use it to see how the vocabulary of a text differs from the language at large (the default reference is the frequency dictionary, downloaded by the command ests-mcp download) or from another text (reference or reference_path). Against the dictionary the words of the text are read in the context of their sentences and compared by the lemmas of the dictionary (a verb takes the first of its verb analyses: fue - ser, also in fue a casa), a proper noun by the lemma of its form taken alone, under which the dictionary counts the proper nouns as well, so a name that is also a form of another word appears as that word's lemma (Tomás - tomar, Batiste - batir); numbers and words with a hyphen, a period or letters outside Spanish are left out, and a word outside the dictionary gets its smallest frequency, so names, terms and typos get into the keywords. Against a text the words are compared in lower case, the lemmas by esMorph in the context of the sentence; with n from 2 - phrases of n consecutive words, which do not run across the end of a sentence nor the boundary of the texts of a query link ests://datasets/...?. The result has "n_words" - the number of words of the text compared with the reference, "reference" - the reference, "measure" - the measure of the sorting and how to read it, and "keywords" - the words by decreasing measure: the frequency in the text "freq_target" and in the reference "freq_reference", the same per million words "ipm_target" and "ipm_reference", the log-likelihood "g2" (the significance, negative - the word is more frequent in the reference) with its p-value "p_value", Log Ratio "log_ratio" (the effect size; with a zero frequency in the reference - an estimate with the correction 0.5, can be below 0) and the value of the measure "score". p_value is not corrected for the number of words tested: p < 0.0001 (g2 from 15.13) is more reliable. The key "warnings" lists the warnings: a text not in Spanish, no keywords. |
| compare_textsA | Compare two corpora of texts by the features of style and find where they differ most. Use it for authorship attribution and for comparing genres, translations, texts by a person and by a model. The texts are cut in order into windows of exactly window words (whole_texts - the whole texts), 210 features of esTS are computed for every window, and the distributions of a feature in the corpora A and B are compared. The rest of a text shorter than a window and a text shorter than a window are left out: the response warns about such texts and about losing more than 10% of the words of a corpus on the rests. The comparison needs two windows at least in each corpus. The syntactic parse takes most of the time: two corpora of 250 thousand characters each are compared in about 6 seconds, of 500 thousand - in about 12. Pass the texts from files through a_paths and b_paths. Features by prefix: basic_ - shares of long, complex, simple, mono- and polysyllabic words, of letters, spaces and marks, letters and syllables per word; readability_ - the readability formulas and the consensus grade; diversity_ - measures of lexical diversity; morph_ - shares of the parts of speech and of the features of one value among all the words (morph_pos_NOUN, morph_polarity_Neg) and of the values of the other features among the words that carry them (morph_mood_Sub, morph_tense_Imp), shares of the infinitive, gerund, participle, clitics, ser, adverbs in -mente and diminutives (morph_p_enclitics); sents_ - the mean length of a sentence in words, its standard deviation, coefficient of variation and the autocorrelation of adjacent lengths; punct_ - the marks by type per 1000 words and the share of the inverted ¿ and ¡ among the question and exclamation marks (punct_inverted_share); cohesion_ - the cohesion statistics: repetitions between sentences, pronouns, givenness, repetition of tense and mood, connectors per 1000 words; syntax_ - the statistics of the group syntax: dependency lengths, tree shape, clauses and the indices of L2SCA, chains, participial and gerund clauses, the passive and se, word order, similarity of adjacent sentences. The result has "window" - the size of a window (null - the whole texts), "n_windows" and "n_texts" - the number of windows and texts in A and B, and "features" - the features by decreasing absolute Cliff's delta, with equal delta by the relative difference of the medians: the means over the windows "mean_a" and "mean_b", the difference of the medians A - B "median_diff" with its 95% bootstrap interval "ci_low" - "ci_high", Cliff's delta "cliff_delta" (from -1 to 1: the share of the pairs of windows where A is greater minus the share where it is smaller; in absolute value from 0.147 - a small, from 0.33 - a medium, from 0.474 - a large effect, Romano et al. 2006) and the p-value of the Mann-Whitney U test with Holm's correction for the number of features "p_holm". The windows of one text are not independent: p_holm takes them as independent and is too small when a corpus has few texts, while the bootstrap interval takes whole texts and is undefined with one text in a corpus. The key "warnings" lists the warnings: a corpus not in Spanish, texts of the corpora of different length with whole_texts, texts or their rests left out of the comparison, one text in a corpus, no significant difference. |
| visualizeA | Draw a chart of a text with the visualizers of esTS: a PNG image and a short summary in numbers. Use it when a distribution is clearer shown than retold: the user sees the image, and the summary gives the numbers for conclusions. The charts chart:
The labels of the charts are in English. The result is the image and the text of the summary; the last lines of the summary are warnings if the text is not in Spanish. |
| find_textsA | Find texts in the datasets of esTS and get links to them for the other tools. Use it when a reference text or corpus is needed: the sonnets of a poet, the prose of a classic, the drama of an epoch. The texts do not come in the response: pass the link "path" (ests://datasets//) to path, reference_path, a_paths or b_paths of any tool instead of a path to a file, or the link "query" to take all the texts found: analyze_text and collocations take them as one text (analyze_text with per_text - a table of the statistics of every text), kwic, dispersion and keyness tell the texts apart, in a_paths and b_paths of compare_texts they are separate texts of the corpus. A text longer than the server limit is taken by parts: "path" with ?part=, k from 1 to "parts". Datasets: spanish_literature - 150 works by 33 authors of Spain, Latin America and the Philippines from the Golden Age to the 1920s (a book of poems is one text); spanish_sonnets - 4259 sonnets of DISCO from the 15th to the 20th century, the stanzas separated by blank lines. Each dataset has its own filters; a filter the dataset does not have gives an error with the list of those it has. A dataset needs downloading by the command ests-mcp download ; the resource ests://datasets shows what is downloaded. The result has "dataset" - the dataset, "n_found" - how many texts were found, "query" - the link to all the texts found, "query_chars" - their length together in characters, "max_text_length" - the server limit for a text, and "texts" - limit texts after the first offset: the link "path", the fields of the record of the dataset (author, title, genre, country, years; the period, gender and years of life of the author of a sonnet), the length "n_chars" in characters and, for a text longer than the limit, the number of parts "parts". The key "warnings" lists the hints if nothing was found (the authors with a word of the query) and how many texts are left beyond the page. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| readability_review | Assess for which reader a text is written and suggest how to simplify it. |
| officialese_review | Find the administrative style in a text and suggest plain replacements. |
| verse_review | Review a poem: meter, rhyme, line endings and sound patterns. |
| compare_review | Compare two texts by style and vocabulary. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| readability_scales | School stages and reader ages of the grade formulas, the bands of the reading ease of both presets, Legibilidad µ and LIX, the grades of RIX |
| data_status | The data directory and the state of the dictionaries: what is downloaded and how to download it |
| datasets_status | Datasets of esTS: what is in them, the filters of find_texts and whether they are downloaded |
TDQS
Scored across 8 tools
Each tool targets a clearly different analysis: whole-text statistics (analyze_text), concordance (kwic), word pairs (collocations), spread (dispersion), keyword contrast (keyness), corpus comparison (compare_texts), charts (visualize) and dataset discovery (find_texts). There is some overlap, since dispersion and parts of diversity are also computable through analyze_text and visualized via visualize's dispersion/zipf charts, and compare_texts recomputes 210 features that analyze_text exposes individually, but descriptions make the intended division of labor readable.
The set mixes verb_noun names (analyze_text, compare_texts, find_texts) with bare noun names (collocations, dispersion, keyness) and a lone acronym (kwic), plus an imperative verb without an object (visualize). The names are readable and English-consistent in vocabulary, but there is no single predictable pattern an agent can rely on.
Eight tools is well scoped for a Spanish text-statistics server: one entry point per analysis family plus dataset discovery and comparison, with no obviously redundant members. Nothing feels thin or bloated.
The surface covers the stylometric lifecycle well: find texts, analyze them, query words/phrases, compare corpora, and render charts, with links (ests://...) tied into every consumer tool. Minor gaps remain: dataset download is only a shell command referenced in warnings rather than a tool, and there is no tool to fetch or display a text's raw content, so an agent must rely on outside file access.