Sign In

@toolroute/hook

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toolroute/hook

OpenClaw hook: automatically routes every agent task through ToolRoute and reports outcomes to earn routing credits

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
10
42.86%
Maintainers
1
Weekly downloads
 
Created
Source

@toolroute/hook

OpenClaw hook that automatically routes every agent task through ToolRoute and reports outcomes to earn routing credits.

What it does

Before every task: Calls toolroute.io/api/route with the task description. Injects the recommended MCP server, confidence score, and fallback chain into agent context.

After every task: Reports outcome, latency, and tool used to toolroute.io/api/report. Earns routing credits automatically. Every report makes future recommendations smarter for all agents.

Install

openclaw hooks install @toolroute/hook
openclaw hooks enable toolroute-router

No API key needed

ToolRoute is free. No signup required.

Optional config

openclaw config set toolroute.priority best_value
openclaw config set toolroute.agentName my-agent-name

Priority options

  • best_value (default) — best quality/cost tradeoff
  • best_quality — highest output quality
  • best_efficiency — lowest latency
  • lowest_cost — cheapest option
  • highest_trust — most verified/secure

Logs

~/.openclaw/logs/toolroute_hook.log

How it works

ToolRoute scores every MCP server on 5 dimensions from real agent execution data:

  • Output quality
  • Reliability
  • Efficiency
  • Cost
  • Trust

Not GitHub stars. Not blog post benchmarks. Actual outcomes.

Learn more: toolroute.io/api/route

Keywords

openclaw

FAQs

Package last updated on 22 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts