Skip to main content
Glama

Suggest Replacements

suggest_replacements
Read-onlyIdempotent

Alternatives for a word, each already inflected to the same case, number, gender and person as the input (konzistentnoj -> dosljednoj), so it can be dropped into the sentence. Candidates come from kontekst's similar-word lists: they can be related or opposite words rather than synonyms, so choose by meaning. When the input form is ambiguous (several readings), other_readings gives each candidate's form per reading; pick the one the sentence needs.

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": {
      "word": "<word>",
      "lang": "<lang>"
    },
    "name": "suggest_replacements"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNosynonym: closest words; simpler: only commoner words; domestic: no loanwords (replaces internationalisms such as konzistentan, implementirati)synonym
langYessl Slovenian, hr Croatian, sr Serbian; auto picks the language whose lexicon knows most words
safeNoLeave out vulgar and derogatory words
wordYesThe word as it stands in the text, inflected
limitNo
sentenceNoThe sentence it is in; each candidate then gets `context_fit`, how strongly it goes with the neighbouring words (higher is better; 0 = no evidence)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds real value beyond that by disclosing data provenance (kontekst's similar-word lists) and a genuine reliability caveat that results may be related or opposite words rather than synonyms. It also reveals output fields (`other_readings`, `context_fit`) whose presence an agent would not otherwise anticipate.

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

Conciseness4/5

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

Three sentences, front-loaded with the core behavior and the inflection guarantee, then provenance, then the ambiguity escape hatch. Dense but every clause carries information; the parenthetical example is worth its bytes.

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

Completeness4/5

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

An output schema exists so return shapes need no explanation, and the description covers the two things an agent could get wrong: assuming synonyms and ignoring ambiguous readings. Minor omissions (empty-result behavior, whether `limit` truncates before or after filtering) keep it from a 5.

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?

With 83% schema coverage the schema already documents `goal`, `lang`, `safe`, and `sentence`, so baseline 3 applies — but the description adds meaning the schema does not, namely that `word` must be passed inflected as it appears in text and what `sentence` actually buys (`context_fit` per candidate, 0 = no evidence).

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?

States a specific verb+resource ('alternatives for a word') and immediately pins down its distinctive property: candidates come back already inflected to match the input. The worked example (`konzistentnoj` -> `dosljednoj`) plus the warning that candidates may be opposites rather than synonyms makes it unmistakable versus `lookup_word` or `get_forms`.

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

Usage Guidelines4/5

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

Gives clear operating context — pick by meaning, and when the input form has several readings consult `other_readings` to select the right one. It stops short of naming sibling alternatives (e.g. 'use lookup_word to understand the word first') or stating when not to use it, so not a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources