Skip to main content
Glama

加载数据文件

jasp_load_data

Loads local CSV, TSV, or JSON data into a JASP session, creates the variable dictionary, and returns a session_id required by later analysis tools.

Instructions

从本地路径加载 CSV/TSV/JSON 数据,建立变量字典与会话。返回 session_id,后续工具都要带上它。

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": {
      "path": "<path>"
    },
    "name": "jasp_load_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo数据快照名,默认取文件名
pathYes数据文件绝对路径(支持 .csv/.tsv/.json;.sav 需先转 CSV)
typesNo手动覆盖变量类型,例如 {"gender":"nominal"}
session_idNo复用已有会话;不传则新建

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description does carry real behavioral weight: it discloses that a variable dictionary and session are created and that the returned session_id is a precondition for later tools. It does not state failure behavior (e.g., missing file, unsupported format), whether an existing session is mutated, or what the variable dictionary contains, leaving meaningful gaps for a state-establishing tool.

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 short sentences, front-loaded with the load action and supported formats, followed by the session contract that matters most to the caller. Nothing is redundant 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?

For a four-parameter loader with no output schema, the description covers the essential contract: what is loaded, what state is created, and the session_id dependency. It stops short of describing the returned variable dictionary or error modes, which would fully close the loop.

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%, so per the baseline this is a 3; the schema already documents path, name, types, and session_id. The description only reinforces session_id's reuse role via '后续工具都要带上它' and adds no format or type-override detail beyond the schema.

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 names a specific verb (加载/load) and a concrete resource (CSV/TSV/JSON data files from a local path), plus the side effect of establishing a variable dictionary and session. It does not distinguish itself from the sibling jasp_ingest_data, so an agent cannot tell from the text alone which loader applies.

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 useful downstream context ('后续工具都要带上它'), which tells the agent this must run before other calls. However, it never says when to choose this over jasp_ingest_data or how to handle the .sav case beyond the schema note, so the choice guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.