Skip to main content
Glama

Get Spend Notices

get_spend_notices
Read-only

Get where your organization's spending stands against its plan.

Spans over the plan's included allowance are billed as overage, and a paying organization is told as it climbs: at 100%, 200%, 300%, 500%, 1000% and every doubling after. This returns the current billing period's latest spend notice for each organization you are an admin of: the threshold crossed, and as of when it was crossed the usage against the allowance, the overage and the projected cost at period end, with what the notice suggested then (send less, upgrade, or settle an open invoice) and the console link. A notice's figures and suggestions are a snapshot from that moment, not current spending or the current billing state; no notice does not mean usage is under the allowance (trials and internal organizations get none, and a new threshold takes a few minutes to be recorded). Earlier notices of the period are listed by threshold. Use it before raising span volume, or to decide whether to sample or drop spans.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_spend_notices"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgNoOrganization id or name. Omit to read every organization you are an admin of.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark it read-only and closed-world, and the description still adds substantial context beyond them: the fixed threshold schedule, that figures and suggestions are a snapshot from the moment of crossing rather than current spend, that trials and internal organizations never receive notices, and that new thresholds take a few minutes to record. That directly prevents the most likely agent misinterpretation.

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?

Purpose is front-loaded in the first sentence and the detail that follows is largely load-bearing (thresholds, snapshot caveat, absence caveat). It is verbose — the enumeration of notice contents and the quadruple caveat could be tightened — but no sentence is pure filler.

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

Completeness5/5

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

With an output schema present, the description needn't enumerate return fields, and it doesn't waste space doing so in schema terms; instead it explains the semantics an agent must know about those values (staleness, snapshot nature, per-org scoping). Nothing needed to call or interpret this tool correctly is missing.

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 100%, so the single org parameter is already documented, yet the description reinforces the semantics by framing the result as per-organization for organizations the caller administers and implying the omitted case returns all of them. It adds scope meaning rather than syntax, which is the right contribution here.

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: it returns the current billing period's latest spend notice per organization the caller administers, including threshold crossed, usage vs allowance, overage, projected cost, suggestion and console link. This is far more than a restatement of the title and lets an agent distinguish it from span/trace listing tools.

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 gives concrete when-to-use guidance: 'Use it before raising span volume, or to decide whether to sample or drop spans.' It also warns against misreading absence ('no notice does not mean usage is under the allowance'). It stops short of naming any alternative tool or explicitly stating when a different tool fits better.

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.