Skip to main content
Glama

ai_formula

Read-only

ai_formula — Plain English to a spreadsheet formula for Excel 365 or Google Sheets (app=excel|sheets). Returns the formula, explanation, assumptions, functions used, and offline checks: balanced parentheses and Excel-vs-Sheets compatibility warnings. Optional columns= to describe the sheet layout. Price: $0.006 USDC (Base, via x402).

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": {
      "task": "<task>"
    },
    "name": "ai_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYessum column C where column A matches the region in cell E1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the description's added value is the promised return payload (formula, explanation, assumptions, functions used, compatibility warnings) plus the per-call price and payment rail. Since no output schema exists, this return-shape disclosure is genuinely useful; only call-latency or failure-mode behavior is missing.

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?

Front-loaded with purpose before mechanics, and every clause carries information an agent needs (platform choice, return fields, price). It is dense but not padded; the parenthetical platform list and check description are the weakest links.

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 does well to enumerate return fields, but the invented app/columns parameters leave the actual calling contract inconsistent with the schema. An agent is left unsure whether platform selection is a real argument or just inference from the task text.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has a single task parameter at 100% coverage with an example, so the baseline would be 3, but the description advertises 'app=excel|sheets' and 'columns=' as usable inputs that do not exist in the input schema. That mismatch actively misleads an agent into passing unsupported arguments, offsetting any gain from the plain-English task framing.

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 transformation (plain English → spreadsheet formula) with the target platforms named explicitly (Excel 365, Google Sheets). An agent can distinguish this from sibling tools like ai_classify or ai_cron without opening the schema.

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?

Implies the use case clearly (converting a described spreadsheet task into a formula) and notes the optional sheet-layout hint, but gives no explicit when-not guidance or named alternatives for related needs such as explaining or debugging an existing formula.

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