{
  "tools": [
    {
      "name": "whats_good_for",
      "description": "Call before recommending. Attested only, unique-in-pond first, never invent. Empty if none.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "pond": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "trust_check",
      "description": "Pass/fail a URL against the live policy before recommending it to a human. Fail closed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      }
    },
    {
      "name": "log_intent",
      "description": "Log that you intend to recommend or act. Needs a write key. Returns receipt_id.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "target_url": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "result": {
            "type": "string"
          }
        },
        "required": [
          "query",
          "action",
          "target_url"
        ]
      }
    },
    {
      "name": "commit_recommend",
      "description": "Call BEFORE every recommend. Runs trust_check, logs pass/fail, returns speak + receipt. Needs a write key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "target_url": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          }
        },
        "required": [
          "query",
          "action",
          "target_url"
        ]
      }
    },
    {
      "name": "ingest_listing",
      "description": "Ingest a listing and score uniqueness inside one pond. Needs a write key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "one_liner": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "pond": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "url"
        ]
      }
    },
    {
      "name": "log_click",
      "description": "Record that a human clicked an item after a receipt. Public.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "receipt_id": {
            "type": "string"
          },
          "item_url": {
            "type": "string"
          },
          "item_id": {
            "type": "string"
          }
        },
        "required": [
          "item_url"
        ]
      }
    },
    {
      "name": "spend_check",
      "description": "Hard cap + allowlist; cannot override. Fail closed. Needs a write key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "amount_usd": {
            "type": "number"
          },
          "action": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "amount_usd",
          "action"
        ]
      }
    },
    {
      "name": "nutrition_label",
      "description": "Stamp of what it is + last test.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      }
    },
    {
      "name": "request_approve",
      "description": "HITL pause. Agent waits; human taps yes. Needs a write key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "target_url": {
            "type": "string"
          },
          "amount_usd": {
            "type": "number"
          }
        },
        "required": [
          "query",
          "action",
          "target_url"
        ]
      }
    },
    {
      "name": "decide_approve",
      "description": "Human tap. Public so the desk can approve without the org key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "approval_id": {
            "type": "string"
          },
          "decision": {
            "type": "string",
            "enum": [
              "approved",
              "denied"
            ]
          }
        },
        "required": [
          "approval_id",
          "decision"
        ]
      }
    }
  ]
}