Skip to main content
Glama

Meridian budget optimize

meridian.budget.optimize
Read-onlyIdempotent

Optimizes total budget allocation across channels using a fitted MMM. Provides read-only per-channel spend recommendations, optionally running posterior simulations to guide decisions.

Instructions

Optimal per-channel allocation for total_budget under a fitted MMM. Read-only (recommends only); may run posterior simulations.

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": {
      "model_id": "<model_id>"
    },
    "name": "meridian.budget.optimize"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_idYes
total_budgetNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the description earns credit for adding genuinely new context: outputs are recommendations only and the call 'may run posterior simulations', which flags possible latency/compute cost. It stops short of saying whether simulations are optional, how long they take, or whether results are stochastic, so not a 5.

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 short sentences, front-loaded with the core purpose and followed by the behavioral caveat. No filler, padding, or restatement of the tool name.

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?

An output schema exists, so return values need not be explained. But for a tool whose required parameter is a model reference, the definition never states the model must be fitted or how model_id is obtained, nor the units of total_budget – gaps an agent would hit on invocation.

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 description coverage is 0% and the description never mentions model_id at all – it does not say the id must reference an already-fitted model or how to obtain one. For total_budget it only restates the parameter name in context, without units, currency convention, or whether the 100000 default is meaningful, so it barely compensates for the coverage gap.

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 artifact ('optimal per-channel allocation for total_budget under a fitted MMM'), which is far more specific than the name/title alone and separates it from meridian.fit and meridian.roi.by_channel. It lacks an explicit verb ('compute'/'recommend'), but the resource and scope are unambiguous.

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?

'Under a fitted MMM' implies a precondition (a model must already be fit), and 'recommends only' implies the output is not applied. However, there is no explicit when-to-use versus meridian.roi.by_channel or meridian.model.summary, and no statement that it should not be used for pre-fit planning.

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

Deploy Server

Other Tools