Bug Report
Describe the bug
The analyze_top_keywords tool crashes when platform is set to android. It returns a runtime error instead of results. The same tool works correctly on ios.
To Reproduce
{
"keyword": "pill reminder",
"platform": "android",
"num": 5
}
Expected behavior
Should return top-ranking Android apps for the keyword along with keyword analysis, same as it does for iOS.
Actual behavior
{
"error": "Cannot read properties of undefined (reading 'length')",
"keyword": "pill reminder",
"platform": "android"
}
Works fine on iOS
{
"keyword": "pill reminder",
"platform": "ios",
"num": 5
}
✅ Returns correct results on iOS.
Root cause hypothesis
The tool likely reads a .length property on a field that exists in the iOS App Store response but is missing or undefined in the Google Play Store response. The Android data structure may differ (e.g. categoryDistribution or ratings field returning undefined instead of an empty object/array).
Environment
- Tool:
mcp-appstore
- Method:
analyze_top_keywords
- Platform affected:
android only
- Platform working:
ios
Workaround
Manually using search_app + get_app_details on Android as a substitute.
Bug Report
Describe the bug
The
analyze_top_keywordstool crashes whenplatformis set toandroid. It returns a runtime error instead of results. The same tool works correctly onios.To Reproduce
{ "keyword": "pill reminder", "platform": "android", "num": 5 }Expected behavior
Should return top-ranking Android apps for the keyword along with keyword analysis, same as it does for iOS.
Actual behavior
{ "error": "Cannot read properties of undefined (reading 'length')", "keyword": "pill reminder", "platform": "android" }Works fine on iOS
{ "keyword": "pill reminder", "platform": "ios", "num": 5 }✅ Returns correct results on iOS.
Root cause hypothesis
The tool likely reads a
.lengthproperty on a field that exists in the iOS App Store response but is missing orundefinedin the Google Play Store response. The Android data structure may differ (e.g.categoryDistributionorratingsfield returningundefinedinstead of an empty object/array).Environment
mcp-appstoreanalyze_top_keywordsandroidonlyiosWorkaround
Manually using
search_app+get_app_detailson Android as a substitute.