Skip to main content
Glama

variance_report

Generate budget-vs-actual reports with revenue bridges, flagged lines, first-pass commentary, and data checks so you can decide if a period is ready to send.

Instructions

Budget vs actual by line with a volume/rate revenue bridge, lines flagged for review, first-pass commentary, and the data checks for the period.

A line is flagged when |variance| is at least threshold_pct of budget AND at least threshold_abs dollars. The report's status tells you whether it can go out.

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": {
      "level": "<level>",
      "period": "<period>"
    },
    "name": "variance_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
ytdNo
nameNo
levelYes
periodYes
threshold_absNo
threshold_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description must carry the full behavioral burden. It does usefully disclose the exact flagging rule (|variance| >= threshold_pct of budget AND >= threshold_abs dollars) and that status indicates publishability, but it never states whether the tool is read-only or persists state, how expensive the call is, or what the commentary/status fields actually contain. Significant gaps remain for an unannotated tool.

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 output contents are front-loaded in the first sentence and the flagging rule follows as needed detail. It is compact and free of filler, though the second sentence about status is slightly abrupt and the flag rule could be tidier to parse.

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

Completeness3/5

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

With no output schema, the description partly compensates by enumerating the report sections an agent will receive. However, for a six-parameter, unannotated tool it omits what level values mean, the period format, and the effect of ytd and name, leaving an agent guessing at required-parameter semantics.

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 description coverage is 0% across six parameters, and the description only adds meaning for two of them by explaining how threshold_pct and threshold_abs combine, which is genuinely useful. The meaning of level (division/region/consolidated), period format, ytd, and name is left entirely undocumented in both schema and description.

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 names the concrete deliverable: budget vs actual by line, a volume/rate revenue bridge, flagged lines, first-pass commentary, and period data checks. That is a specific verb-plus-resource picture an agent can act on, but it never contrasts itself with siblings like get_actuals, get_budget, or run_checks, so the boundary is left to inference.

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

Usage Guidelines2/5

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

There is no explicit statement of when to call this versus the read-level siblings (get_actuals, get_budget, run_checks) or the review siblings (log_review). The only contextual cue is the closing line about the report's status, which implies a pre-publication use case but does not state it as guidance or note any exclusions.

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