Skip to main content

Intelligence Tools

Tools for querying the research intelligence context assembly system. The intelligence query assembles a structured context bundle from hypotheses, experiments, the knowledge graph, and detected patterns.

Available Tools

intelligence_query

Query the research intelligence context — "What do we know about X?"

This tool assembles a comprehensive context bundle by searching across typed pages, the research graph, and pattern detections to answer a natural-language query.

{
"name": "intelligence_query",
"arguments": {
"workspaceId": "ws_123",
"query": "What do we know about API caching performance?",
"spaceId": "space_456"
}
}

Arguments:

ArgumentTypeRequiredDescription
workspaceIdstringYesWorkspace ID
querystringYesNatural-language query
spaceIdstringNoOptional space filter

Response:

{
"context": {
"query": "What do we know about API caching performance?",
"directHits": [
{
"id": "page_hyp_123",
"title": "Caching reduces API latency by 50%",
"pageType": "hypothesis"
}
],
"relatedWork": [
{
"id": "page_789",
"title": "Caching Architecture Decisions",
"pageType": "finding"
}
],
"timeline": [
{
"id": "page_exp_456",
"title": "Redis cache benchmark",
"updatedAt": "2024-01-15T14:30:00Z"
}
],
"currentState": {
"validated": [
{ "id": "page_hyp_123", "title": "Caching reduces API latency by 50%" }
],
"refuted": [],
"testing": [],
"open": []
},
"openQuestions": [
{
"id": "task_oq_123",
"title": "What is the cache invalidation strategy?",
"status": "todo",
"priority": "medium",
"labels": ["open-question"]
}
],
"contradictions": [
{
"from": "page_hyp_123",
"to": "page_hyp_456",
"type": "CONTRADICTS"
}
],
"experiments": [
{
"id": "page_exp_456",
"title": "Redis cache benchmark",
"pageType": "experiment"
}
],
"papers": []
}
}

Context Bundle Structure

The intelligence query assembles context from multiple sources:

SectionSourceDescription
directHitsFull-text searchPages matching the query via tsquery
relatedWorkKnowledge graphPages connected via graph traversal (max depth 2)
timelinePage metadataAll matched pages sorted by last update
currentStateTyped pagesHypotheses grouped by status (validated, refuted, testing, open)
openQuestionsTasksTasks labeled "open-question" or matching the query
contradictionsMemgraphCONTRADICTS edges involving result pages
experimentsTyped pagesExperiments related to matched hypotheses
papersTyped pagesPapers and formal publications

Use Cases

Agent Context Injection

Use intelligence_query to give AI agents full research context before they take action:

// Before an agent writes a recommendation
const context = await mcp.call("intelligence_query", {
workspaceId: "ws_123",
query: "database migration strategies"
});

// Agent now has hypotheses, evidence, and patterns to inform its response

Research Status Check

Quickly understand the state of knowledge in a domain:

const context = await mcp.call("intelligence_query", {
workspaceId: "ws_123",
query: "authentication security",
spaceId: "space_security"
});

// See which hypotheses are validated, what's still open, any contradictions