Texts of the datasets
find_textsSearch esTS datasets for Spanish literary texts and sonnets by author, genre, period, country, or length; return links for analysis, concordance, and corpus comparison.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset": "<dataset>"
},
"name": "find_texts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| genre | No | Genre of spanish_literature | |
| limit | No | Number of texts in the response | |
| author | No | Author, a part of the name regardless of case and accents | |
| gender | No | Gender of the author in spanish_sonnets | |
| offset | No | How many texts found to skip: the next page | |
| period | No | Period of spanish_sonnets | |
| country | No | Country of the author (of birth in spanish_sonnets), a part of its Spanish name regardless of case and accents: España, México, Argentina | |
| dataset | Yes | Dataset of esTS | |
| max_len | No | Largest length of a text in characters | |
| min_len | No | Smallest length of a text in characters | |
| year_to | No | Latest year of the first publication in spanish_literature | |
| year_from | No | Earliest year of the first publication in spanish_literature |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||