Skip to main content
Glama

Append rows

append_rows

Add rows to the end of the visual's data and drop the oldest past keepLast; the visual's settings are unchanged. Adds rows to a line, area, bar, bar-horizontal, scatter, table or map visual; its settings (xKey, series, columns) are unchanged, and numeric strings are coerced as on push. On a map the rows merge by region: a row whose code matches an existing one replaces it, the others are added, and keepLast is ignored. A kpi, gauge, pie, funnel or markdown visual has no row list: replace its document with PUT /v1/visuals/{id}/data instead. Over HTTP keepLast may also go in the query string (?keepLast=7), and the body may be text/csv: the header row is the keys the visual's rows have. Needs an API key: with none yet, call signup first.

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": {
      "visualId": "<visualId>",
      "rows": "<rows>"
    },
    "name": "append_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesAdded after the rows the visual holds, in order.
keepLastNoKeep only the newest keepLast rows after the append, dropping the oldest. The type's cap applies in any case: line 500, area 500, bar 500, bar-horizontal 500, scatter 500, table 200, map 4000 rows.
visualIdYesThe visual's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses truncation via keepLast, that existing settings are untouched, numeric-string coercion, map merge-by-region (matching codes replace existing rows), and the HTTP/CSV transport variants. Minor tension: keepLast silently drops oldest rows while destructiveHint=false, though that hint normally covers resource deletion; the description should state plainly that retained rows are lost.

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?

Front-loaded and information-dense, but the sentence 'the visual's settings are unchanged' is repeated verbatim in meaning twice, and the remaining content is packed into long run-on clauses joined by semicolons and commas. Trimming the duplication and splitting the transport notes into their own sentences would improve scannability.

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?

For a three-parameter mutation with no output schema, everything an agent needs is present: applicable visual types, per-type row caps, merge semantics on maps, auth requirement, and the alternative call for document-based types. Nothing material is left to inference.

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 already 100% (rows, keepLast caps, visualId), so baseline is 3; the description adds real value by documenting that keepLast may also be supplied as a query string and that the body may be text/csv with the header row as keys. It does not explain keepLast's interaction with map (ignored) — actually it does, which strengthens the score.

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 ('Add rows to the end of the visual's data') plus the truncation side effect, and enumerates exactly which visual types it applies to. It also names the sibling behavior it is not (replacing a document via PUT /v1/visuals/{id}/data for kpi/gauge/pie/funnel/markdown), so an agent can route without opening sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use (line, area, bar, bar-horizontal, scatter, table, map) and when-not-to-use (kpi, gauge, pie, funnel, markdown, with the replacement call named). It also states the auth prerequisite: with no API key yet, call signup first.

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