Skip to main content
Glama

Get Categories

get_categories
Read-onlyIdempotent

List categories filtered optionally by content type—books, fatwas, or notes—and include counts to help users browse Quranpedia content.

Instructions

List categories, optionally filtered by content type (books, fatwas, or notes) to include counts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is fully covered by structured data. The description's only added behavioral claim is "to include counts," which is ambiguous rather than informative — it does not say whether counts are per-category item totals or whether they appear only when a type filter is supplied.

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?

One compact sentence with the action front-loaded and the optional modifier placed after it; nothing is redundant padding. The only weakness is that the final clause is underspecified rather than wordy.

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

Completeness3/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 burden of explaining the return shape, and "include counts" is not resolved — an agent cannot tell what fields to expect. For a simple one-optional-enum read tool with full annotations this is close to sufficient, but the count semantics leave a real gap.

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 0%, but the single parameter is a three-value enum that is fully self-describing in the schema, and the description merely repeats the same values (books, fatwas, notes) without adding meaning. It does not explain the consequence of omitting the filter or how the filter interacts with the aforementioned counts.

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 ("List categories") plus the filter dimension (content type: books, fatwas, notes), which is enough to distinguish it from siblings like get_category_items that return contents rather than categories. The trailing phrase "to include counts" is vague about whether counts are always returned or only in some mode.

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?

The word "optionally" makes clear the filter is discretionary, so the no-argument call is implied as valid. However, there is no explicit statement of when to use this versus get_category_items or other listing tools, and no exclusions or prerequisites are given.

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