list_files
Browse and retrieve available download files for specific UCSC genome assemblies like hg38 or mm10 to access genomic data resources.
Instructions
List download files available for a specified UCSC genome assembly.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| genome | Yes | Genome assembly name (e.g., 'hg38', 'mm10') | |
| format | No | Output format (default: json) | |
| max_items | No | Maximum number of items to return |
Implementation Reference
- ucsc-genome-mcp.py:375-382 (handler)Handler implementation for the 'list_files' tool. Extracts parameters from arguments (genome, format, max_items), constructs the API URL for the '/list/files' endpoint, and executes the API request using make_api_request.elif name == "list_files": params = { "genome": arguments["genome"], "format": arguments.get("format"), "maxItemsOutput": arguments.get("max_items") } url = build_api_url("/list/files", params) result = await make_api_request(url)
- ucsc-genome-mcp.py:144-166 (registration)Registration of the 'list_files' tool in the list_tools() function, including the tool name, description, and input schema definition.Tool( name="list_files", description="List download files available for a specified UCSC genome assembly.", inputSchema={ "type": "object", "properties": { "genome": { "type": "string", "description": "Genome assembly name (e.g., 'hg38', 'mm10')" }, "format": { "type": "string", "enum": ["json", "text"], "description": "Output format (default: json)" }, "max_items": { "type": "integer", "description": "Maximum number of items to return" } }, "required": ["genome"] } ),
- ucsc-genome-mcp.py:147-165 (schema)Input schema definition for the 'list_files' tool, specifying parameters: genome (required), format (json/text), max_items.inputSchema={ "type": "object", "properties": { "genome": { "type": "string", "description": "Genome assembly name (e.g., 'hg38', 'mm10')" }, "format": { "type": "string", "enum": ["json", "text"], "description": "Output format (default: json)" }, "max_items": { "type": "integer", "description": "Maximum number of items to return" } }, "required": ["genome"] }