Batch Retrieve Multiple Problems
sdamgia_batch_get_problemsRetrieve multiple complete exam problems from СДАМ ГИА database in a single request with detailed solutions and answers.
Instructions
Efficiently retrieves multiple complete problems from the СДАМ ГИА database in a single request.
When to use:
You have multiple problem IDs and need all their details
You want to compare several problems side-by-side
You're building a problem set or practice collection
You need to fetch related problems after a search
You want to reduce API calls compared to individual get_problem requests
Parameters:
subject(required): Subject code for all problems (all IDs must belong to this subject)problem_ids(required): Array of problem IDs to fetch. Must include 1-10 problem IDs as numeric strings (e.g., ["12345", "67890", "54321"])response_format(optional): 'markdown' (default) or 'json'
Returns:
problems: Array of complete problem objects, each containing:
condition: Full problem statement with text and optional HTML/images
solution: Detailed step-by-step solution
answer: The correct answer
similar_problems: Related problem IDs
metadata: Problem ID, subject, difficulty level
total: Number of problems successfully fetched
Response format:
Markdown: Formatted text with each problem in a separate section, clearly delineated with problem IDs
JSON: Structured object with problems array and metadata
Example usage:
{
"subject": "math",
"problem_ids": ["12345", "67890", "54321", "11111", "22222"],
"response_format": "markdown"
}Typical workflow:
Use
sdamgia_search_problemsto find relevant problem IDsPass the IDs to this tool for batch retrieval
Review all problems together for comparison or practice
Performance benefits:
Single API call instead of multiple individual calls
Faster than sequential
sdamgia_get_problemrequestsIdeal for fetching 2-10 problems at once
Reduces network overhead and latency
Constraints:
Maximum 10 problems per batch request
All problem IDs must be valid numeric strings
All problems must be from the same subject
Invalid IDs will cause the entire batch to fail
Fetching many problems may return large responses
Error handling:
If any problem ID is invalid or not found, the entire batch fails
Make sure all IDs exist in the subject before batching
Consider splitting into smaller batches if you encounter errors
Notes:
Batch size is limited to 10 to prevent excessive response sizes
Use when you need full problem details, not just IDs
For searching, use
sdamgia_search_problemsfirstEach problem includes similar problems for extended practice
All problems in batch are fetched in parallel for speed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | Subject code | |
| problem_ids | Yes | Array of problem IDs to fetch | |
| response_format | No | markdown |