Skip to main content
Glama

upsert_rows

Update-or-add by the table's unique column (key: that column's name, e.g. "Email"): a row whose key value is already in the table has the cells you give set (others stay); the rest are added. The safe way to keep a registry in step without making duplicates. All or nothing, up to 500 a call.

Input Schema

NameRequiredDescriptionDefault
keyYesthe unique column's name
rowsYes
tableYesthe data table's id or name (list_data_tables)
workspaceNoWhich Caddie: leave it out for the user's personal one, or give a team workspace's name or id (list_workspaces). Use the same one you found the item in.

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?

With no annotations, the description carries the burden and does well: it discloses partial-update semantics ('others stay'), atomicity ('all or nothing'), and a hard batch limit ('up to 500 a call'). It omits what the call returns (counts of updated vs added), permission/auth requirements, and what happens if the key column contains duplicates.

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 sentences, no filler, and the core matching semantics are front-loaded before the safety framing and the batch limit. Every clause carries information an agent needs to call this correctly.

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 mutation tool with no annotations and no output schema, the description covers semantics, atomicity, and batch limits, which is the bulk of what matters. The remaining gap is return/error behavior and permission prerequisites, which nothing else in the structured fields supplies.

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 75%, so the schema already documents all four parameters; the description still adds value by giving a concrete key example ("Email") and implying the key column must be unique. It says nothing about the rows payload shape beyond the 500 cap, and table/workspace are left entirely to the schema.

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?

The description states a precise verb-and-resource with its exact semantics: 'update-or-add by the table's unique column', spelling out that matched rows get the given cells set while the rest are inserted. That distinguishes it in substance from add_rows/update_rows, though it never names those siblings, so an agent must infer the boundary rather than read it.

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 safe way to keep a registry in step without making duplicates' gives a clear usage context that selects this tool over a plain insert. It offers no explicit exclusions or named alternatives (e.g. 'use add_rows when you know every row is new'), leaving the negative case implicit.

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