@@ -60,11 +60,11 @@ func GetModelNameFromContext(ctx context.Context) string {
6060}
6161
6262// FirstLineDescription returns just the first non-empty line from the embedded
63−// markdown description when CRUSH_SHORT_TOOL_DESCRIPTIONS is set, significantly
64−// reducing token usage. Otherwise returns the full description.
63+// markdown description. The full description can be used by setting
64+// CRUSH_SHORT_TOOL_DESCRIPTIONS=0.
6565func FirstLineDescription(content []byte) string {
6666 if !testing.Testing() {
67− if v, _ := strconv.ParseBool(os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS")); !v {
67+ if v, err := strconv.ParseBool(os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS")); err == nil && !v {
6868 return strings.TrimSpace(string(content))
6969 }
7070 }