Skip to main content
Glama
logisky

logisheets-mcp

create_analysis_block

Add a totals row that auto-generates SUM formulas for numeric fields, tracks source row changes, and stays referenceable via BLOCKREF.

Instructions

Add a block that analyses another one — a totals row, sitting directly below the table it summarises.

It is an ordinary block that declares which block it analyses, so its result is addressable like any other: BLOCKREF("<name>", "<label>", "<field>"). That is the point of it being separate — a total you can only look at is much less useful than one you can reference.

What the engine does with the declaration: it GENERATES each field's formula from it, so renaming a field of the source rebuilds the total instead of breaking it, and the total tracks the source as rows are added. Do not write the formulas yourself.

By default every number field of the source gets a SUM and everything else is left blank; pass aggregates to choose. Removing the source removes this block with it.

Read it back with describe_block: the analysis reports analyzes, the source reports analyzed_by. Never sum an analysis block alongside its source — that counts the same numbers twice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoRef name for the new block. Defaults to "<source>_analysis".
labelNoWhat goes in the key column, and therefore the key the result is addressed by. Defaults to "TOTAL".
sourceYesRef name of the block to analyse.
aggregatesNoWhich source fields to aggregate and how. Omit to SUM every field the source declares as `number`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only provide readOnlyHint=false and destructiveHint=false, so the description carries the behavioral burden. It richly discloses that formulas are auto-generated, that renames rebuild the total, that rows are tracked, that default aggregates are SUM for number fields, that removing the source cascades removal, and that double-counting is a risk. This is far beyond the minimal annotation coverage.

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 description is front-loaded with the core purpose and stays on-topic, but it is somewhat lengthy. Every sentence contributes (formula generation, defaults, cascade deletion, describe_block hint, double-counting warning), yet the multiple paragraphs could be tightened without losing critical information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description explains how the result is addressed via BLOCKREF and how to inspect it via describe_block. It covers the behavioral essentials: generated formulas, tracking, defaults, and cascade removal. For a creation tool with four parameters, this is complete enough for correct 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?

Input schema coverage is 100%, so the baseline is 3. The description adds meaningful semantics: it explains the default aggregation behavior (SUM on number fields) and how the `aggregates` parameter overrides it, and clarifies the `source` relationship. It doesn't add detail for `name` and `label` beyond the schema, but the added value pushes it to 4.

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 opens with a specific verb and resource: 'Add a block that analyses another one — a totals row'. It distinguishes this from generic block creation by mentioning it sits below the table and that its result is addressable via BLOCKREF, which clearly separates it from siblings like create_block and create_pivot.

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 description gives clear context: use this to create a totals row, don't write formulas yourself, and read it back with describe_block. It also warns against summing it alongside its source. However, it never explicitly names alternatives (e.g., create_block, create_pivot) or states when NOT to use this tool, so it stops short of full exclusion guidance.

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