An Android application for Quranic reflection and journaling with AI-powered verse recommendations. Includes OAuth 2.0 authentication via Cloudflare Worker proxy and MCP client integration for verse search.
Hayah exposes 14 tools across Kotlin (Android app) and Cloudflare Worker (OAuth proxy). Tool definitions are visible in source but lack rigor: descriptions are present but often generic (e.g., 'Retrieves a specific Quranic verse'); parameter schemas are defined but many lack type constraints and validation guidance; no output schemas documented; error handling is minimal. OAuth tools (token, revoke) expose client_id as a parameter, creating a security anti-pattern. Most tools are READ_ONLY wrappers around Quran Foundation APIs with minimal composition logic. Naming is verb-noun compliant but descriptions average ~80 chars, below the 194-char baseline for A+ tools. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present.
Generates brief Islamic reflections for each verse, grounded in the actual translation text.
Retrieves user activity days (reading sessions) from Quran Foundation API
Retrieves audio recitation for a specific verse
Retrieves list of all Quranic chapters (surahs)
Retrieves a random Quranic verse with translations and tafsir
Retrieves available Quranic recitations
Fetches the authenticated user's profile from Quran Foundation API
OAuth tools (token, revoke) expose client_id as a parameter and inject client_secret server-side. However, the description does not warn that client_id is sensitive metadata and should not be logged or echoed. No guidance on secret injection best practices.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., verse_key, translation_text, tafsir_text). Responses are inferred from API docs, not explicit MCP schema.
Descriptions are generic and under 100 chars for most tools (e.g., 'Retrieves a specific Quranic verse by its key'). Baseline for A+ tools is 194 chars. Descriptions lack WHEN to use, dependencies, or error recovery guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | 2026-07-28+ | v2 |
Retrieves a specific Quranic verse by its key with translations and tafsir
Retrieves Quranic verses by page number
Health check endpoint that returns 200 OK
Records user activity days (reading sessions) to Quran Foundation API
Returns up to 5 Quran verse keys (e.g. "2:156") relevant to a keyword. Connects to mcp.quran.ai via Streamable HTTP so Firebase AI can call real search tools.
Proxies OAuth 2.0 token revocation requests to Quran Foundation. Injects client_secret via Basic Auth header and forwards to the real /oauth2/revoke endpoint.
Proxies OAuth 2.0 token exchange and refresh requests to Quran Foundation. Injects client_secret via Basic Auth header and forwards to the real /oauth2/token endpoint.
Parameters like 'translations', 'tafsirs', 'fields', 'language' accept free-form strings (e.g., translations='20', tafsirs='169'). No enum constraints or validation. LLMs cannot discover valid values and may pass invalid IDs.
No error handling guidance. Tools do not document what errors are retryable, user-fixable, or fatal. No recovery hints (e.g., 'If verse not found, try search_verses() with a keyword').