Skip to main content
Glama

Run a niche analysis

run_niche_analysis

Run a niche analysis on a topic: discovers relevant keywords, clusters them into sub-niches, and scores each cluster's opportunity. Returns clusters with their keywords, opportunity scores, intent type, and an app concept suggestion. Cache hits (recent identical analyses, less than 7 days old) are returned instantly without consuming the niche analysis quota. Fresh analyses can take a few minutes.

Input Schema

NameRequiredDescriptionDefault
langYesBCP-47 language-region code of the listing language (e.g., en-US, fr-FR, de-DE). The country picks the market, not the region of the language: Arabic is ar-SA in every country, so Arabic in Morocco is country MA with lang ar-SA
storeYesApp store: GPLAY (Google Play) or ITUNES (App Store)
topicYesNiche topic to analyze (2-100 characters, e.g. "meditation")
countryYesISO country code (e.g., US, FR, DE)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lang / description
      Previous value: -"BCP-47 language-region code (e.g., en-US, fr-FR, de-DE)"New value: +"BCP-47 language-region code of the listing language (e.g., en-US, fr-FR, de-DE). The country picks the market, not the region of the language: Arabic is ar-SA in every country, so Arabic in Morocco is country MA with lang ar-SA"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnly=false, openWorld=true, idempotent=false, destructive=false, but the description adds meaningful behavioral context the annotations cannot convey: cache hits under 7 days return instantly without consuming quota, and fresh analyses take minutes. This quota/latency disclosure is exactly the kind of added value that justifies a high score; error/auth behavior is not covered, so it stops short of 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with what the tool does, then outputs, then cache/quota, then latency. No filler; each sentence carries distinct information.

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?

With no output schema, the description correctly enumerates the return shape (clusters, keywords, opportunity scores, intent type, app concept suggestion) and covers caching and latency. It stops short of noting whether analyses persist or how results are retrieved later, which list_niche_analyses implies. Largely complete for a 4-param pipeline tool.

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% and includes careful guidance (e.g., the lang/country distinction, store enum values), so the schema does the heavy lifting. The description only implies the 'topic' input and adds no syntax or format detail beyond the schema, making the baseline 3 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?

The description states a specific verb and resource and unpacks the full pipeline: discovers keywords, clusters into sub-niches, scores each cluster's opportunity. This distinguishes it from sibling tools like run_autocomplete or list_niche_analyses, which do not perform clustering/scoring. An agent can tell what it produces 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 Guidelines3/5

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

Usage is implied by the pipeline description, but there is no explicit when-to-use guidance nor any named alternative or exclusion (e.g., versus run_autocomplete for keyword discovery). The cache/quota note informs expectations rather than routing. Adequate but with a clear gap in directive guidance.

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