Skip to main content
Glama

Save Data Sources

save_data_sources
DestructiveIdempotent

Save the tools a person says hold their records (where they sell, keep stock, and buy) to their Foundations answers, the same list the Foundations page shows and edits. add/remove take tool names or catalog keys from get_data_sources (e.g. "Shopify", "qbo", "Excel"); a name Spark does not know is kept as the person's own tool. Only the tools list changes; the page's other answers are kept. remove overwrites an earlier answer, so remove only what the person said they no longer use. When the person says to skip a source for now ("not now", "skip QuickBooks"), pass it in skip: the connect queue stops presenting it and setup moves on; unskip puts it back. When they say what a tool holds, pass holds (tool name -> record kinds); for a kind Spark cannot import from that tool, Spark records an integration request its team reviews, and an export stays the way in. The onboarding intent's tool lists follow this list. Save everything the person picked in one call: add and remove both take whole lists. otherWays replaces the answers that name no tool: paper_or_memory (records on paper or in their head) and starting_fresh (no records yet); [] clears them. A tool the picker does not show goes in add by name. validateOnly=true previews without writing. Saving answers never connects anything or marks a step ready: readiness comes only from records Spark has measured. Requires an operator (unpinned) credential with write access.

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": "save_data_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoTools to add, by name or catalog key. Up to 64 in all.
skipNoSaved tools (or tools in add) the person wants to skip for now. The connect queue stops presenting them; they stay saved.
holdsNoWhat a tool holds, by tool name (saved, or in add): record kinds from sales_history, purchase_orders, stock_on_hand, products. Each kind Spark cannot import from that tool is recorded as an integration request.
removeNoTools to remove, by name or catalog key. Only what the person said they no longer use.
unskipNoSkipped tools to present in the connect queue again.
otherWaysNoAnswers that name no tool, replacing the saved ones: paper_or_memory, starting_fresh. [] clears them; omit to keep them.
validateOnlyNotrue = preview the resulting list without writing.

Output Schema

NameRequiredDescriptionDefault
addedNo
savedNo
toolsNo
removedNo
skippedNo
summaryNo
otherWaysNo
unskippedNo
skippedToolsNo
unrecognizedNo
validateOnlyNo
intentChangedNo
plannedChannelsNo
integrationRequestsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, but the description goes further by bounding the blast radius ('Only the tools list changes; the page's other answers are kept'), explaining that remove overwrites a prior answer, that saving never connects anything or marks a step ready, that unimportable record kinds spawn a team-reviewed integration request, and that an operator (unpinned) credential with write access is required. This adds substantive behavior beyond the annotations rather than restating them.

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?

The text is dense but front-loaded: purpose first, then per-parameter guidance, then the guardrails and credential requirement. Every sentence carries operational meaning, though the single-paragraph block and a few restatements of what the schema already says (skip, holds) cost some economy.

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

Completeness5/5

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

With an output schema present, the description need not explain return values, and it instead covers the things structured fields cannot: credential scope, the fact that this is a pure answer-save with no connection side effects, batch semantics, custom-tool fallback, and preview mode. For a 7-parameter mutation tool with destructive and idempotent hints, this leaves no material gap for correct invocation.

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 baseline is 3; the description still adds meaning beyond it by explaining that unknown names in add are kept as the person's own custom tool, that skip affects the connect queue rather than deletion, that holds triggers an integration request when Spark cannot import a kind, and that [] in otherWays clears while omission preserves. Some of this overlaps the schema's own parameter descriptions, so it is not a full 5, but it is clearly above the baseline.

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

Purpose5/5

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

The first sentence names a specific verb (save) and a precise resource (the tools list within a person's Foundations answers), and positions it against the sibling it complements by noting it is 'the same list the Foundations page shows and edits' and that get_data_sources supplies the names/keys. An agent can tell this apart from read-only siblings like get_data_sources or get_data_coverage without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing rules are given for every branch: add for new sources, remove only for what the person said they no longer use (with a warning that removal overwrites an earlier answer), skip for 'not now'/'skip QuickBooks' phrasing versus unskip, holds for stated record kinds, and otherWays for tool-less answers. It also tells the agent to batch ('Save everything the person picked in one call') and to use validateOnly to preview, which is exactly the when/how guidance an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources