🛠️Tool Registry

Track the true cost of AI agents by metering any tool, API, or service—not just tokens.

The Tool Registry enables organizations to track costs beyond AI tokens. While most AI cost tracking focuses on LLM tokens, real-world agentic solutions incur many other costs: external API calls, third-party services, and even human time. The Tool Registry captures these costs so you can calculate true ROI for your AI investments.


Why Tool Registry?

AI agents don't just consume tokens—they make decisions that cost real money:

  • External API Calls: Credit report lookups ($25/call), mapping services, payment processors

  • Third-Party Services: Web scraping services, data enrichment APIs, document processing

  • MCP Servers: Model Context Protocol servers that extend agent capabilities

  • Human-in-the-Loop: Human review steps that cost time and money

Without tracking these costs, you only see part of the picture. An agent that appears cost-efficient based on token usage might actually be expensive when you factor in the $25 credit check it triggers for every customer interaction.

The Tool Registry solves this by letting you define any cost source—then meter usage against it automatically.


Use Cases

External API Cost Tracking

Your customer service agent pulls credit reports from Experian at $25 per lookup. Register the API as a tool and track every invocation:

  • Tool ID: experian-credit-check

  • Tool Type: REST API

  • Unit Price: $25.00 per request

Now every credit check is attributed to the agent, customer, and workflow that triggered it.

Human Time Allocation

Your compliance workflow requires human review for flagged transactions. Track the cost of human involvement:

  • Tool ID: compliance-review

  • Tool Type: Custom

  • Unit Price: $1.50 per minute (based on $90/hour reviewer cost)

Meter the duration of each review to understand the true cost of human-in-the-loop workflows.

MCP Server Costs

Your agents use MCP servers for GitHub operations, web searches, and database queries. Each server has different cost profiles:

  • Tool ID: mcp-github

  • Tool Type: MCP Server

  • Unit Price: $0.001 per operation

Track MCP server usage alongside token costs for complete visibility.

Tiered Pricing for Volume Discounts

Some services offer volume discounts. Configure tiered pricing to reflect actual costs:

  • First 1,000 requests: $0.10 each

  • 1,001–10,000 requests: $0.08 each

  • 10,001+ requests: $0.05 each

The Tool Registry automatically applies the correct tier based on usage volume.


Creating a Tool

Navigate to Tools in the sidebar to access the Tool Registry.

Required Fields

Field
Description
Example

Tool ID

Unique identifier (letters, numbers, hyphens, underscores)

experian-credit-check

Name

Human-readable display name

Experian Credit Check API

Tool Type

Category of the tool

REST API

Tool Types

Type
Use For

SDK

SDK-based integrations

MCP Server

Model Context Protocol servers

AI Service

AI services beyond LLM completions

REST API

External REST APIs

Local Function

Local code functions with associated costs

Custom

Any other cost source

Optional Fields

Field
Description

Description

Detailed explanation of the tool's purpose

Provider

Vendor or service provider name

Enabled

Toggle to activate/deactivate metering


Configuring Pricing

Each tool can have one or more pricing elements. This flexibility handles complex pricing models where a single tool call might incur multiple types of charges.

Flat Rate Pricing

For tools with simple per-call pricing:

  1. Click Add Element

  2. Enter a name (e.g., "requests")

  3. Set the Unit Price

  4. Choose an Aggregation Type:

    • Sum: Add all values together

    • Count: Count occurrences

    • Average: Calculate mean

    • Maximum: Highest value

    • Distinct: Unique values only

Volume-Based Tiered Pricing

For tools with volume discounts:

  1. Click Add Element

  2. Click Add Tier to define pricing tiers

  3. For each tier, specify:

    • Up To: Maximum quantity for this tier (leave blank for unlimited)

    • Unit Price: Price per unit within this tier

Example: Web Scraping Service

Tier
Up To
Unit Price

1

100

$0.05

2

1,000

$0.03

3

$0.01

Multi-Currency Support

Select your preferred currency:

  • USD ($)

  • EUR (€)

  • GBP (£)


Metering Tool Events

Once tools are registered, meter usage via the Tool Event API.

API Endpoint

Required Fields

Field
Description

toolId

The tool's unique identifier

timestamp

ISO 8601 timestamp of the event

Optional Fields

Field
Description

operation

Specific operation performed (e.g., "scrape", "lookup")

durationMs

Duration in milliseconds

success

Whether the call succeeded

errorMessage

Error details if failed

costUsd

Direct cost override in USD

agent

Agent that triggered the call

organizationId

Organization identifier for multi-tenant tracking

subscriberCredential

Subscriber or customer credential for billing attribution

product

Product or application name

workflowId

Workflow for multi-step tracking

traceId

Distributed tracing correlation

usageMetadata

Additional key-value data

Example: Credit Check API Call

Example: Human Review Time

Example: Failed Tool Call

For complete API details, see the Tool Event API referencearrow-up-right in our Platform API Documentation.


Viewing Tool Costs

Tool costs appear alongside token costs in your analytics:

  • Provider Dashboard: See tool costs aggregated with AI provider costs

  • Trace Analytics: View tool calls within individual traces

  • Cost & Performance Alerts: Set alerts on tool-based metrics

circle-info

Tool costs are attributed using the same dimensions as AI completions—organization, agent, product, subscriber—enabling unified cost analysis across all your AI infrastructure.


Best Practices

Use Descriptive Tool IDs

Choose tool IDs that clearly identify the service and operation:

  • Good: experian-credit-check, google-maps-geocode, slack-send-message

  • Avoid: api1, tool, external

Track Both Success and Failure

Meter failed tool calls too—they often still incur costs. Use the success and errorMessage fields to distinguish outcomes while maintaining cost visibility.

Include Attribution Metadata

Always include agent, organizationId, subscriberCredential, and traceId when available. This enables:

  • Cost breakdown by agent

  • Organization and subscriber-level billing

  • End-to-end trace analysis

Start with High-Cost Tools

Prioritize registering tools with significant per-call costs. A $25 credit check matters more than a $0.001 API call for initial ROI analysis.

Review Tool Costs Regularly

Use the Tool Registry alongside Budget Monitoring to set spending limits and receive alerts when tool costs exceed expectations.


Summary

The Tool Registry transforms Revenium from an AI token tracker into a complete cost attribution platform. By capturing every cost your agents incur—API calls, third-party services, human time—you can calculate true ROI and make informed decisions about your AI investments.

Register your high-value tools, meter their usage, and see the complete picture of what your AI solutions actually cost.

Last updated

Was this helpful?