Skip to main content
Glama

balance_alert_lead_time_set

Warn N days before an ad account runs out of money, for one client or all clients. Use it for requests like 'warn me two days before the balance runs out'. Without client and scope it returns a question listing the clients; ask the user which one.

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": "balance_alert_lead_time_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays of balance left when the warning fires, 0.5 to 30.
resetNotrue removes the setting and restores the default thresholds.
scopeNoclient (one client) or all (every client of the workspace).
client_idNo
client_nameNoClient name or part of it, when scope is client.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the mutation/safety profile is already structured; the description's real addition is the non-obvious behavior that omitting client and scope returns a clarifying question listing clients rather than failing. It does not say what happens to a previously configured lead time when a new one is set, or whether changes are workspace-wide, which is the remaining behavioral gap.

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?

Three short sentences, front-loaded with the core effect before the example phrasing and the fallback behavior. No sentence repeats the schema or the title.

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 five-parameter mutation with no output schema and no required parameters, the definition covers purpose, example usage, and the zero-argument fallback path, which is enough for an agent to call it correctly. Missing are permission/workspace prerequisites and the conflict rule between client_id and client_name.

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?

Schema coverage is 80%, so most parameters (days range, reset, scope enum, client_name) are already documented in structured data. The description reinforces the days and client/scope semantics and explains the consequence of leaving both client fields empty, but adds nothing for the undocumented client_id or for precedence when both client_id and client_name are supplied.

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

Purpose4/5

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

The description gives a concrete verb and effect ("Warn N days before an ad account runs out of money") plus the scope it operates on (one client or all clients), which is far more informative than the name alone. It never explicitly contrasts itself with the sibling balance_alert_lead_time_get, so an agent must infer the write-vs-read split from the names.

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 supplies a natural-language request pattern ("warn me two days before the balance runs out") that tells the agent which user phrasings map here, and it describes the disambiguation path when client/scope are absent. There is no explicit when-not-to-use statement or named alternative tool, which keeps 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.