Skip to main content
Glama

Texts of the datasets

find_texts
Read-onlyIdempotent

Search 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

NameRequiredDescriptionDefault
genreNoGenre of spanish_literature
limitNoNumber of texts in the response
authorNoAuthor, a part of the name regardless of case and accents
genderNoGender of the author in spanish_sonnets
offsetNoHow many texts found to skip: the next page
periodNoPeriod of spanish_sonnets
countryNoCountry of the author (of birth in spanish_sonnets), a part of its Spanish name regardless of case and accents: España, México, Argentina
datasetYesDataset of esTS
max_lenNoLargest length of a text in characters
min_lenNoSmallest length of a text in characters
year_toNoLatest year of the first publication in spanish_literature
year_fromNoEarliest year of the first publication in spanish_literature

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly/idempotent/closed-world; the description adds far more: the texts are NOT returned (only links), the dataset must be downloaded first via `ests-mcp download <dataset>`, oversized texts are split into ?part=<k> of "parts", and unknown filters produce an error listing valid ones. These are real operational constraints an agent cannot infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and nearly every sentence carries information, but the final paragraph enumerates response keys (dataset, n_found, query, query_chars, max_text_length, texts, warnings) even though an output schema exists, so that portion duplicates structured data. Sentences are also long run-ons that pack multiple clauses, making the routing rules harder to scan than they need to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with two datasets, a download prerequisite, pagination, and part-splitting, the description covers everything an agent needs: what the datasets contain, which filters apply where, the download requirement and the resource that reports it, the size limit and part mechanism, and the warnings behavior when nothing is found.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema cannot: filters are dataset-specific, and passing a filter a dataset lacks yields an error enumerating the supported ones. It also enumerates the datasets and their contents, which frames the dataset enum meaningfully. It does not elaborate on limit/offset beyond "limit texts after the first offset," but the schema already covers those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Find texts in the datasets of esTS") and immediately states the tool's role: producing links that other tools consume. It names the sibling tools that consume those links (analyze_text, collocations, kwic, dispersion, keyness, compare_texts) and how each treats them, so an agent can distinguish discovery from analysis without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it when a reference text or corpus is needed" gives an explicit trigger, followed by concrete examples (sonnets of a poet, prose of a classic, drama of an epoch). It also routes downstream: which tools treat the result as one text vs. separate texts, and how a_paths/b_paths in compare_texts differ from a single text. Exclusions and alternatives are both present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.