# TRS v2.0.1 Quickstart

## Installation

```bash
pip install "ai4gh[trs]"
```

## Search for Tools

```python
import asyncio
from ai4gh.specs.trs.client import TRSClient


async def main():
    async with TRSClient(base_url="https://dockstore.org/api/ga4gh/trs/v2") as client:
        # Get service info
        info = await client.get_service_info()
        print(f"Registry: {info.name}")

        # List tool classes (Workflow, Tool, etc.)
        classes = await client.get_tool_classes()
        for tc in classes:
            print(f"  {tc.name}: {tc.description}")

        # List available tools
        tools = await client.list_tools()
        for tool in tools[:5]:
            print(f"  {tool.name}")


asyncio.run(main())
```

## Compliance Testing

```bash
ai4gh test trs https://dockstore.org/api/ga4gh/trs/v2
```

## MCP Tool

```json
{
  "tool": "trs_search_tools",
  "arguments": {
    "base_url": "https://dockstore.org/api/ga4gh/trs/v2",
    "query": "alignment"
  }
}
```

## Data Models

```python
from ai4gh.specs.trs.models import Tool, ToolClass, ToolVersion, FileWrapper
```
