Skip to main content
Glama

util_csv_join

Read-only

CSV join (inner/left/right/full/anti) — Join two CSV files on a key column like a SQL join and get the merged table back as JSON rows plus a ready-to-save CSV. how=inner (default), left, right, full, or anti (rows of a with no match in b). on=column when both files share the name, or on=leftColumn:rightColumn when they differ; omitted, it picks a shared id-like column. Keys are trimmed and numbers match numerically (007 = 7); ignoreCase=true for case-insensitive keys. Clashing column names from b get a _b suffix. Returns match stats (match rate, unmatched keys on each side with samples, duplicate keys in b) so you can see data-quality problems. limit= output rows (default 5,000, max 20,000); format=csv returns only the CSV. Offline, nothing stored. Price: $0.003 USDC (Base, via x402).

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "util_csv_join"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYese.g. id,name 1,Acme Corp 2,Globex 3,Initech
bYese.g. id,total 1,1200 3,450 9,80

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare it as a non-destructive read; the description adds substantive behavior well beyond them — match statistics (match rate, unmatched samples per side, duplicate keys in b), the _b suffix collision rule, key trimming and numeric equivalence (007 = 7), case-insensitivity, the 5,000 default / 20,000 max row cap, offline processing with nothing stored, and the $0.003 USDC x402 price.

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?

Information density is high and the core operation plus modes come first, but it is delivered as one dense run-on block with parenthetical asides, which makes scanning for parameters like limit or format slightly harder than a short structured list would be. Little is genuinely wasted, though.

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?

With no output schema, the description still discloses the return shape (merged JSON rows plus a ready-to-save CSV, or CSV-only when format=csv) and the accompanying match statistics, plus privacy and pricing details an agent needs before calling a networked paid tool. 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.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema documents only a and b (with examples) and omits how, on, ignoreCase, limit, and format entirely; the description compensates by defining each one's accepted values, default, syntax (colon-separated keys), and matching semantics. This is meaning the schema does not supply.

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 ('Join two CSV files on a key column like a SQL join') and immediately enumerates the five join modes, which distinguishes it from siblings like util_csv_diff or util_csv_profile that also take two CSV inputs.

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?

Gives clear operating context: how= defaults to inner, on= supports both shared-name and leftColumn:rightColumn forms, and when omitted it auto-selects a shared id-like column. Defaults for limit and format are stated. It does not explicitly say when to prefer this over a sibling tool, so it falls short of a 5.

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