Skip to main content
Glama

Islam West Africa Collection (IWAC)

Semantic search for publications

semantic_search_publications
Read-onlyIdempotent

Semantic search over publication tables of contents, present for ~40% of issues (none for An-Nasr Vendredi, 130 of 695 Islam Info issues): use search_publications for the rest. Rows show the first 600 characters of each table. 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_publications"
  }
}

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)

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

A4.6/5.0
Behavior5/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 description correctly spends its words on behavior the annotations cannot express: the first-use ~350 MB model download, local execution with no API key, and the 600-character truncation of returned rows. The note that similarity_score only ranks within a single query is a genuinely important caveat that would otherwise cause cross-query score comparisons.

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?

It is dense and front-loaded, with the scope constraint and sibling routing in the first clause. The stacked parentheticals (coverage figures, model details) make it slightly cramped, but every clause carries information an agent needs, so nothing is truly wasted.

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?

With no output schema, the description carries the return-value burden and does so: it discloses that rows contain the first 600 characters of each table and explains how similarity_score may be interpreted. Combined with the coverage caveat and model-download warning, nothing needed to call this correctly is missing.

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 100%, so the schema already documents query, limit, and country, and the baseline applies. The description adds little beyond restating 'query in any language', which the schema's own parameter description already says; limit and country get no extra treatment in the prose.

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?

The description opens with a specific verb and resource, 'Semantic search over publication tables of contents', and immediately distinguishes that scope from the lexical sibling by name. An agent can tell the semantic-vs-lexical distinction without opening either 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?

It states the exact coverage condition (~40% of issues, none for An-Nasr Vendredi, 130 of 695 Islam Info issues) and explicitly routes the agent to search_publications 'for the rest'. This is a when-to-use and when-not-to-use rule with the alternative named and quantified.

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.