Skip to main content
Glama

try_formula

Read-only

Try a formula on the newest issues of a project before saving it as a formula field: returns each issue's result, or the mistake in the formula. FORMULA language: fields by name in curly braces {Price}; numbers, "text", true/false; + - * / % (date + days, date - date = days), & joins text; = != < <= > >=; and, or, not; functions if(c,a,b), ifs(c1,v1,...,else), empty(x), round(x,n), floor, ceil, abs, min, max, sum, concat, length, lower, upper, contains(text,part), text(x), number(x), today(), date("YYYY-MM-DD") or date(y,m,d), days_between(a,b) (= b - a in days), add_days(d,n), year, month, day, convert(amount, "UAH", "USD", date?) and rate("USD", date?) by the National Bank of Ukraine rate of that day; a payments field alone = what was received, expected(p), payments_total(p), last_payment(p), next_payment(p); issue properties title, status, status_kind, is_done, is_closed, priority, assignee, due_date, start_date, created, updated, labels, client, milestone. Empty numbers count as 0 in arithmetic. Example: if({Paid} >= {Price}, "Paid", if({Pay by} < today(), "Overdue", "Waiting")).

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": {
      "project": "<project>",
      "formula": "<formula>"
    },
    "name": "try_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNothe name of the formula field being edited, if any (it may not use itself)
formulaYesformula over the issue's fields, e.g. "{Price} * {Hours}"
projectYesproject key or id, e.g. "WEB"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / formula / description
      Added value: +"formula over the issue's fields, e.g. \"{Price} * {Hours}\""
    • addedInput schema / properties / project / description
      Added value: +"project key or id, e.g. \"WEB\""
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds that the operation is scoped to the 'newest issues' and that it returns either each issue's result or the formula mistake โ€” an error-reporting contract not visible in the annotation. It does not say how many issues are sampled or the shape of the result set, which is the remaining gap.

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 purpose is front-loaded in the first sentence, but the remainder is a single dense run-on enumerating the whole language reference, which is hard to scan and would read better as structured sections. The content largely earns its place for a formula tool, but the presentation is a wall of text.

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 tool with no output schema, the description does explain what comes back (per-issue results or the formula error), and the language spec removes most ambiguity about the required formula parameter. The main omission is how many 'newest issues' are evaluated and the structure of the returned result set.

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 baseline is 3, but the description goes well beyond the schema's one-line example by documenting the entire formula grammar, operators, function catalogue, and issue property names. It also clarifies runtime semantics ('Empty numbers count as 0 in arithmetic') that the schema cannot express. It adds little for the project/name params, keeping it from a 5.

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?

States a specific verb and resource ('Try a formula on the newest issues of a project') plus its purpose ('before saving it as a formula field'), which distinguishes it from the field-creation sibling without naming it. An agent can tell this is a dry-run/evaluation tool, not a persistence tool.

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?

The phrase 'before saving it as a formula field' clearly signals the intended workflow (validate a formula prior to creating/updating a formula field), and 'it may not use itself' in the name param implies an edit scenario. It stops short of naming the alternative tool or stating when not to use it, so it is clear context without explicit exclusions.

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.