{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": [
      {
        "name": "search",
        "description": "Search the whole Assetzaar marketplace (agent skills, UI components, production modules, SaaS kits, automations and services). Returns machine-readable manifests with type, price, security-scan status, compatibility and install command. Use this to find a product to build with.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "query": {"type": "string", "description": "What to search for (name, summary, technology)."},
            "type": {"type": "string", "description": "Optional filter: components | agent-skill | saas-kit | landing | automation | service."},
            "limit": {"type": "number", "description": "Max results (1-25, default 10)."}
          },
          "required": []
        }
      },
      {
        "name": "inspect",
        "description": "Get the full machine-readable manifest for one product by slug — type, version, author (verified?), license, price, dependencies, security-scan status, compatibility and install command — so you can evaluate it before installing.",
        "inputSchema": {
          "type": "object",
          "properties": {"slug": {"type": "string", "description": "The product slug."}},
          "required": ["slug"]
        }
      },
      {
        "name": "search_components",
        "description": "Search Assetzaar's marketplace for UI components by name, category or technology. Returns matches with slugs and install commands.",
        "inputSchema": {
          "type": "object",
          "properties": {"query": {"type": "string", "description": "What to search for"}},
          "required": ["query"]
        }
      },
      {
        "name": "get_component",
        "description": "Get a component by slug. Free components return installable source. With an agent key (Authorization: Bearer azr_…), paid components the account owns and Pro components covered by an active membership return source too. Otherwise returns how to buy (see the `purchase` tool).",
        "inputSchema": {
          "type": "object",
          "properties": {"slug": {"type": "string", "description": "The component slug"}},
          "required": ["slug"]
        }
      },
      {
        "name": "install",
        "description": "Install any agent-installable Assetzaar product by slug. Free products return source or a short-lived signed download URL. Paid products require an agent key plus ownership; Pro products require an agent key plus active membership. For paid products, call purchase/check_purchase first.",
        "inputSchema": {
          "type": "object",
          "properties": {"slug": {"type": "string", "description": "The product slug to install."}},
          "required": ["slug"]
        }
      },
      {
        "name": "purchase",
        "description": "Start a purchase of a paid Assetzaar product for the connected account. Requires an agent key (Authorization: Bearer azr_…, created at assetzaar.com/account/agent-keys). Returns a Stripe approval URL — the HUMAN must open it and approve payment; the agent can never charge anyone by itself. After approval, call check_purchase, then install.",
        "inputSchema": {
          "type": "object",
          "properties": {"slug": {"type": "string", "description": "The product slug to buy."}},
          "required": ["slug"]
        }
      },
      {
        "name": "check_purchase",
        "description": "Check whether a purchase started with the `purchase` tool has been approved and paid. Returns status: pending | paid | expired. Once paid, the entitlement is granted and install returns the source or signed download URL.",
        "inputSchema": {
          "type": "object",
          "properties": {"purchase_id": {"type": "string", "description": "The purchase_id returned by the purchase tool."}},
          "required": ["purchase_id"]
        }
      }
    ]
  }
}
