list_context_items
List context items from the team's library, each with its collection, project, and a link to open it in Marcora. By default it returns all items you can see; private items you don't have access to are filtered out. Pass a `search` query to sort items by similarity instead of recency; search only re-orders and drops nothing.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
team_id | integer | Yes | — | Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions. |
reference_library_only | boolean | No | — | Set true to return only the items that sit in no project and no collection (`collection_ids: []` and `project_id: null`) — what the app shows as the "Reference Library". Leave it out (default false) to get everything you can see across projects, collections, and the reference library. Set it true when you want a clean view of unfiled material, for example to decide what still needs organising. |
collection_id | integer | No | — | Return only items in this team collection or active Marcora Collection (id from `list_context_collections` or `list_marcora_collections`). Omit to include every accessible collection. |
search | string | No | — | Optional natural-language query. When provided, every item you can see is scored by its best-matching passage and the list is sorted by that score instead of recency; each item gains a relevance_score. Nothing is dropped, so the response is still the whole library. Omit or leave empty for the normal recency-ordered list. To retrieve the passages relevant to a question, use get_relevant_context. |
content_type | string | No | — | Return only items of this type, for example call_transcript (calls), manual (pasted text) or webpage. Omit for every type. |
date_from | string | No | — | Return only items dated on or after this, as YYYY-MM-DD or ISO 8601. Compared with the call’s own date (when it happened) for calls, and the created date (when it was added) for every other item. A call with no known date does not match a date bound. |
date_to | string | No | — | Return only items dated on or before this, as YYYY-MM-DD (the whole day counts) or ISO 8601. A call with no known date does not match a date bound. |
kinds | array of string | No | — | Calls only: keep calls of these kinds (customer (a customer call), external (a meeting with people outside the team), team_meeting, one_on_one, recorded (a recorded talk or other single-speaker recording)). Setting it returns calls only. |
company | string | No | — | Calls only: keep calls with this company (a case-insensitive part of the company name, or its exact domain). Setting it returns calls only. |
Input Schema
{
"type": "object",
"required": [
"team_id"
],
"properties": {
"kinds": {
"type": "array",
"items": {
"enum": [
"customer",
"external",
"team_meeting",
"one_on_one",
"recorded"
],
"type": "string"
},
"description": "Calls only: keep calls of these kinds (customer (a customer call), external (a meeting with people outside the team), team_meeting, one_on_one, recorded (a recorded talk or other single-speaker recording)). Setting it returns calls only."
},
"search": {
"type": "string",
"description": "Optional query. Re-orders all context items that match your filters with no cutoff: title matches first (`title_exact`, `title_prefix`, `title_words`, `title_fuzzy`), then `meaning` (cosine `relevance_score >= 0.4`), then unmatched items (`none`) ordered by relevance score; adds `match` and `relevance_score` to each item. Omit or leave empty for newest-first order. To retrieve the passages relevant to a question, use `get_relevant_context`."
},
"company": {
"type": "string",
"description": "Calls only: keep calls with this company (a case-insensitive part of the company name, or its exact domain). Setting it returns calls only."
},
"date_to": {
"type": "string",
"description": "Return only items dated on or before this, as YYYY-MM-DD (the whole day counts) or ISO 8601. A call with no known date does not match a date bound."
},
"team_id": {
"type": "integer",
"minimum": 1,
"description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
},
"date_from": {
"type": "string",
"description": "Return only items dated on or after this, as YYYY-MM-DD or ISO 8601. Compared with the call’s own date (when it happened) for calls, and the created date (when it was added) for every other item. A call with no known date does not match a date bound."
},
"content_type": {
"type": "string",
"description": "Return only items of this type, for example call_transcript (calls), manual (pasted text) or webpage. Omit for every type."
},
"collection_id": {
"type": "integer",
"description": "Optional collection ID (from list_context_collections or list_marcora_collections) to return only context items in that team collection or active Marcora Collection in the user's library. Omit to include items across all accessible collections."
},
"reference_library_only": {
"type": "boolean",
"description": "Set true to return only the items that sit in no project and no collection (`collection_ids: []` and `project_id: null`) — what the app shows as the \"Reference Library\". Leave it out (default false) to get everything you can see across projects, collections, and the reference library. Set it true when you want a clean view of unfiled material, for example to decide what still needs organising."
}
}
}Output Schema
{
"type": "object",
"required": [
"context_items"
],
"properties": {
"context_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"link_url"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Context item ID. Pass to get_context_item to fetch full markdown."
},
"call": {
"type": "object",
"required": [
"audience"
],
"properties": {
"date": {
"type": [
"string",
"null"
],
"description": "When it happened (ISO 8601), or null."
},
"kind": {
"enum": [
"customer",
"external",
"team_meeting",
"one_on_one",
"recorded",
null
],
"type": [
"string",
"null"
],
"description": "Kind of call."
},
"people": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"side"
],
"properties": {
"name": {
"type": "string"
},
"side": {
"enum": [
"internal",
"external",
"unknown"
],
"type": "string",
"description": "internal = user’s team."
},
"company": {
"type": [
"string",
"null"
]
}
}
},
"description": "Who was on the call."
},
"company": {
"type": [
"string",
"null"
],
"description": "Other company, or null."
},
"audience": {
"enum": [
"only_me",
"team"
],
"type": "string",
"description": "only_me or team."
},
"summary_status": {
"enum": [
"pending",
"ready",
"skipped",
"failed",
"waiting_credits",
null
],
"type": [
"string",
"null"
],
"description": "Summary state; ready = a summary exists."
}
},
"description": "Call details; present only on call items."
},
"name": {
"type": "string"
},
"added_by": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
},
"audience": {
"enum": [
"only_me"
],
"type": "string",
"description": "Present (only_me) only on an Only me item, visible to its owner alone; Team items omit it. Ask the user before copying its text anywhere the team can see."
},
"link_url": {
"type": "string",
"description": "URL to view this context item in the Marcora web app."
},
"created_at": {
"type": "integer"
},
"project_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Project this item is associated with, or null."
},
"source_url": {
"type": [
"string",
"null"
],
"description": "Tracked web-page URL for webpage items; null otherwise."
},
"updated_at": {
"type": [
"integer",
"null"
]
},
"word_count": {
"type": "integer"
},
"collections": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
},
"description": "All accessible collections this context item belongs to (primary collection first; empty array when in the reference library)."
},
"content_type": {
"type": "string"
},
"collection_id": {
"type": [
"integer",
"null"
],
"description": "Primary (home) collection ID this context item lives in, or null when in the reference library."
},
"content_intro": {
"type": "string",
"description": "Short truncation of the content for previews."
},
"collection_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "All accessible collection IDs this context item belongs to (primary collection first; empty array when in the reference library)."
},
"relevance_score": {
"type": [
"number",
"null"
],
"description": "Semantic relevance to `search` (max cosine similarity across the item's chunks; higher = more relevant). ONLY present when `search` was supplied: a number means the item was scored against embedded chunks; null means it isn't embedded yet and couldn't be scored (sorted last). Absent entirely when no `search` was given. Cross-comparable with list_content relevance_score."
},
"relevancy_processed_status": {
"enum": [
"unprocessed",
"provisional",
"complete"
],
"type": "string",
"description": "Targeting-dimension processing state, for reference-library items only. Omitted entirely for items that belong to a project or a context collection. This does NOT indicate whether the item is embedded or retrievable — every context item is embedded for semantic search at ingestion regardless of this value."
}
}
}
}
}
}Instructions
Lists the context items in the team's reference library, newest first. Use it to browse and filter the library and to find context-item IDs.
By default returns ALL context items the user can see (across projects, collections, and the reference library). Set reference_library_only=true to return only items that are NOT in any project or collection — these are the items shown in the “Reference Library” section of the Marcora web app.
A context item is either in the reference library (collection_ids: [], collection_id: null) or in one or more collections (collection_ids, collections, with collection_id set to the primary collection) — never both. Private collections and call transcripts stay single-collection and cannot be combined with other collections; Library source collections are added as secondary collections only via Library authoring.
Each returned item carries its collection_id (primary collection or null), collection_ids, collections ({ id, name }[]) and project_id (nullable), so you always know where it lives. To get the full markdown content of any item, pass its id to get_context_item.
Optional filters, combinable: collection_id (a team collection or an active Marcora Collection, matching primary or secondary membership; id from list_context_collections or list_marcora_collections); content_type (for example call_transcript, manual, webpage); date_from / date_to (YYYY-MM-DD or ISO 8601; compared with the call's own date for calls and the created date for every other context item; a call with no known date does not match a date bound); and, for calls, kinds (customer, external, team_meeting, one_on_one, recorded) and company (a case-insensitive part of the company name, or its exact domain). Only calls have a kind or company, so setting either returns calls only.
A call item carries a call block: date, kind, company, people, audience, summary_status.
Optional search: pass a query to re-order every context item that matches your filters, without dropping any (no cutoff). Title matches rank first (title_exact exact title, title_prefix starts-with, title_words all query words in title, title_fuzzy close spelling), then semantic meaning (relevance_score >= 0.4), then unmatched items (match: "none"), ordered by relevance score (newest first if the query could not be embedded). When search is set, each item carries match and relevance_score (cosine 0–1, higher = more similar; null for items with no indexed passages yet; omitted if the query could not be embedded). To find the passages that are relevant to a question, use get_relevant_context.
Privacy: items in private collections (where you are not the creator) and items in private projects (where you are not a member) are filtered out — they will not appear in the response.
Context items marked audience: "only_me" (a call added as Only me) are private to their owner: you see only your own, never a teammate's, an admin's or another member's. A Team call filed in a private project or private collection reads as Only me for AI apps. Do not put an Only me context item's text in anything the team can see without asking the user.
Other ways to discover context-item IDs:
get_project(project_id).context_items— items attached to a specific projectlist_context_collections— items grouped by collectionget_relevant_context— returnscontext_item_idsof parent items for matched chunks
Example prompts:
- “What context items do I have in Marcora?”
- “Show me everything in my reference library”
- “List the context items I haven’t filed into a collection or project”
- “Find context about our competitors’ pricing”
Clients that previously read the bare array must now read response.context_items.
Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.