name: api-marketplace
description: Discover and search APIs on the GateFlow marketplace
version: "1.0"
author: GateFlow
tags: [api, marketplace, discovery, search]

instructions: |
  Use these tools to find APIs that your agent can pay for and use.
  All endpoints return JSON. No authentication needed for discovery.

tools:
  - name: search_apis
    description: Search the GateFlow marketplace for APIs by keyword, category, or price range
    endpoint: /api/marketplace/search
    method: GET
    params:
      - name: q
        type: string
        description: Search query (matches name, description)
        example: "weather"
      - name: category
        type: string
        description: Filter by category (data, ai-ml, finance, social, utilities)
        example: "finance"
      - name: max_price
        type: number
        description: Maximum price per call in USDC
        example: 0.01
      - name: sort
        type: string
        description: Sort order (newest, popular, price_asc, price_desc)
        example: "popular"

  - name: get_catalog
    description: Get the full API catalog in JSON format
    endpoint: /api/marketplace/catalog
    method: GET

  - name: get_llm_txt
    description: Get machine-readable catalog in plain text format
    endpoint: /llm.txt
    method: GET

  - name: get_endpoint_details
    description: Get full details for a specific API endpoint including docs, pricing, and code examples
    endpoint: /marketplace/{provider}/{endpoint}
    method: GET
