Tools
List available bioinformatics tools and invoke them directly without going through the agent.
GET
/v1/toolstools scopeReturns all available bioinformatics tools with their input schemas. Use this to discover what tools are available before invoking them.
tools = client.tools.list()
for tool in tools:
print(f"{tool.id}: {tool.description}")const tools = await client.tools.list();
for (const tool of tools) {
console.log(`${tool.id}: ${tool.description}`);
}curl https://api.smarts.bio/v1/tools \
-H "Authorization: Bearer sk_live_..."
# Response:
# {
# "status": "success",
# "data": [
# {
# "id": "ncbi_search",
# "name": "NCBI Search",
# "description": "Search NCBI databases (PubMed, Gene, Nucleotide, Protein)",
# "parameters": {
# "database": { "type": "string", "enum": ["pubmed","gene","nucleotide","protein"] },
# "query": { "type": "string" },
# "maxResults": { "type": "integer", "default": 10 }
# }
# }
# ]
# }# List all available tools smarts tool list
POST
/v1/tools/:toolId/runtools scopeInvoke a specific tool with input parameters. Returns the tool output synchronously. Use GET /v1/tools to discover available tool IDs and their required parameters.
Request body
| Parameter | Type | Description |
|---|---|---|
| input | object | Tool-specific input parameters. See tool schema from GET /v1/tools. |
| workspace_id | string | Optional workspace context for file-aware tools. |
result = client.tools.run(
tool_id="ncbi_search",
input={
"database": "pubmed",
"query": "BRCA1 mutations breast cancer",
"maxResults": 5,
}
)
for article in result["results"]:
print(article["title"])const result = await client.tools.run('ncbi_search', {
input: {
database: 'pubmed',
query: 'BRCA1 mutations breast cancer',
maxResults: 5,
},
});
for (const article of result.results) {
console.log(article.title);
}curl -X POST https://api.smarts.bio/v1/tools/ncbi_search/run \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"input": {
"database": "pubmed",
"query": "BRCA1 mutations breast cancer",
"maxResults": 5
}
}'
# Response:
# {
# "status": "success",
# "data": {
# "results": [
# { "pmid": "12345678", "title": "...", "abstract": "..." }
# ]
# }
# }# Run a tool with input parameters smarts tool run ncbi_search \ --param database=pubmed \ --param "query=BRCA1 mutations breast cancer" \ --param maxResults=5
Tip: For complex, multi-step analysis, use the Query endpoint instead — the agent will automatically select and chain the right tools based on your prompt.