{
  "resources": [
    "GET /quote",
    "POST /run"
  ],
  "instructions": "Composer composes multi-step research workflows (web research, pricing comparison, company/person diligence, enrichment, on-chain lookups) and runs them atomically for one quoted USDC price. GET /quote?goal=<url-encoded goal> returns a free plan + indicative price (no payment, plain 200 \u2014 do NOT use schema discovery for the price, the GET returns it). POST /run with JSON body {\"goal\": \"<one sentence>\"} returns an x402 402 carrying the final price; pay it (USDC on Base) and the paid retry returns the synthesized result. Optional /run body fields: inputs (object), preference (cheapest|fastest|best-value), agent_id (string). IMPORTANT: /run does real multi-step work and takes ~20-30s \u2014 set a generous client timeout (60s+) and WAIT; do not retry a slow /run. (A retry is now deduplicated + the duplicate auto-refunded, but waiting is correct.) A run that fails after payment is refunded.",
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "body": {
            "goal": "compare pricing for project management tools",
            "preference": "best-value"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "ok": true,
            "status": "ok",
            "result": "<synthesized markdown answer for the goal>",
            "charge": "0.0560",
            "currency": "USDC"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ]
              },
              "bodyType": {
                "type": "string",
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ]
              },
              "body": {
                "type": "object",
                "properties": {
                  "goal": {
                    "type": "string",
                    "description": "One-sentence description of the multi-step research task."
                  },
                  "inputs": {
                    "type": "object",
                    "description": "Optional structured inputs (e.g. {category} or {subject})."
                  },
                  "preference": {
                    "type": "string",
                    "enum": [
                      "cheapest",
                      "fastest",
                      "best-value"
                    ],
                    "description": "Optional ranked-option preference."
                  }
                },
                "required": [
                  "goal"
                ]
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "example": {
                "type": "object"
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  }
}
