Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Sync records from a knowledge source

knowledge_source_sync

Sync records from a registered source by ingesting local files or public URLs, parsing untrusted content, deduplicating by content hash, preserving provenance, and previewing with dryRun.

Instructions

Ingest records from a registered source. LOCAL mode reads a workspace file (JSON/JSONL/YAML-ish); REMOTE mode fetches raw text (GitHub raw supported) when public fetch is enabled. All content is treated as UNTRUSTED and only parsed, never executed. Records are deduplicated by content hash and carry provenance. dryRun previews without writing.

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": {
      "sourceId": "<sourceId>",
      "urlOrPath": "<urlOrPath>"
    },
    "name": "knowledge_source_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview what would be ingested without writing.
maxItemsNoMaximum records to ingest (default 50).
sourceIdYesRegistered source id (see knowledge_source_registry).
urlOrPathYesWorkspace-relative path, or an https URL (GitHub raw supported).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already disclose openWorldHint=true and readOnlyHint=false, so the mutation surface is known. The description adds genuinely non-structural behavior: untrusted content is parsed and never executed, records are deduplicated by content hash, and provenance is carried — all security-relevant facts an agent cannot get from annotations. It omits failure modes (unreachable URL, malformed file) and what a partial ingest returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four compact sentences, each carrying distinct information: mode split, trust posture, dedup/provenance, preview. The core action is front-loaded and nothing is padded, though the parenthetical format list ("JSON/JSONL/YAML-ish") is slightly fuzzy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a writing, open-world tool with no output schema and no annotations about permissions, the description covers the essentials: what gets read, what trust boundary applies, how duplicates are handled, and how to preview safely. Remaining gaps are error behavior and result shape, which are minor given the absent output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter already carries its own description, and the description's notes on dryRun and GitHub raw URLs largely restate those. It adds marginal value by tying urlOrPath to the LOCAL/REMOTE mode split rather than leaving the mode implicit. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Ingest records from a registered source") and immediately splits it into LOCAL file-read and REMOTE public-fetch modes. That is clear enough to act on, but it never distinguishes itself from the similarly named sibling knowledge_ingest, so the agent must infer which ingestion path applies.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a real selection condition for the two modes (REMOTE only when public fetch is enabled) and explains that dryRun previews without writing. It stops short of stating when to prefer this over knowledge_ingest or knowledge_source_registry, and gives no guidance on how to choose sourceId or maxItems.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools