Skip to main content
Glama

connectSource

Connects a supported source and runs a bounded first backfill into the graph, with dry-run preview and item/extraction caps to control untrusted ingestion.

Instructions

Connect a source and run a bounded first backfill into the graph. Give a connector (local-git, claude-chats, or granola) and, for the file-based ones, repoPath (granola uses a stored API key instead); optionally scope (personal|team, default personal), dryRun (preview + count without writing), maxItems, and maxExtractionCalls. Ingested content is UNTRUSTED: facts land proposed and capped, never superseding your own. Returns a run report with itemsApplied/Skipped and a jobUid. Refuses project scope.

Input Schema

NameRequiredDescriptionDefault
scopeNoScope to ingest into. Defaults to personal. Project scope is refused: ingested external content is sensitive and project is plaintext.
dryRunNoPreview only: validate the source and count would-be items WITHOUT writing anything (the consent gate).
maxItemsNoCap on items considered this run (backfill bound). Defaults to 500.
repoPathNoSource locator for file-based connectors: a local git repository path (local-git), or an export file path (claude-chats: a .zip bundle or a conversations.json). Omit for granola, which authenticates with a keychain API key (set it via 'maz source add granola').
connectorYesSource connector name. Supported: local-git, claude-chats, granola.
maxExtractionCallsNoCap on episodes appended this run, each one downstream extraction. Defaults to 500.

Output Schema

NameRequiredDescriptionDefault
dryRunNo
jobUidNoJob UID; pass to listJobs / cancelJob to track or cancel a long backfill.
streamsNo
connectorYes
itemsAppliedYesItems turned into episodes (or, in a dry run, that WOULD be).
itemsSkippedYesItems skipped because their content hash was unchanged (idempotent re-ingest).
episodesAppendedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the trust model (ingested content is UNTRUSTED; facts land proposed and capped, never superseding your own) and the return shape (itemsApplied/Skipped plus a jobUid). It omits auth/permission requirements beyond the granola key hint and says nothing about idempotency or repeat-run behavior.

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

Conciseness5/5

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

Opens with the action and outcome in one clause, then packs connector selection, optional knobs, trust model, and return value into three dense sentences with zero filler. Parenthetical asides are used efficiently rather than sprawling.

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 6-parameter mutating ingestion tool, the description covers the safety model, refusals, per-connector prerequisites, and the return report, and an output schema exists to carry return detail. A gap remains around the jobUid's lifecycle (polling via `listJobs`/`waitForIdle`) and how this differs from `ingestSource`.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it groups which parameters apply to which connector, restates defaults (personal), and characterizes maxItems/maxExtractionCalls as run bounds and dryRun as a count-only preview. The enum for scope is reinforced with the project-refusal rationale.

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 ('Connect') and resource ('a source') plus the key scope ('bounded first backfill into the graph'), which is far more informative than a bare name. It implicitly separates itself from the ongoing-ingest sibling (`ingestSource`) via 'first backfill', but never names that sibling outright, so an agent must infer the distinction.

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

Usage Guidelines4/5

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

Gives per-connector guidance (repoPath for file-based, stored API key for granola, `maz source add granola` to set it) and explains dryRun as the preview/consent gate. It also states a hard exclusion ('Refuses project scope'). It stops short of saying when to prefer this over `ingestSource` or `listSources`.

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