Skip to main content
Glama

MiaoToolbox (妙用盒)

CSV ↔ JSON / Markdown 表格互转(妙用盒)

convert_table_format
Read-onlyIdempotent

RFC 4180 CSV、JSON 对象数组与 Markdown GFM 表格双向转换。为适配 MCP 上下文预算,仅处理有界小段结构化数据(输入 ≤ 8,000 字符且 ≤ 12,000 字节、≤ 200 行、≤ 30 列);超限将返回网页版处理引导链接。

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": {
      "input": "<input>",
      "sourceFormat": "<sourceFormat>",
      "targetFormat": "<targetFormat>"
    },
    "name": "convert_table_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes待转换表格文本(支持 CSV/TSV/分号分隔、JSON 对象数组或 Markdown GFM 表格,上限 8,000 字符)
includeBomNo【目标为 csv】是否在输出前添加 UTF-8 BOM(默认 false)
inferTypesNo【目标为 json】是否启用安全类型推断(布尔/null/安全数字,默认 false)
jsonIndentNo【目标为 json】缩进空格数(0–4,默认 2)
sourceFormatYes源格式:csv / json / markdown
targetFormatYes目标格式:csv / json / markdown
escapeFormulaNo【目标为 csv】是否对公式风险前缀(= + - @ \t \r)加前置单引号防注入(默认 false)
sourceDelimiterNo【源为 csv】输入分隔符:auto(默认自动识别)/ , / ; / \tauto
targetDelimiterNo【目标为 csv】输出分隔符:,(默认)/ ; / \t,

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety is covered. The description adds genuinely new behavior: hard limits (8,000 chars / 12,000 bytes / 200 rows / 30 columns) and the degraded fallback of returning a web link instead of converting. It says nothing about malformed-input handling or what the successful response looks like, which matters since there is no output schema.

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?

Two sentences, both load-bearing: the first establishes purpose and formats, the second establishes the size budget and the over-limit behavior. Front-loaded and free of filler.

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 9-parameter pure-function converter with full schema documentation and no output schema, the description covers purpose, scope limits, and failure mode adequately. The remaining gap is the return shape on success (converted text vs. structured object) and behavior on invalid input, which an agent can only guess.

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 coverage is 100% and every parameter carries its own description, including format-conditioned notes (BOM, escapeFormula, inferTypes, jsonIndent, delimiters). The description mentions no parameter behavior at all, so it neither adds value nor compensates for anything — baseline 3.

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 with the exact formats named (RFC 4180 CSV, JSON object arrays, Markdown GFM tables) and 'bidirectional'. Against siblings that are all numeric/time calculators, an agent can immediately tell this is the table-format transformer.

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 a clear operating context (bounded small structured data in MCP context) and an explicit boundary: over the limits it will not convert but return a web-version guidance link. It does not name a sibling alternative or explain when another tool would be better, but the size ceiling effectively defines when not to use it.

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