Skip to main content
Glama

read_data

Read MATLAB, CSV, JSON, text, or Excel files from the session directory to access data for analysis or processing.

Instructions

Read a data file (.mat, .csv, .json, .txt, .xlsx) from the session temp directory.

For .mat files, 'summary' mode shows variable names/sizes/types via MATLAB, 'raw' mode returns base64-encoded content. Text files return inline content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
formatNosummary

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses some behavioral traits: different return formats based on file type and mode (summary info vs base64 vs inline content), and that it reads from a specific directory. However, it doesn't mention error handling, file size limits, or authentication requirements that might be relevant for a file reading operation.

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?

The description is efficiently structured in three sentences with zero waste. The first sentence establishes core purpose, the second adds crucial behavioral details about different file type handling. Every sentence adds essential information without redundancy.

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?

Given the tool has an output schema (which handles return value documentation) and no annotations, the description provides good context about what the tool does and how it behaves with different file types. It covers the key aspects of a file reading tool, though additional details about error cases or limitations would make it more complete.

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?

With 0% schema description coverage, the description compensates well by explaining the 'format' parameter's semantics: 'summary' mode shows variable details via MATLAB for .mat files, 'raw' mode returns base64 content. It also clarifies that 'filename' refers to files in the session temp directory. However, it doesn't explain filename format requirements or constraints.

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?

The description clearly states the specific action ('Read a data file') and resources (multiple file types: .mat, .csv, .json, .txt, .xlsx) from a specific location ('session temp directory'). It distinguishes from sibling tools like 'read_image' and 'read_script' by specifying data file formats rather than images or scripts.

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?

The description implies usage context by specifying file formats and location, but doesn't explicitly state when to use this tool versus alternatives like 'read_image' or 'read_script'. It mentions different modes for .mat files but doesn't provide guidance on when to choose 'summary' versus 'raw' mode beyond what they do.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HanSur94/matlab-mcp-server-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server