collection_by_spec
Retrieve all collections (logical endpoint groups) in a given API specification to navigate its structure.
Instructions
collection_by_spec
Lists all collections (logical groups of endpoints) within a specific API specification.
When to use
Use this tool when:
You have a
specIdfromspec_listorspec_by_idand want to see how endpoints are organizedThe user says "show me collections in the meteo API" or "what groups exist in spec X?"
You need to navigate from spec → collection → tag → endpoint
After finding a collection of interest, use collection_by_id for its tags or endpoint_by_collection for its endpoints.
Parameters
specId(required): The 32-character MD5 hash ID of the specification
Returns
A list of collections with their IDs, titles, and statistics (tag count, method count).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"specId": "<specId>"
},
"name": "collection_by_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | required, |