Skip to main content
Glama

read_script

Read MATLAB .m script files from the temporary directory to access code content as text, enabling analysis or execution of MATLAB scripts.

Instructions

Read a MATLAB .m script file from the session's temporary directory.

Returns the file content as text. Use list_files to see available files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes

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 the full burden. It discloses the tool reads files and returns content as text, but lacks details on error handling (e.g., if file doesn't exist), permissions, or rate limits. It adds basic behavioral context but misses deeper operational traits.

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, front-loaded with the core purpose, and every word earns its place—no redundancy. It efficiently conveys essential information without waste, making it easy for an agent to parse quickly.

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's low complexity (one parameter), no annotations, but an output schema exists (so return values are covered), the description is mostly complete. It covers purpose, usage, and parameter context, though it could add more on error cases or behavioral nuances for full completeness.

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?

The schema has 0% description coverage, but the description compensates by explaining that 'filename' refers to a MATLAB .m script file in the temporary directory. This adds meaningful context beyond the bare schema, though it doesn't detail format constraints (e.g., file extensions).

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 MATLAB .m script file') and resource ('from the session's temporary directory'), distinguishing it from siblings like read_data or read_image. It precisely defines what the tool does without being vague or tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly provides an alternative ('Use list_files to see available files') and implies context (temporary directory, .m files), giving clear guidance on when to use this tool versus others. This helps the agent understand prerequisites and workflow integration.

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