Skip to main content
Glama

search_mags

Find metagenome-assembled genomes in gcMeta by free-text query, genus, species, or biome catalogue, and limit results to species-level representative MAGs.

Instructions

Search for Metagenome-Assembled Genomes (MAGs) in the gcMeta platform. MAGs are reconstructed genomes from metagenomic sequencing data. gcMeta currently hosts over 3.9 million MAGs across 50+ biome catalogues. Use the representativeOnly flag to retrieve species-level representative MAGs only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_mags"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default 1)
genusNoFilter by genus name
queryNoFree-text search query
speciesNoFilter by species name
pageSizeNoResults per page (default 20, max 100)
catalogueIdNoFilter by biome catalogue
representativeOnlyNoReturn only species-level representative MAGs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does add real context — 3.9M MAGs across 50+ biome catalogues, and that MAGs are reconstructed genomes — which helps an agent reason about result volume and deduplication. It stops short of describing read-only vs. mutating behavior, result ordering, pagination semantics, or what a representative MAG record contains.

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 purpose is front-loaded in the first sentence and the supporting sentences are short and non-redundant until the final one. The last sentence restates the schema description of representativeOnly, which is the one piece that does not earn its place.

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?

For a seven-parameter search tool with no output schema, the definition should indicate what comes back (MAG identifiers, taxonomy, catalogue, quality metrics) and how pagination and total-count work. It provides useful scope and background but leaves the return shape entirely undisclosed, which matters because no output schema exists to compensate.

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

Parameters3/5

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

Schema coverage is 100%, so all seven parameters are already documented, and the description adds essentially nothing beyond that baseline. The only parameter it touches is representativeOnly, and its phrasing nearly duplicates the schema's "Return only species-level representative MAGs." The catalogue-count fact loosely motivates catalogueId but does not explain its expected format or valid values.

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

Purpose4/5

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

States a specific verb and resource ("Search for Metagenome-Assembled Genomes (MAGs) in the gcMeta platform") and defines what a MAG is, which separates it from genome-adjacent siblings like search_biosamples or search_runs. It never explicitly contrasts itself with get_mag or get_taxonomy_abundance, so an agent must infer that this is the list/search entry point rather than the detail fetch.

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

Usage Guidelines3/5

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

The only usage direction is "Use the representativeOnly flag to retrieve species-level representative MAGs only," which is implied by the flag's own name and schema text. There is no guidance on when to prefer this over get_mag for fetching a single genome, how to combine query with genus/species/catalogueId filters, or whether an empty result means broadening the query.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.