Skip to main content
Glama

create_summary_table

Create a grouped summary or pivot view of a table by chosen columns, adding a count column and enabling later aggregate formulas.

Instructions

Create a summary (pivot/grouped) view of a table. Groups rows by the specified columns and automatically adds a count column. Additional aggregate formulas can be added after creation.

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": {
      "table_id": "<table_id>",
      "group_by": "<group_by>"
    },
    "name": "create_summary_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoWidget title
doc_idNoDocument ID
group_byYesColumn names to group by
table_idYesSource table to summarize
page_nameNoAdd to an existing page (by name). Creates a new page if omitted.
chart_typeNoChart type if widget_type is chart (bar, line, pie, etc.)
widget_typeNoWidget type for the summary viewgrid

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that a count column is added automatically and that aggregates come later, but it omits key behavioral facts for a creation tool: whether the source table is modified, what permissions or document context are required, and what the resulting object looks like.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action and followed by the grouping mechanism and the follow-up workflow. No filler or repetition.

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 7-parameter creation tool with no annotations and no output schema, the description covers the core grouping behavior but leaves the widget/chart options, page placement, and return value unexplained. Adequate for the main path but incomplete for the optional parameters.

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 the baseline is 3. The description reinforces group_by's effect and the auto count column, but adds nothing about widget_type, chart_type, page_name, or doc_id beyond what the schema already documents.

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?

States a specific verb and resource — 'Create a summary (pivot/grouped) view of a table' — and clarifies the mechanism (grouping by columns plus an automatic count column). The word 'view' distinguishes it from raw table creation siblings like create_tables, though no sibling is named explicitly.

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?

Usage is implied rather than stated: the phrase 'Additional aggregate formulas can be added after creation' suggests a two-step workflow (create the summary, then add aggregates), but there is no explicit when-to-use or when-not-to-use guidance versus create_tables or run_sql.

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