Skip to main content
Glama

Set Micro spending cap

micro_spending_cap_set
DestructiveIdempotent

Set a monthly spending cap and warning threshold to control usage costs. Optionally enforce a hard stop when the cap is reached, preventing further requests.

Instructions

Replace the account monthly usage cap and warning threshold. A hard cap may stop requests when exhausted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmYesExplicit confirmation to replace the current account spending-cap policy
hardStopNo
monthlyCentsYes
warningPercentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
jsonNo
stderrYes
stdoutYes
commandYes
exitCodeYes
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructive and idempotent, so the description adds value by stating that the current policy is replaced and that a hard cap may stop requests when exhausted. No contradiction with annotations.

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?

Two concise sentences, front-loaded with the main action, and no filler. Each clause contributes meaningful information.

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?

For a 4-parameter setter with an output schema and destructive/idempotent annotations, the description provides the essential semantics and behavioral consequence. The remaining gaps around hardStop=false and warningPercent semantics are minor given the schema constraints.

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?

With only 25% schema description coverage, the description compensates by mapping monthlyCents to the monthly usage cap, warningPercent to the warning threshold, and 'hard cap' to hardStop behavior. It could be clearer about hardStop=false meaning warn-only and the exact relationship between warningPercent and monthlyCents, but the core semantics are present.

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?

Uses a specific verb, 'Replace', nad names the resource: 'account monthly usage cap and warning threshold'. This clearly identifies the tool as a setter and distinguished it from micro_spending_cap_delete without reading schemas.

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

Usage Guidelines3/5

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

The use case is implied: use this vhen setting or replacing an existing cap/threshold, while the sibling delete tool would be used for removal. However, it does not explicitly state when not to use it or mention any prerequisites such as billing status.

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

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/microdotdo/micro-mcp'

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