Skip to main content
Glama

Table 1 (baseline characteristics) / 生成 Table 1(基线特征表)

table_one_baseline
Read-only

Table 1 (baseline characteristics) / 生成 Table 1(基线特征表) | USE WHEN: build the paper's first table: baseline characteristics by group with P values | ALIASES: Table 1, 基线表, 基线特征表, 人口学表, 第一张表, baseline table, characteristics table, 组间比较表 | RETURNS: Table 1 表格 + 可选段落

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": {
      "file_id": "<file_id>",
      "group_variable": "<group_variable>"
    },
    "name": "table_one_baseline"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes数据文件 id(可不填,助手会自动用你最近上传的数据)
posthocNo多组(≥3 组)两两比较的事后方法:none/tukey/dunn,默认 none。两组时该字段无作用。
balance_checkNo是否同时输出组间均衡性 P 值(默认 true)。P<0.05 只代表基线不均衡,不代表需要调整或删除该变量。
group_variableYes分组变量列名
type_overridesNo强制指定变量类型 {列名: "continuous"|"categorical"}。用于数值编码但实为分类的列(如 0/1 性别、1/2/3 分级)。
variable_labelsNo变量显示名映射 {原始列名: 表内显示名},如 {"sbp":"收缩压(mmHg)"}。不传则表里显示原始列名。
generate_paragraphNo是否同时生成论文表述段落
variables_to_excludeNo排除的列名数组(优先级高于 variables_to_include),如 ["住院号","联系电话"]。
variables_to_includeNo纳入的变量列名数组(按顺序出现在表里)。不传则自动纳入全部非 ID 列;与 variables_to_exclude 互斥时排除优先。
include_suspected_varsNo是否纳入系统猜测为 ID/时间的列(默认 false,即自动剔除)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / balance_check
      Added value: +{
      +  "description": "是否同时输出组间均衡性 P 值(默认 true)。P<0.05 只代表基线不均衡,不代表需要调整或删除该变量。",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_suspected_vars
      Added value: +{
      +  "description": "是否纳入系统猜测为 ID/时间的列(默认 false,即自动剔除)。",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / posthoc
      Added value: +{
      +  "description": "多组(≥3 组)两两比较的事后方法:none/tukey/dunn,默认 none。两组时该字段无作用。",
      +  "type": "string"
      +}
    • removedInput schema / properties / test_method
      Removed value: -{
      -  "description": "auto/t/nonparametric/chi2",
      -  "type": "string"
      -}
    • addedInput schema / properties / type_overrides
      Added value: +{
      +  "description": "强制指定变量类型 {列名: \"continuous\"|\"categorical\"}。用于数值编码但实为分类的列(如 0/1 性别、1/2/3 分级)。",
      +  "type": "object"
      +}
    • addedInput schema / properties / variable_labels
      Added value: +{
      +  "description": "变量显示名映射 {原始列名: 表内显示名},如 {\"sbp\":\"收缩压(mmHg)\"}。不传则表里显示原始列名。",
      +  "type": "object"
      +}
    • addedInput schema / properties / variables_to_exclude
      Added value: +{
      +  "description": "排除的列名数组(优先级高于 variables_to_include),如 [\"住院号\",\"联系电话\"]。",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / variables_to_include / description
      Previous value: -"纳入的变量列名"New value: +"纳入的变量列名数组(按顺序出现在表里)。不传则自动纳入全部非 ID 列;与 variables_to_exclude 互斥时排除优先。"
  2. 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=true, destructiveHint=false and openWorldHint=false, so the safety profile needs no restating. The description adds the useful return shape ('Table 1 表格 + 可选段落'), but says nothing about statistical behavior such as group-count handling, missing-data treatment, or errors when group_variable is unsuitable.

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?

Pipe-delimited sections (purpose, USE WHEN, ALIASES, RETURNS) are front-loaded and easy to scan. The bilingual restatement of the title in the description duplicates the already-supplied name and title, costing some space.

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 ten-parameter statistical table generator with no output schema, the definition covers purpose and return type but omits assumptions and edge-case behavior an agent would need to invoke it confidently. The fully documented schema and safety annotations carry most of the remaining weight.

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% with ten well-documented parameters covering posthoc methods, balance checks, type overrides and variable filtering. The description adds no parameter meaning beyond the schema, so the baseline 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 USE WHEN clause gives a concrete verb and output ('build the paper's first table: baseline characteristics by group with P values'), which goes beyond the title restatement. It does not differentiate from the sibling table_one_subgroup, so an agent must infer that boundary itself.

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?

Explicit 'USE WHEN' framing tells the agent the triggering scenario (first table, baseline characteristics by group, P values). There is no when-not guidance or named alternative for subgroup analyses, which is the main gap.

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