 
 (defn get-tools
   [config capability]
+  (debug "Getting tools with the" capability "capability")
   (let [tools (config :tools)]
     (->> tools
          (map get-tool-conf)

(ns staircase.tools
  (:use [clojure.string :only (replace-first)])
  (:require [cheshire.core :as json]
            [clojure.java.io :as io]))


  (with-open [r (-> (str "tools/" (name tool-name) "/tool.json")
                    io/resource
                    io/reader)]
    (let [prefix #(replace-first % "." (str "/" (name tool-name)))]
      (-> (slurp r)
          (json/parse-string true)
          (#(merge tool-defaults %))
