Skip to main content
Glama

list_saved_formulas

Read-only

List the project's saved formulas (reusable insight formulas with their own metrics), each with how many saved queries use it, or fetch one by formulaId with the queries that use it. To use one in a chart, add a formula metric with data.savedFormulaId; the query then always computes the saved formula's current definition. Load the insight-queries skill (load_skill("insight-queries")) first.

Input Schema

NameRequiredDescriptionDefault
searchNoFilter and rank by name, description or expression.
formulaIdNoWhen set, fetch this one saved formula, with the queries that use it.
projectIdYesThe project (application) id to scope this call to. Use list_projects to discover valid ids.
environmentYesThe environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: listing mode returns per-formula usage counts, detail mode returns the queries that use it, and a chart-based formula metric always resolves to the formula's current definition. Return shape itself is not described, but the semantics an agent needs are.

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 dual-mode behavior is front-loaded in the first sentence and the prerequisite is placed last, which is the right order. It is dense but nearly every clause carries information; the data.savedFormulaId sentence is slightly tangential to calling this tool, keeping it from a 5.

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 read-only, four-parameter listing/detail tool with no output schema, the description covers both modes, the prerequisite skill, and the conceptual meaning of a saved formula. What an agent needs to call it correctly is present; only result-shape and pagination behavior are unaddressed.

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 100%, so formulaId, search, projectId and environment are already documented in the schema. The description reinforces formulaId's dual behavior but says nothing about the search parameter's matching/ranking or the environment scoping. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description gives a specific verb and resource ("List the project's saved formulas") and parenthetically defines what a saved formula is, then states the second mode ("fetch one by formulaId with the queries that use it"). An agent can distinguish this from create_saved_formula or update_saved_formula without opening any schema.

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 clearly states the condition that selects each mode: omit formulaId to list, set formulaId to fetch one with its queries. It also gives a usage prerequisite ("Load the insight-queries skill first") and explains the downstream usage path via data.savedFormulaId. It does not name sibling alternatives such as list_queries, so it stops short of 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.

Resources