Skip to main content
Glama
metrxbots

Metrx MCP Server

by metrxbots

Set Budget

metrx_set_budget
Idempotent

Set a daily or monthly spending limit for an agent or organization, with configurable enforcement modes (alert, soft block, hard block) to control costs.

Instructions

Create or update a budget configuration for an agent or the entire organization. Budgets enforce spending limits with configurable enforcement modes: "alert_only" (notify but don't block), "soft_block" (block with override), or "hard_block" (strict enforcement). Specify limits in dollars. Do NOT use just to change enforcement mode — use update_budget_mode for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idNoAgent to set budget for. Omit for org-wide budget.
periodYesBudget period
limit_dollarsYesSpending limit in dollars (e.g., 100 for $100/month)
warning_pctNoPercentage of limit that triggers a warning (default: 80)
enforcement_modeNoHow to enforce the budget when exceededalert_only
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description explains the enforcement modes and the create/update behavior, adding context beyond annotations (readOnlyHint=false, idempotentHint=true). It does not contradict annotations. Minor gap: it does not explicitly state whether calling it overwrites all existing budget fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no wasted words. The core purpose is front-loaded, and every sentence serves a clear purpose (purpose + usage guidance).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description does not mention return values or side effects. It adequately covers input parameters and usage restrictions, but the lack of response information is a gap for a tool that modifies state.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%. The description adds value by explaining enforcement modes with examples, clarifying the agent_id omission for org-wide budgets, and giving a dollar format example, all beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates or updates a budget configuration for an agent or organization, using specific verbs and resource. It also distinguishes itself from the sibling 'update_budget_mode' by explicitly warning against using it solely for mode changes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when not to use the tool (just to change enforcement mode) and points to the correct alternative (update_budget_mode). However, it does not discuss when to use this tool over other budget-related siblings like get_budget_status.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metrxbots/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server