Skip to main content
Glama
metrxbots

Metrx MCP Server

by metrxbots

Set Budget

metrx_set_budget
Idempotent

Create or update a budget for an agent or organization. Define period (daily/monthly), dollar limit, warning threshold, and enforcement mode (alert_only, soft_block, hard_block) to control spending.

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?

Annotations indicate idempotentHint=true, so the tool is safe to retry. The description adds behavioral context about enforcement modes and dollar limits, which goes beyond annotations and helps the agent understand the tool's behavior.

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 consists of three concise sentences: purpose, enforcement modes, and exclusion guidance. No unnecessary words, and critical information is front-loaded.

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

Completeness4/5

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

The description explains the overall functionality, enforcement modes, and provides an exclusion for a sibling tool. It could mention the return value, but given the tool's nature (setter), it is reasonably complete.

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

Parameters3/5

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

Input schema provides 100% description coverage for all 5 parameters. The description reinforces the meaning of limit_dollars and enforcement modes but does not add significant new information 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 that the tool creates or updates a budget for an agent or the entire organization, using specific verbs and resource. It also lists the enforcement modes, distinguishing it from sibling tool update_budget_mode.

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

Usage Guidelines5/5

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

The description explicitly states when not to use the tool ('Do NOT use just to change enforcement mode — use update_budget_mode for that'), providing clear guidance on alternatives and appropriate usage.

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