Skip to main content

Usage Tools

costhawk_get_usage_summary

Get a summary of your AI API usage and costs over a time period. Parameters:
ParameterTypeRequiredDescription
periodstringNoPreset: last_24h, today, yesterday, last_7d, last_30d
startDatestringNoStart date (ISO 8601)
endDatestringNoEnd date (ISO 8601)
formatstringNomarkdown (default) or json
Example:
“Show me my API usage for the last 7 days”

costhawk_get_usage_by_tag

Break down costs by metadata tags like project, environment, or team. Parameters:
ParameterTypeRequiredDescription
tagKeystringYesTag to group by (e.g., project, environment)
startDatestringNoStart date (ISO 8601)
endDatestringNoEnd date (ISO 8601)
limitnumberNoMax results (1-100, default 20)
Example:
“Show me costs broken down by project tag”

Savings Tools

costhawk_get_savings

Show savings vs retail pricing for flat-rate subscriptions like Claude Max or OpenAI Pro. Parameters:
ParameterTypeRequiredDescription
periodstringNodaily, weekly, or monthly
datestringNoAnchor date (ISO 8601)
Example:
“Am I saving money with Claude Max this month?“

costhawk_list_subscriptions

List your active flat-rate subscriptions. Example:
“What subscriptions do I have configured?“

costhawk_get_savings_breakdown

Get per-model usage and retail cost breakdown. Parameters:
ParameterTypeRequiredDescription
periodstringNodaily, weekly, or monthly
datestringNoAnchor date (ISO 8601)
Example:
“Break down my savings by model”

Monitoring Tools

costhawk_detect_anomalies

Find cost spikes and unusual activity patterns. Example:
“Are there any cost anomalies I should know about?“

costhawk_list_alerts

View recent alerts including budget warnings, cost spikes, and anomaly notifications. Parameters:
ParameterTypeRequiredDescription
limitnumberNoMax alerts (1-100, default 20)
unreadOnlybooleanNoShow only unread alerts
Example:
“Show me my unread alerts”

Webhook Tools

costhawk_list_webhooks

List all configured webhooks for receiving cost alerts. Example:
“What webhooks do I have set up?“

costhawk_create_webhook

Create a new webhook to receive notifications. Parameters:
ParameterTypeRequiredDescription
namestringYesWebhook name
urlstringYesWebhook URL
typestringYesslack, discord, teams, pagerduty, or custom
eventsarrayYesEvents: cost_spike, budget_alert, anomaly, etc.
Example:
“Create a Slack webhook for budget alerts at https://hooks.slack.com/…”

Pricing Tools

costhawk_get_model_pricing

Look up current pricing for AI models. Parameters:
ParameterTypeRequiredDescription
providerstringNoFilter by provider: openai, anthropic, google, etc.
Example:
“What’s the current pricing for Claude Opus?”