Skip to main content
Glama

search_callsets

Exports per-sample metadata from a variant run to CSV, including sample names, callset IDs, and additionalInfo attributes. Use when sample-level details are needed instead of germplasm-level.

Instructions

Dump per-sample (callset) metadata for a run: names + additionalInfo attributes.

Retrieves the run's callsets via BrAPI search/callsets and writes sample_metadata.csv (one row per sample) with sample_name, callSetName, sampleDbId, callSetDbId and every attribute present in the callsets' additionalInfo (e.g. ICARDA_IG, SeedID, Country, Latitude, Longitude, SiteCode, PopulationType).

sample_name is the same name the analysis tools use for the sample, so the file joins to their outputs; callSetName keeps the server's raw label, which on some builds is the more human-readable of the two.

This is the sample/callset-level counterpart to get_germplasm_metadata: use it when the germplasm (accession) level exposes no attributes but the samples do.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNoDirectory for the output CSV(s) (default ./gigwa_results/<module>/).
variant_set_db_idYesBrAPI variantSetDbId identifying the run (MODULE§project§run) -- copy the exact string from list_variant_sets / list_content, never assemble one by hand: the middle segment is a numeric project index, not the project's name, and a wrong guess fails with an opaque HTTP 500 rather than a clear error.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.9.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It clearly states the tool retrieves callsets via BrAPI and writes sample_metadata.csv, and it explains the semantic difference between sample_name and callSetName. However, it does not mention whether an existing CSV is overwritten or any failure behavior for empty results, though these are minor for a read-and-dump tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and every subsequent sentence adds value: output format, column semantics, join behavior, and sibling distinction. There is no filler or repetition of schema content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity, two well-documented parameters, an existing output schema, and no annotations, the description is complete. It covers what the tool does, what it writes, how the output should be interpreted, and when to choose it over get_germplasm_metadata.

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 description coverage is 100%, so the parameters are already well documented, especially variant_set_db_id with detailed guidance about copying the exact string. The tool description adds context about the output file and naming semantics but does not materially enrich the meaning of the two parameters themselves beyond the schema.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Dump per-sample (callset) metadata for a run', naming the exact output file and columns. It also explicitly distinguishes itself from get_germplasm_metadata as the 'sample/callset-level counterpart', so an agent can tell siblings apart.

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

Usage Guidelines5/5

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

The final sentence gives an explicit when-to-use rule: 'use it when the germplasm (accession) level exposes no attributes but the samples do.' It also names the alternative tool directly, and the parameter schema reinforces how to obtain the correct variant_set_db_id.

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

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/gkanogiannis/Gigwa-MCP'

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