Skip to main content
Glama

Mogean POI data store

Count locations

mogean_count
Read-onlyIdempotent

Count sellable US locations, exactly, from the current data release. Use fact for one brand, category, leaf category or government source, optionally in a state; for a brand in a state, a city works when it is one of the top cities listed on that brand's page for that state. Use cut for any combination of brands, categories, leaf categories, states, government sources and tiers. Ids from search are accepted as they are. Returns a link to the page a person can check, the cut and full_cut_hash mogean_quote takes, and whether mogean_quote can price that cut at the internal licence (higher licences cost more and can still be refused).

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": "mogean_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
cutNoA custom cut: every non-empty list narrows the selection.
factNoA fact question: one of brand, category, leaf or gov; optionally a state; for a brand inside a state, optionally a city.
response_formatNoconcise (default) returns a short summary; detailed adds the full structured result as text.concise

Output Schema

NameRequiredDescriptionDefault
dataNo
toolYes
limitNo
errorsNo
statusYes
messageYes
drop_dateNo
permalinkNo
attributionNo
response_formatYes
manifest_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / data / properties / quotable
      Added value: +{
      +  "description": "Whether mogean_quote prices this cut at the internal licence. Embedded (3x) and redistribution (10x) licences can still be refused: agents do not quote Redistribution, and where an agent quote limit is set, a total above it is refused.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / quote_refusal
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "contact": {
      +      "type": "string"
      +    },
      +    "flagship": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "page_url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "page_url"
      +      ],
      +      "type": "object"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "page_url": {
      +      "type": "string"
      +    },
      +    "product_id": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "enum": [
      +        "not_found",
      +        "flagship_contact_sales",
      +        "redistribution_contact_sales",
      +        "geometry_redistribution",
      +        "subscription_not_available_via_mcp",
      +        "geometry_unavailable",
      +        "oversized",
      +        "needs_serving_layer",
      +        "format_not_available",
      +        "empty_cut",
      +        "oversized_spec",
      +        "zero_rows",
      +        "cut_not_sellable",
      +        "above_mcp_cap"
      +      ],
      +      "type": "string"
      +    },
      +    "sku": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "store_next_steps": {
      +      "additionalProperties": false,
      +      "description": "What the buyer does on the Mogean store to complete this; an agent cannot. Relay `relay` and the ordered `steps` with the `where` link.",
      +      "properties": {
      +        "agent_can_complete": {
      +          "const": false,
      +          "type": "boolean"
      +        },
      +        "contact": {
      +          "type": "string"
      +        },
      +        "price": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "amount_usd": {
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "geometry_add_on": {
      +                  "type": "boolean"
      +                },
      +                "license": {
      +                  "enum": [
      +                    "internal",
      +                    "embedded",
      +                    "redistribution"
      +                  ],
      +                  "type": "string"
      +                },
      +                "term": {
      +                  "enum": [
      +                    "one_time",
      +                    "subscription"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "amount_usd",
      +                "term",
      +                "license",
      +                "geometry_add_on"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "products": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "geometry_add_on": {
      +                "type": "boolean"
      +              },
      +              "license": {
      +                "enum": [
      +                  "internal",
      +                  "embedded",
      +                  "redistribution"
      +                ],
      +                "type": "string"
      +              },
      +              "page_url": {
      +                "type": "string"
      +              },
      +              "price_usd": {
      +                "anyOf": [
      +                  {
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "product_id": {
      +                "type": "string"
      +              },
      +              "term": {
      +                "enum": [
      +                  "one_time",
      +                  "subscription"
      +                ],
      +                "type": "string"
      +              },
      +              "title": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "product_id",
      +              "title",
      +              "page_url",
      +              "term",
      +              "license",
      +              "geometry_add_on",
      +              "price_usd"
      +            ],
      +            "type": "object"
      +          },
      +          "minItems": 2,
      +          "type": "array"
      +        },
      +        "relay": {
      +          "type": "string"
      +        },
      +        "send_to_sales": {
      +          "additionalProperties": false,
      +          "description": "For a custom cut Mogean sales handles: what the buyer sends them, the cut, in the same shape as the cut input, and its full_cut_hash, and the licence and term asked for.",
      +          "properties": {
      +            "cut": {
      +              "type": "object"
      +            },
      +            "full_cut_hash": {
      +              "pattern": "^[0-9a-f]{64}$",
      +              "type": "string"
      +            },
      +            "license": {
      +              "enum": [
      +                "internal",
      +                "embedded",
      +                "redistribution"
      +              ],
      +              "type": "string"
      +            },
      +            "term": {
      +              "enum": [
      +                "one_time",
      +                "subscription"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "cut",
      +            "full_cut_hash",
      +            "license",
      +            "term"
      +          ],
      +          "type": "object"
      +        },
      +        "steps": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "total_usd": {
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "what": {
      +          "type": "string"
      +        },
      +        "where": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "where",
      +        "what",
      +        "price",
      +        "steps",
      +        "agent_can_complete",
      +        "relay"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "reason",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds genuinely new behavior: exactness against the current data release, a human-checkable link in the response, the cut/full_cut_hash handoff to mogean_quote, and the caveat that higher licences cost more and can be refused. It stops short of describing failure modes beyond the city/needs_serving_layer note, and response formatting is left to the output schema.

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 purpose and then the routing rule, which is the right order for an agent. The brand/state/city clause is clause-heavy and slightly harder to parse than the rest, but no sentence is filler.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter, all-optional tool with nested objects and an output schema, nothing an agent needs is missing: when to pick fact vs cut, what comes back, and how the result feeds mogean_quote. Return-value detail is legitimately delegated to the output schema.

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 coverage is 100%, so baseline is 3; the description still adds the cross-parameter rule that 'Ids from search are accepted as they are' and frames fact vs cut as mutually exclusive shapes. It does not restate the nested tier or format semantics, which the schema already handles well.

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?

A specific verb ('Count') plus a precisely scoped resource ('sellable US locations, exactly, from the current data release'). It also implicitly separates itself from siblings by describing the counting role that mogean_quote and search do not fill.

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?

Explicit when-to-use routing: 'Use fact for one brand, category, leaf category or government source... Use cut for any combination of brands, categories, leaf categories, states, government sources and tiers.' It even handles the edge case (city only when the brand's page lists it) rather than leaving it to inference.

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