Skip to main content
Glama
This connector has been deprecated

Search chapter headings

shamela_search_titles
Read-onlyIdempotent

بحث في عناوين الفصول

Search Shamela's title/ Lucene index for chapter and section titles. Same query/scope/options/pagination shape as shamela_search_pages but matches title text rather than page bodies. After finding a matching title, use shamela_get_book_section(book_id, title_id) to read the full section. Examples: shamela_search_titles({query:'باب الصيام'}), shamela_search_titles({query:'تعريف', scope:{book_ids:[]}}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-100, default 20).
queryYesArabic search phrase. Matches against chapter / section title text.
scopeNoSame scope filter as shamela_search_pages (book_ids, author_ids, category_ids, period_*, downloaded_only).
offsetNoNumber of results to skip for pagination. Use with `limit` to page through large result sets. The response includes `has_more` and `next_offset` to drive paging.
optionsNomorphology / wildcards / preserve_* (preserve_* deferred to v1.1). search_in is ignored — titles are a single field.
response_formatNoOutput format for the human-readable text. 'markdown' (default) is best for direct display; 'json' returns the same data as a single JSON code block; 'none' skips the rendered text entirely and returns a one-line pointer, leaving `structuredContent` as the whole answer. The structured data is returned in `structuredContent` regardless of this setting, so a caller that parses it should pass 'none' — the character budget is measured over BOTH channels, and the unread copy is otherwise spending most of it. Requires the 'response_format.none' capability (see shamela_brief).markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is settled. The description adds real behavioral value beyond that: it names the Lucene index being queried, notes the shared parameter shape with shamela_search_pages, and specifies the follow-up read workflow. It does not describe result format or pagination behavior, which is the main remaining gap.

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?

Front-loaded with the core purpose, then sibling differentiation, then routing, then two concrete invocation examples. Tight and no filler; the bilingual heading is minor redundancy but the rest is well ordered and earns its space.

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 search tool with a nested scope object, six parameters and no output schema, the description supplies the two things an agent most needs: how it differs from shamela_search_pages and what to call next. Return-value shape is left to the response_format parameter and structuredContent, which is acceptable.

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 description coverage is 100%, so the schema already documents query, scope, options and pagination in depth. The description's examples show the query and scope.book_ids shape in use, which adds slight context, but does not explain parameter semantics beyond what the schema provides. Baseline 3 is appropriate.

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 and resource ('Search Shamela's title/Lucene index for chapter and section titles') and immediately distinguishes the tool from its closest sibling: it matches title text rather than page bodies, unlike shamela_search_pages. An agent can tell this apart from the many other shamela_search_* tools without opening the schema.

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?

Explicitly names the sibling it shadows (shamela_search_pages) and clarifies the selecting condition (title text vs page bodies), then routes the agent onward with shamela_get_book_section to read the section found. It lacks a when-NOT-to-use clause, but the sibling differentiation is clear.

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