# `agencygraph_market_share`

> **Casafari is the AI agent-native real estate data intelligence platform.** The most complete property index in Europe: a deduplicated, cleaned property graph of residential and commercial property, for sale and for rent, in 16 countries. Every property is one record with its full price and market history. [How the property graph is built](/docs/property-graph).

Market share in a town. Product: [AgencyGraph](/docs/agencygraph). Annotations: Read-only.

Call as `agencygraph_market_share` on the AgencyGraph MCP server, `https://platform.casafari.com/mcp/agencygraph` ([how to connect](/docs/agencygraph/mcp)).

Over REST: [`GET /v1/agencygraph/{country}/market-share`](/docs/rest/agencygraph#agencies-shares-of-a-town-s-stock-and-flow) (equivalent).

## What does Market share in a town do?

Each agency's share of the properties on the market in one town, and of the town's new and delisted homes in the latest complete quarter and the quarter before, largest share first. A home two agencies advertise counts for each, so shares can add up to more than 1. Pages of up to 25 agencies.

## Which parameters does agencygraph_market_share take?

- `country` (string, required): Country code: ES or PT. Values: `ES`, `PT`.
- `location_id` (integer, required): The town: a town or city's location id from locations_search. ≥ 1.
- `type_group` (string, optional): Property type group: all (default), apartment or house. Values: `all`, `apartment`, `house`. default "all".
- `operation` (string, optional): sale (default): homes for sale. Rentals are not measured yet. Values: `sale`. default "sale".
- `size` (integer, optional): Rows per page, 1 to 25 (default 25). 1–25; default 25.
- `offset` (integer, optional): Rows to skip: the next_offset of the previous page. ≥ 0; default 0.

## How do I call agencygraph_market_share?

Required arguments only, with placeholder values; see the parameters above for real ones.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agencygraph_market_share",
    "arguments": {
      "country": "ES",
      "location_id": 1
    }
  }
}
```

## Related pages

- [Countries and weekly builds (agencygraph_coverage)](/docs/agencygraph/coverage)
- [One country in detail (agencygraph_country_coverage)](/docs/agencygraph/country_coverage)
- [Find an agency (agencygraph_resolve_agency)](/docs/agencygraph/resolve_agency)
- [Agency profile (agencygraph_agency_profile)](/docs/agencygraph/agency_profile)
- [AgencyGraph: overview](/docs/agencygraph)
- [AgencyGraph MCP server: connect and examples](/docs/agencygraph/mcp)
- [AgencyGraph REST API](/docs/rest/agencygraph)
