Skip to main content
Glama

Parse pasted data / infer column types / 数据解析与列类型识别

dataframe_parse
Read-onlyIdempotent

Parse pasted data / infer column types / 数据解析与列类型识别 | USE WHEN: the user pasted a CSV/table blob: get shape, column types, missingness before analysis | ALIASES: 解析数据, 列类型, 粘贴表格, CSV解析, parse data, column types, 数据形状 | RETURNS: 行列数、列类型、缺失情况

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_data": "<csv_data>"
    },
    "name": "dataframe_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
csv_dataYes带表头的 CSV 文本,**整段放在一个字符串里**(不是数组、不 base64)。首行是列名,其后每行一个样本。硬性要求:① 至少 1 个特征列 + 1 个结局列;② 数据行 ≥2(含表头 ≥3 行)。结局列按此顺序识别:列名命中 outcome/target/y/label/endpoint/result/结局/因变量/目标变量/结局变量 → 否则取**最后一列**(须为二分类)→ 否则从右往左找第一个二分类列;都找不到会报「未识别到结局列」。结局值只认 0/1、yes/no、true/false、阳性/阴性、是/否、存活/死亡/alive/event 等;其它值该行被跳过。列名命中 id

Output Schema

NameRequiredDescriptionDefault
costNo
resultYes业务字段,键见 description 的 RETURNS 段
successYes
data_sourceYeslocal_computation|external_corpus|llm_generated|user_data|pending
engine_statusYesok|queued|error|unavailable|not_run

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed1 schema field changed
    • changedInput schema / properties / csv_data / description
      Previous value: -"CSV 文本"New value: +"带表头的 CSV 文本,**整段放在一个字符串里**(不是数组、不 base64)。首行是列名,其后每行一个样本。硬性要求:① 至少 1 个特征列 + 1 个结局列;② 数据行 ≥2(含表头 ≥3 行)。结局列按此顺序识别:列名命中 outcome/target/y/label/endpoint/result/结局/因变量/目标变量/结局变量 → 否则取**最后一列**(须为二分类)→ 否则从右往左找第一个二分类列;都找不到会报「未识别到结局列」。结局值只认 0/1、yes/no、true/false、阳性/阴性、是/否、存活/死亡/alive/event 等;其它值该行被跳过。列名命中 id"
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "csv_data"
      +]
  5. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety behavior is covered. The description's 'RETURNS' line restates output that an output schema already provides, and the genuinely valuable behavioral detail — outcome-column detection order, invalid-row skipping, minimum row/column requirements — lives only in the schema, not the description. It adds modest context but nothing beyond structured data.

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?

The pipe-segmented layout is front-loaded and scannable: purpose, USE WHEN, aliases, returns. The alias block and duplicated Chinese/English phrasing are padding rather than substance, but nothing is misleading or buried.

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 and full annotation coverage, the description need not explain return values or safety. It supplies the trigger condition and a short output summary, and the remaining edge-case behavior is handled by the rich schema; only an explicit alternative-tool pointer is missing.

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% and the single parameter (csv_data) is documented in exceptional detail, including format, hard requirements, and outcome-column resolution rules. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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 specific verb and resource ('Parse pasted data / infer column types') and the title repeats it bilingually, so an agent knows this turns a pasted blob into typed tabular structure. It does not explicitly position itself against the nearest sibling (e.g., sanyu_upload_data), so sibling differentiation is left implicit.

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?

'USE WHEN: the user pasted a CSV/table blob ... before analysis' gives a clear trigger condition and even a sequence cue (do this before analysis). There is no explicit when-not guidance or named alternative, which keeps it below 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