generate_query_template
Generate a complete GraphQL query template for any Gen3 data type. Specify the entity name and optionally include relationships or limit fields for a customizable starting point.
Instructions
Generate a ready-to-use GraphQL query template for any data type.
Takes an entity name (from get_schema_summary) and creates a complete, valid GraphQL query with the most useful fields and relationships. This gives you a working starting point that you can customize.
Args: entity_name: Name of the data type to query (e.g., 'subject', 'sample') include_relationships: Whether to include related data types in template max_fields: Maximum number of fields to include (controls template size)
Returns: A complete GraphQL query template ready to use or customize. Copy the template from data.template and modify as needed.
Workflow: get_schema_summary → get_schema_entity → You are here → validate_query → execute_graphql
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_name | Yes | ||
| include_relationships | No | ||
| max_fields | No |