Skip to main content
Glama

ohmyho.st

Set or clear the owner's project budget

project_budget_set
DestructiveIdempotent

Set an owner's optional monthly project budget in microcredits (1000000 = one credit). continue is the default and uses the org pool after the threshold; stop takes the live app offline in Dev and Prod with HTTP 402 (Project execution paused) once measured usage plus reservations reach the budget, so explain that before setting it. null clears the budget and requires continue. Changing it never resets usage or adds credits. Replay the same key after uncertainty; read the budget again for current usage.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "idempotency_key": "<idempotency_key>",
      "amount_micros": "<amount_micros>",
      "mode": "<mode>"
    },
    "name": "project_budget_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
project_idYesProject identifier.
amount_microsYesThe monthly budget, at most 9007199254740991 microcredits (about 9 billion credits); null removes it.
idempotency_keyYesIdentifies one mutation and its canonical request payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description adds substantial context beyond them: continue is the default and draws on the org pool past the threshold, stop takes the live app offline in Dev and Prod with HTTP 402, and the threshold counts measured usage plus reservations. It also discloses that changes never reset usage or add credits, that null requires continue, and how to recover from uncertainty by replaying the key.

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

Conciseness4/5

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

The core action and the microcredit unit are front-loaded, and nearly every sentence carries distinct information. Some sentences are dense and run together (mode effects, null behavior, and recovery advice in one block), which slightly hurts scanability.

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 destructive, idempotent mutation with no output schema, the description covers the consequences of each mode, the null case, and recovery from ambiguous outcomes. It omits what the call returns and any permission requirements, which leaves a minor gap but not one that would cause a misinvocation.

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 coverage is 75%, so the schema already documents parameters, but the description adds a cross-parameter constraint not present in the schema: null clears the budget and requires mode=continue. It also reinforces the microcredit unit. It does not address idempotency_key expectations beyond the replay note, leaving a small gap.

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 states a specific verb and resource ("Set an owner's optional monthly project budget in microcredits") and also covers the clearing case via null. It implicitly routes reads to the sibling project_budget_get by saying "read the budget again for current usage," so an agent can separate the mutation from the read.

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?

It explains what each mode does and cautions to explain the HTTP 402 pause before choosing stop, which is real when-to-use guidance. It also names project_budget_get as the follow-up read path. It doesn't state prerequisites or explicitly compare against the getter as an alternative, keeping it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.