Skip to main content
Glama

combine

Read-onlyIdempotent

Merge multiple files or sheets into one by appending rows—even with different column orders—or joining records on key columns.

Instructions

Merge many files into one: append/concatenate (even with different column orders) or join on keys.

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": {
      "sources": "<sources>"
    },
    "name": "combine"
  }
}

Input Schema

NameRequiredDescriptionDefault
onNoKey columns for join mode.
howNoJoin type.inner
modeNoappend = stack rows (columns matched by name); join = merge on keys.append
limitNoMax rows to return (default from server config, usually 100).
formatNojson = rows as arrays, records = list of objects, markdown = a table.json
outputNoSave the FULL result to this file (.xlsx/.csv/.parquet/.json/.md) instead of returning rows.
sourcesYes2+ files/sheets, e.g. ['jan.csv', 'feb.csv', 'q1.xlsx#March'].
output_sheetNoWhen output is an existing .xlsx: write into this sheet (replaced if it exists), keeping other sheets.
add_source_columnNoappend: add a _source column with the origin file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint and idempotent, so safety is covered. The description does add one genuinely useful behavioral detail the schema lacks: append tolerates differing column orders. However it says nothing about the limit/output behavior, and notably the schema's output and output_sheet parameters write files (replacing existing sheets), which sits uneasily with a readOnly annotation the description never qualifies.

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?

One front-loaded sentence that names the action, the resource, and both strategies with zero filler. Nothing is repeated and nothing needs trimming.

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 nine-parameter tool with three enums and no output schema, a single sentence covering the two core modes is thin. It leans entirely on the exhaustive schema, so an agent still has to open the schema to learn about the row limit, return formats, and file-writing behavior.

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 schema itself documents on, how, mode, limit, format, output, sources, and add_source_column. The description's only parameter-adjacent contribution is the column-order tolerance for append. Baseline 3 is appropriate when the schema does the heavy lifting.

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 gives a concrete verb and resource ("Merge many files into one") and names the two operating modes, append/concatenate vs join on keys. An agent immediately knows what the tool does. It just stops short of contrasting itself with plausible siblings such as batch or transform, which is what a 5 would require.

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?

The mode distinction ("append/concatenate ... or join on keys") implies when each path applies, but the choice is already documented in the schema's mode enum. There is no guidance on when to reach for combine rather than batch, transform, or aggregate, and no stated prerequisites for any mode.

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