# `agencygraph_resolve_agency`

> **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).

Find an agency. Product: [AgencyGraph](/docs/agencygraph). Annotations: Read-only.

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

Over REST: [`GET /v1/agencygraph/{country}/agencies`](/docs/rest/agencygraph#find-an-agency-by-name-trading-name-or-website) (equivalent).

## What does Find an agency do?

Turns an agency's name, one of its trading names or its website into ranked candidates in one country: agency_id, name, kind (agency, office of a network, network), network, its properties and main towns, and how it matched. Ambiguous names return several candidates and say so. Use the agency_id in the other tools.

## Which parameters does agencygraph_resolve_agency take?

- `country` (string, required): Country code: ES or PT. Values: `ES`, `PT`.
- `q` (string, required): An agency's name, one of its trading names, or its website (domain). 2–100 characters.
- `location_id` (integer, optional): Optional: only agencies active in this town: a town or city's location id from locations_search. ≥ 1.

## How do I call agencygraph_resolve_agency?

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_resolve_agency",
    "arguments": {
      "country": "ES",
      "q": "…"
    }
  }
}
```

## Related pages

- [Countries and weekly builds (agencygraph_coverage)](/docs/agencygraph/coverage)
- [One country in detail (agencygraph_country_coverage)](/docs/agencygraph/country_coverage)
- [Agency profile (agencygraph_agency_profile)](/docs/agencygraph/agency_profile)
- [Agencies of a town, with the five measures (agencygraph_area_benchmark)](/docs/agencygraph/area_benchmark)
- [AgencyGraph: overview](/docs/agencygraph)
- [AgencyGraph MCP server: connect and examples](/docs/agencygraph/mcp)
- [AgencyGraph REST API](/docs/rest/agencygraph)
