kirha logo

Tools

List available tools

Use kirha.tools(options?) to retrieve the full list of tools available for a given vertical:

import { Kirha } from "kirha";

const kirha = new Kirha({
  apiKey: process.env.KIRHA_API_KEY,
});

const tools = await kirha.tools({ vertical: "crypto" }); 
for (const tool of tools) { 
  console.log(`${tool.name}: ${tool.description}`); 
} 

Vertical-scoped

Each vertical is a domain-specific collection of tools and providers. The tools available depend on the vertical you pass. Browse them on the Providers Graph, or through the Discovery portal if you are an agent 🤖

Each tool returned by kirha.tools() includes an inputSchema and outputSchema that describe the expected parameters and response shape. Always follow these schemas strictly when calling a tool, as malformed inputs will be rejected.

Each tool execution consumes credits. You can track usage on the Dashboard.

Execute a tool directly

Use kirha.executeTool(toolName, params) to call a specific tool with explicit parameters, bypassing the planning engine:

import { Kirha } from "kirha";

const kirha = new Kirha({
  apiKey: process.env.KIRHA_API_KEY,
});

const result = await kirha.executeTool("coingecko_searchCoin", { 
  query: "avax", 
  limit: 1, 
}); 
console.log(result); 

When to use direct tool execution

Use kirha.search() or kirha.plan() when you have a natural language query and want Kirha to determine the right tools automatically. This is the recommended approach for most use cases.

Use kirha.executeTool() when you:

  • Already know which tool and parameters you need
  • Want to skip the planning step for your own orchestration logic
  • Need to call a single provider in isolation

Tools options

Prop

Type

Execute tool options

Prop

Type

On this page