Skip to main content
Glama

Real Estate MCP Server

by agentic-ops
system_tools.pyโ€ข1.91 kB
""" System and data management MCP tools """ import json from mcp.server.fastmcp import FastMCP from utils import data_manager def register_system_tools(mcp: FastMCP): """Register all system and data management tools with the MCP server""" @mcp.tool() def refresh_data() -> str: """Refresh all cached data from files""" data_manager.refresh_data() return "Data cache refreshed successfully" @mcp.tool() def get_data_summary() -> str: """Get summary statistics of all data in the system""" summary = { "properties": { "total_active_listings": len(data_manager.get_all_properties()), "price_range": data_manager.properties.get("price_range", {}), }, "agents": {"total_agents": len(data_manager.get_all_agents())}, "clients": { "total_clients": len(data_manager.get_all_clients()), "lead_sources": data_manager.clients.get("lead_sources", {}), }, "sales": { "total_recent_sales": len(data_manager.get_recent_sales()), "sales_summary": data_manager.transactions.get("sales_summary", {}), }, "areas": { "total_areas": len(data_manager.get_all_areas()), "city_info": { "name": data_manager.areas.get("city_name"), "population": data_manager.areas.get("population"), }, }, "market": { "current_market_type": data_manager.market.get( "market_overview", {} ).get("market_type"), "avg_days_on_market": data_manager.market.get( "market_overview", {} ).get("avg_days_on_market"), }, } return json.dumps(summary, indent=2)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agentic-ops/real-estate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server