Skip to main content
Glama
codeocean

Code Ocean MCP Server

Official
by codeocean

download_and_read_a_file_from_computation

Retrieve and read file contents from a Code Ocean computation by specifying the computation ID and file path to access computational outputs.

Instructions

Use when you want to read the content of a file from a computation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
computation_idYes
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It mentions 'download_and_read', implying file retrieval and content reading, but fails to disclose critical behavioral traits such as authentication needs, rate limits, error handling, or whether the file is cached or streamed. This leaves significant gaps for an agent to understand the tool's behavior.

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 description is a single, straightforward sentence that is front-loaded and efficient. It avoids unnecessary words, making it concise, though it could be more structured by including key details without sacrificing brevity.

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?

Given the tool has an output schema, the description does not need to explain return values. However, with no annotations, 2 parameters at 0% schema coverage, and complexity from siblings, the description is incomplete. It lacks details on usage context, parameter meanings, and behavioral traits, making it minimally adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, and the description provides no parameter information. It does not explain what 'computation_id' or 'file_path' represent, their formats, or constraints. With low schema coverage, the description fails to compensate, leaving parameters undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the purpose as 'read the content of a file from a computation', which is clear but vague. It specifies the verb ('read') and resource ('file from a computation'), but does not distinguish it from sibling tools like 'download_and_read_a_file_from_data_asset' or 'get_data_asset_file_urls', leaving ambiguity about scope and differentiation.

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

Usage Guidelines2/5

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

The description includes 'Use when you want to read the content of a file from a computation', which provides minimal context but no explicit guidance on when to use this tool versus alternatives. It lacks details on prerequisites, exclusions, or comparisons to siblings, offering no help in tool selection.

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/codeocean/codeocean-mcp-server'

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