Skip to main content
Glama

Islam West Africa Collection (IWAC)

Semantic search for articles

semantic_search_articles
Read-onlyIdempotent

Semantic search over article title + full text, including articles whose OCR is not public. Query in any language. Runs the corpus model, EmbeddingGemma 2, locally with no API key (first use downloads ~350 MB). similarity_score only ranks within one query.

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": {
      "query": "<query>"
    },
    "name": "semantic_search_articles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 10, max 50
queryYesNatural-language query, any language
countryNoExact country name: Benin | Burkina Faso | Côte d'Ivoire | Niger | Togo (accents optional)
date_toNoYYYY-MM-DD (or YYYY)
date_fromNoYYYY-MM-DD (or YYYY)
newspaperNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / maxLength
      Previous value: -8192New value: +2000
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, yet the description adds real operational context the annotations cannot: a ~350 MB first-use model download, local execution with no API key, and the crucial caveat that similarity_score is only meaningful within a single query. It omits anything about result ordering defaults or how filters interact with the vector search.

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?

Four short sentences, front-loaded with capability and coverage before the operational notes. Minor waste in the language phrase that duplicates the schema's query description, but nothing else is padded.

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?

For a six-parameter, read-only search tool with no output schema, the definition covers the things an agent cannot infer: coverage of OCR-unavailable articles, local model behavior, and the non-comparability of similarity_score across queries. The remaining gap is how filtering parameters combine with semantic retrieval, which matters for correct invocation.

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

Parameters3/5

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

Schema coverage is 83%, so the schema already documents query, limit, country, and date formats; the description's "query in any language" largely restates the query field. It adds no guidance on how country, newspaper, or date filters interact with semantic ranking, and newspaper remains undocumented in both places. Baseline 3 is warranted.

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

Purpose4/5

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

States a specific verb and resource ("semantic search over article title + full text") and adds a meaningful scope detail: coverage of articles whose OCR is not public. The word "semantic" implicitly contrasts with the lexical sibling search_articles, but no sibling is named explicitly, so differentiation is left partly to inference.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: the definition makes clear this is the semantic (not keyword) retrieval path and that any language works, but it never says when to prefer it over search_articles, search, or explore_corpus. No exclusions or prerequisites beyond the first-download note.

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.