add_marcora_collection
Adds a published Marcora Collection (marcora_collection_id, slug, or title from list_marcora_collections) to the user's library (idempotent; already_in_library: true means already active). Call without confirmation when a user names that collection to use, then pass the returned collection_id to get_relevant_context or list_context_items. Present link_url as returned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_marcora_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Slug of the published Marcora Collection (or a full https://marcora.ai/collections/<slug> URL). Provide marcora_collection_id, slug, or title. | |
| title | No | Exact public title of the Marcora Collection (case-insensitive), for example from a user's prompt. Provide marcora_collection_id, slug, or title. | |
| marcora_collection_id | No | Published Marcora Collection ID from list_marcora_collections. Provide marcora_collection_id, slug, or title. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| items | Yes | ||
| state | Yes | ||
| title | Yes | ||
| status | Yes | "already_in_library" when the collection was already active in the user's library; "added" when this call added or un-hid it. | |
| message | Yes | Plain-text status and next-step instruction (states whether the collection was already in the library or newly added, and which collection_id to pass to get_relevant_context). | |
| link_url | Yes | URL to view Marcora Collections in the Marcora web app. | |
| in_library | Yes | ||
| item_count | Yes | ||
| description | No | ||
| collection_id | Yes | Context collection ID to pass in collection_ids on get_relevant_context or as collection_id on list_context_items. | |
| availability_mode | No | ||
| already_in_library | Yes | True when the collection was already active in the user's library before this call (for example, attached at signup or previously added); false when this call newly added or un-hid it. When true, go straight to answering the user's request. | |
| marcora_collection_id | Yes |