Skip to main content
Glama

Import Glossary CSV

import_glossary
Destructive

Import glossary terms from CSV text. merge (default) updates matching terms and adds new ones; replace swaps the whole glossary. Reports how many were added, updated, cleared and dropped, plus any row-level problems.

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": {
      "csv": "<csv>"
    },
    "name": "import_glossary"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYesRaw CSV text with a header row; `term` is required
modeNo

Output Schema

NameRequiredDescriptionDefault
modeNo
addedNo
totalNo
issuesNo
clearedNo
droppedNo
updatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds real context: it spells out that `replace` swaps the entire glossary, which is exactly what the destructive flag means in practice. It also previews the outcome categories (added, updated, cleared, dropped) and warns that row-level problems are reported, giving the agent a sense of partial-failure behavior.

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 with the action front-loaded, mode semantics in the middle, and outcome reporting last. Nothing is padded and no sentence repeats what the schema or annotations already state.

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?

With an output schema present, the description needn't detail return values, and it appropriately just summarizes the report categories. For a destructive two-parameter import it covers the essential decision (merge vs replace) and failure signaling; only edge cases like partial-write rollback or size limits are absent.

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 only 50% — `mode` has an enum but no description — so the description must compensate, and it does by defining merge as the default with update-plus-add semantics and replace as a full swap. The `csv` parameter is documented in the schema as requiring a header row with `term`, so both parameters are now meaningfully covered.

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 opens with a specific verb and resource ("Import glossary terms from CSV text"), so the agent knows exactly what operation this performs. It is clearly distinct from get_glossary/set_glossary by virtue of the bulk CSV import framing, 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?

It gives strong guidance for choosing between the two modes — merge is the default and updates matching terms plus adds new ones, while replace swaps the whole glossary. However, it offers no guidance on when to use this tool rather than get_glossary or set_glossary, so tool-level routing is left 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