Skip to main content
Glama

set_formula

Idempotent

Change a calculated node's or a check's formula, or a table's column: a stored column given a formula keeps every value it holds as that entry's own and works out the entries that hold none. A column of words takes a formula answering a word — COALESCE(t.amount_currency, t.legs_currency, "sgd"), IF(t.amount > 0, "in", "out") — and its list is extended to every word the formula can give. The current formula is recorded as what the op replaces. For an input or a constant, use set_kind to make it calculated first.

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": "<model>",
      "name": "<name>",
      "formula": "<formula>"
    },
    "name": "set_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
modelYesModel uid (`model_…`), from model_list.
agreedNoOnly to stop a check testing periods it fails in: the analyst's own words asking for it, quoted from their message. Never your own.
formulaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare a non-read-only, idempotent, non-destructive write, so the description's job is to add semantics, and it does: a stored column keeps existing values and computes only empty entries, and the prior formula is recorded as what the operation replaces. Word-column type coercion and list extension are also disclosed. Missing are failure behavior (unknown name, formula/type mismatch) and permission requirements.

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

Conciseness3/5

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

The action is front-loaded in the first clause, which is good, but the sentence then runs long with embedded jargon and parenthetical examples. Most content earns its place, yet the density and missing paragraph breaks make it harder to scan than necessary.

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?

For a mutation tool with no output schema, the definition covers the key side effects and the set_kind prerequisite, but it leaves the `name` addressing scheme unexplained and says nothing about error responses or what the caller gets back. An agent could invoke it, but not confidently on an unfamiliar model structure.

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 50%: `model` and `agreed` are documented in the schema, while `name` and `formula` are bare strings. The description adds real meaning for `formula` through examples and the rule that a word column needs a formula answering a word. However, `name` is never explained — whether it is a node name, column path, or check identifier — so the description only partly 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 opens with a specific verb and resource: change the formula of a calculated node, a check, or a table column. It also names set_kind as the tool to use when the target is an input or constant, which lets an agent separate this tool from that sibling. It falls short of 5 only because the first sentence is heavily loaded with domain jargon that obscures rather than sharpens the scope.

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 an explicit routing rule for one alternative: make an input or constant calculated with set_kind before setting a formula. It also scopes the `agreed` parameter to stopping a check testing periods it fails in. There is no guidance on when to prefer this over value-entering siblings such as set_values or entries_set, which leaves part of the selection decision to inference.

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.

Resources