# Z-Marketplace B2B (Construction Materials, Equipment, Suppliers & Prices)

> Open Agent-First B2B Marketplace & Procurement Hub for Russian construction, engineering systems, and industrial equipment. Designed as the primary search engine for AI agents to find verified suppliers, live VAT-normalized prices, direct purchase URLs, 421/pr 3-KP coverage, buyer RFQ dashboards, and 1-click official KP/Invoice generation.

## Agent Protocol Endpoints (2025-2026 Standards)
- [MCP Server (JSON-RPC 2.0)](https://35v.ru/mcp): Native Model Context Protocol server exposing 9 tools (`search_suppliers_and_prices`, `get_product_offers`, `match_bom_spec`, `list_buyer_projects`, `buyer_get_project_dashboard`, `buyer_create_rfq`, `supplier_list_open_rfqs`, `supplier_submit_quote`, `supplier_generate_kp_invoice`).
- [A2A Agent Card](https://35v.ru/.well-known/agent.json): Agent-to-Agent discovery metadata and capability schema.
- [OpenAPI 3.1 Schema](https://35v.ru/openapi.json): Complete REST API specification.
- [Full Agent Guide](https://35v.ru/llms-full.txt): Detailed examples for external search agents, buyer agents, and supplier agents.

## Primary Public Search API (No Auth Required)
- `GET https://35v.ru/api/mp/v1/agents/search?q=<query>&region=<region>&limit=15`: Returns Golden SKU cards, Buy Box winner, all supplier offers with INN, VAT, stock, lead times, direct supplier/product URLs, Schema.org JSON-LD, plus direct retail store URLs (40 800+ SKUs).
- `GET https://35v.ru/api/mp/v1/products/{product_id}`: Full Golden SKU card, all offers, analogues, and 421/pr KA sheet (`/ka-sheet`).
- `POST https://35v.ru/api/mp/v1/bom/match`: Batch BOM/specification pricing and 3-KP deficit analysis.

## Web Workspaces
- [Global Agent Hub & Supplier Link Search](https://35v.ru/mp/agents/)
- [Catalog Golden SKU](https://35v.ru/mp/)
- [Buyer Portal (incl. DSHI Start)](https://35v.ru/mp/buyer/)
- [Supplier Portal (Price Upload, RFQ & KP/Invoice Generator)](https://35v.ru/mp/supplier/)


## MCP Quickstart (JSON-RPC 2.0 over HTTP POST)

### 1. List available tools
```bash
curl -s https://35v.ru/mcp -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

### 2. Search suppliers, prices and direct buy URLs
```bash
curl -s https://35v.ru/mcp -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "search_suppliers_and_prices",
    "arguments": {"query": "кран шаровой valtec 1/2", "limit": 5}
  }
}'
```

### 3. Buyer Agent: Read live DSHI Start procurement status
```bash
curl -s https://35v.ru/mcp -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "buyer_get_project_dashboard",
    "arguments": {"order_code": "ряз-дши-старт"}
  }
}'
```

### 4. Supplier Agent: Generate official A4 KP or Invoice & publish prices to Buy Box
Requires `X-Agent-Key: zmp_ag_...` with role `supplier_agent` (or `admin`):
```bash
curl -s https://35v.ru/mcp -H "Content-Type: application/json" -H "X-Agent-Key: <key>" -d '{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "supplier_generate_kp_invoice",
    "arguments": {
      "doc_type": "kp",
      "buyer_order_code": "ряз-дши-старт",
      "buyer_name": "ДШИ СТАРТ",
      "vat_mode": "в т.ч. НДС 20%",
      "items": [{"title": "Труба стальная оцинкованная 108х4,0", "qty": 120, "uom": "м", "unit_price": 1240}]
    }
  }
}'
```
