Skip to main content
Glama

Megido: niche, competitor and traffic research on sites with observed revenue

Open a niche

get_cohort

Open one niche: its gloss with labeling confidence, size, the distribution of its members over quality index bands, scale bands, growth bands, countries and site types in whole percents, its position in the hierarchy — parent, children, neighboring niches — and a stable sample of member projects as cards. Opening the niche itself spends no coverage; every parent, child, neighbor and sample member shown to your organization for the first time this calendar month costs the first-seen price on top of the base price and spends one unit of coverage, so ask only for the parts you need. Use the hierarchy to widen or narrow the market definition instead of searching again. It takes a niche id: to find a niche by words or by conditions use search_cohorts. With country, the distributions count only the core members of those countries.

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_cohort"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsNoWhich sections to include; all when omitted
countryNoCount the distributions over the core members whose main country is in this list only; slice_size gives how many there are. The niche's size, sample and hierarchy stay whole. Needs the distributions part.
estimateNoWhen true, run the query but return only its composition, price and a quote_token instead of data
cohort_idNoNiche to open; required unless quote_token is given
quote_tokenNoExecute a previous estimate: pass the quote_token instead of the query parameters
sample_sortNodistance (default): the most typical member and the core members nearest to it; index: the core members with the highest quality index
sample_limitNoMembers in the sample; defaults to the limit named sample in capabilities and is refused above it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Count the distributions over the core members whose main country is in this list only; slice_size gives how many there are. The niche's size, sample and hierarchy stay whole. Needs the distributions part.",
      +  "items": {
      +    "description": "ISO 3166-1 alpha-2 country code",
      +    "enum": [
      +      "AD",
      +      "AE",
      +      "AF",
      +      "AG",
      +      "AI",
      +      "AL",
      +      "AM",
      +      "AO",
      +      "AQ",
      +      "AR",
      +      "AS",
      +      "AT",
      +      "AU",
      +      "AW",
      +      "AX",
      +      "AZ",
      +      "BA",
      +      "BB",
      +      "BD",
      +      "BE",
      +      "BF",
      +      "BG",
      +      "BH",
      +      "BI",
      +      "BJ",
      +      "BL",
      +      "BM",
      +      "BN",
      +      "BO",
      +      "BQ",
      +      "BR",
      +      "BS",
      +      "BT",
      +      "BV",
      +      "BW",
      +      "BY",
      +      "BZ",
      +      "CA",
      +      "CC",
      +      "CD",
      +      "CF",
      +      "CG",
      +      "CH",
      +      "CI",
      +      "CK",
      +      "CL",
      +      "CM",
      +      "CN",
      +      "CO",
      +      "CR",
      +      "CU",
      +      "CV",
      +      "CW",
      +      "CX",
      +      "CY",
      +      "CZ",
      +      "DE",
      +      "DJ",
      +      "DK",
      +      "DM",
      +      "DO",
      +      "DZ",
      +      "EC",
      +      "EE",
      +      "EG",
      +      "EH",
      +      "ER",
      +      "ES",
      +      "ET",
      +      "FI",
      +      "FJ",
      +      "FK",
      +      "FM",
      +      "FO",
      +      "FR",
      +      "GA",
      +      "GB",
      +      "GD",
      +      "GE",
      +      "GF",
      +      "GG",
      +      "GH",
      +      "GI",
      +      "GL",
      +      "GM",
      +      "GN",
      +      "GP",
      +      "GQ",
      +      "GR",
      +      "GS",
      +      "GT",
      +      "GU",
      +      "GW",
      +      "GY",
      +      "HK",
      +      "HM",
      +      "HN",
      +      "HR",
      +      "HT",
      +      "HU",
      +      "ID",
      +      "IE",
      +      "IL",
      +      "IM",
      +      "IN",
      +      "IO",
      +      "IQ",
      +      "IR",
      +      "IS",
      +      "IT",
      +      "JE",
      +      "JM",
      +      "JO",
      +      "JP",
      +      "KE",
      +      "KG",
      +      "KH",
      +      "KI",
      +      "KM",
      +      "KN",
      +      "KP",
      +      "KR",
      +      "KW",
      +      "KY",
      +      "KZ",
      +      "LA",
      +      "LB",
      +      "LC",
      +      "LI",
      +      "LK",
      +      "LR",
      +      "LS",
      +      "LT",
      +      "LU",
      +      "LV",
      +      "LY",
      +      "MA",
      +      "MC",
      +      "MD",
      +      "ME",
      +      "MF",
      +      "MG",
      +      "MH",
      +      "MK",
      +      "ML",
      +      "MM",
      +      "MN",
      +      "MO",
      +      "MP",
      +      "MQ",
      +      "MR",
      +      "MS",
      +      "MT",
      +      "MU",
      +      "MV",
      +      "MW",
      +      "MX",
      +      "MY",
      +      "MZ",
      +      "NA",
      +      "NC",
      +      "NE",
      +      "NF",
      +      "NG",
      +      "NI",
      +      "NL",
      +      "NO",
      +      "NP",
      +      "NR",
      +      "NU",
      +      "NZ",
      +      "OM",
      +      "PA",
      +      "PE",
      +      "PF",
      +      "PG",
      +      "PH",
      +      "PK",
      +      "PL",
      +      "PM",
      +      "PN",
      +      "PR",
      +      "PS",
      +      "PT",
      +      "PW",
      +      "PY",
      +      "QA",
      +      "RE",
      +      "RO",
      +      "RS",
      +      "RU",
      +      "RW",
      +      "SA",
      +      "SB",
      +      "SC",
      +      "SD",
      +      "SE",
      +      "SG",
      +      "SH",
      +      "SI",
      +      "SJ",
      +      "SK",
      +      "SL",
      +      "SM",
      +      "SN",
      +      "SO",
      +      "SR",
      +      "SS",
      +      "ST",
      +      "SV",
      +      "SX",
      +      "SY",
      +      "SZ",
      +      "TC",
      +      "TD",
      +      "TF",
      +      "TG",
      +      "TH",
      +      "TJ",
      +      "TK",
      +      "TL",
      +      "TM",
      +      "TN",
      +      "TO",
      +      "TR",
      +      "TT",
      +      "TV",
      +      "TW",
      +      "TZ",
      +      "UA",
      +      "UG",
      +      "UM",
      +      "US",
      +      "UY",
      +      "UZ",
      +      "VA",
      +      "VC",
      +      "VE",
      +      "VG",
      +      "VI",
      +      "VN",
      +      "VU",
      +      "WF",
      +      "WS",
      +      "YE",
      +      "YT",
      +      "ZA",
      +      "ZM",
      +      "ZW"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 249,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare only readOnlyHint=false and destructiveHint=false; the description carries the real behavioral weight by explaining that opening the niche is free but every first-seen parent, child, neighbor, and sample member spends one coverage unit at a first-seen price on top of base price. That is genuinely non-obvious billing semantics an agent could not infer from the annotations. It does not, however, explain the estimate/quote_token flow or any failure modes, so it stops short of a 5.

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 resource and its returned sections, then cost behavior, then the sibling routing rule. It is dense but nearly every clause carries information; the long comma-chained enumeration of returned fields is heavy but justified for a tool with no output schema.

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 7-parameter, cost-bearing tool with no output schema, the description adequately covers what comes back, what costs coverage, and how to scope with country. The notable gap is that the estimate/quote_token pre-flight flow — arguably the main safeguard against unexpected spend — is never mentioned in prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: 'with country, the distributions count only the core members of those countries' clarifies the scoping effect on output, and 'ask only for the parts you need' ties the parts parameter to cost. The estimate and quote_token parameters are left entirely to the schema, which keeps it below 5.

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 ('Open one niche') and immediately enumerates the payload: gloss with labeling confidence, size, distributions across quality/scale/growth bands and countries, hierarchy position, and a sample of member projects as cards. It also names the sibling it is not ('to find a niche by words or by conditions use search_cohorts'), so an agent can separate it from search_cohorts without reading either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit routing rule to search_cohorts for discovery-by-words and a conditional instruction to traverse the hierarchy rather than re-search. It also tells the agent to request only needed parts because of per-item coverage cost, which is direct when-to-use/when-to-omit 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.