get_instances_based_on_template
Retrieve paginated template instances from the CEDAR metadata repository to access structured metadata and biomedical data annotations while managing data volume constraints.
Instructions
Get template instances that belong to the input template ID with pagination support.
This tool searches for instances of a given template and fetches their complete content in paginated chunks to avoid token limit issues.
Args: template_id: The template ID or full URL from CEDAR repository (e.g., "https://repo.metadatacenter.org/templates/e019284e-48d1-4494-bc83-ddefd28dfbac") limit: Number of instances to return per page (min: 1, max: 100, default: 10) offset: Starting position for pagination (default: 0)
Returns: Dictionary containing: - instances: List of template instances for this page - pagination: Pagination metadata (total_count, current_page, etc.) - errors: List of any errors encountered during fetching
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | ||
offset | No | ||
template_id | Yes |