Skip to main content
Glama

update_data_source

Destructive

Updates the metadata of an existing source (cadence, connectionInfo, extractionLogic). The connectionInfo provided is MERGED key by key into the existing one by default (keys not sent back are kept); connectionInfoMode: 'replace' gives an explicit full replacement. If connectionInfo contains a key that looks like a credential (password/token/secret/api_key/…), even nested at any depth, or a value that embeds one (user:password@host in an address, a password/token parameter, a private key — extractionLogic included), the WHOLE call is refused with an explicit error naming the offending key — no silent filtering, nothing is written. A secret is pointed at by REFERENCE only (connectionInfo.env_var or vault_ref): its value is not stored in the schema.

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": {
      "id": "<id>"
    },
    "name": "update_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
descNo
nameNo
colorKeyNo
sourceTypeNo
connectionInfoNoMERGED into the existing connectionInfo, key by key (update_cell pattern): only the keys provided are written, the others stay. `connectionInfoMode: 'replace'` REPLACES the old one ENTIRELY (keys not sent back are lost).
refreshCadenceNo
extractionLogicNo
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).
connectionInfoModeNo'merge' (DEFAULT): the `connectionInfo` provided is merged key by key into the existing one, keys not mentioned are kept. 'replace': the `connectionInfo` provided REPLACES the old one ENTIRELY (any key not sent back is lost) — requires `connectionInfo` (an empty `{}` clears everything).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed1 schema field changed
    • addedInput schema / properties / extractionLogic / maxLength
      Added value: +20000
  4. Changed3 schema fields changed
    • changedInput schema / properties / connectionInfo / description
      Previous value: -"FUSIONNÉ dans le connectionInfo existant, clé par clé (patron update_cell) : seules les clés fournies sont écrites, les autres restent. `connectionInfoMode: 'replace'` REMPLACE l'ancien EN ENTIER (les clés non renvoyées sont perdues)."New value: +"MERGED into the existing connectionInfo, key by key (update_cell pattern): only the keys provided are written, the others stay. `connectionInfoMode: 'replace'` REPLACES the old one ENTIRELY (keys not sent back are lost)."
    • changedInput schema / properties / connectionInfoMode / description
      Previous value: -"'merge' (DÉFAUT) : `connectionInfo` fourni est fusionné clé par clé dans l'existant, les clés non mentionnées sont conservées. 'replace' : `connectionInfo` fourni REMPLACE l'ancien EN ENTIER (toute clé non renvoyée est perdue) — nécessite `connectionInfo` (`{}` vide tout)."New value: +"'merge' (DEFAULT): the `connectionInfo` provided is merged key by key into the existing one, keys not mentioned are kept. 'replace': the `connectionInfo` provided REPLACES the old one ENTIRELY (any key not sent back is lost) — requires `connectionInfo` (an empty `{}` clears everything)."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
  5. Changed2 schema fields changed
    • changedInput schema / properties / connectionInfo / description
      Previous value: -"FUSIONNÉ dans le connectionInfo existant, clé par clé (patron update_cell) : seules les clés que tu fournis sont écrites, les autres restent. Pour REMPLACER l'ancien EN ENTIER (perdre les clés non renvoyées), passe `connectionInfoMode: 'replace'`."New value: +"FUSIONNÉ dans le connectionInfo existant, clé par clé (patron update_cell) : seules les clés fournies sont écrites, les autres restent. `connectionInfoMode: 'replace'` REMPLACE l'ancien EN ENTIER (les clés non renvoyées sont perdues)."
    • changedInput schema / properties / connectionInfoMode / description
      Previous value: -"'merge' (DÉFAUT) : `connectionInfo` fourni est fusionné clé par clé dans l'existant, les clés non mentionnées sont conservées. 'replace' : `connectionInfo` fourni REMPLACE l'ancien EN ENTIER (toute clé non renvoyée est perdue) — nécessite `connectionInfo` (passe `{}` pour tout vider)."New value: +"'merge' (DÉFAUT) : `connectionInfo` fourni est fusionné clé par clé dans l'existant, les clés non mentionnées sont conservées. 'replace' : `connectionInfo` fourni REMPLACE l'ancien EN ENTIER (toute clé non renvoyée est perdue) — nécessite `connectionInfo` (`{}` vide tout)."
  6. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds substantial behavior beyond them: default key-by-key merge, full replacement under 'replace', and a hard fail-fast credential policy that refuses the whole call rather than silently filtering. It also clarifies the secrets-by-reference model (env_var / vault_ref), which is exactly the operational context an agent needs before attempting a mutation.

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?

Front-loaded with the core purpose, then escalating to merge semantics and the credential policy in a logical order, with no filler sentences. The credential paragraph is dense and slightly repetitive ('no silent filtering, nothing is written' plus 'refused with an explicit error'), which keeps it from a 5.

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?

For a destructive, nested-object mutation tool with no output schema, the description covers the two things that actually determine correct invocation: how partial updates land (merge vs replace) and what causes an outright rejection. Nothing needed to call it safely is missing.

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 description coverage is only 30% across 10 parameters, so the description must compensate; it does so for the highest-risk parameters (connectionInfo merge/targeting semantics, connectionInfoMode, extractionLogic credential scanning, cadence). It leaves id, name, desc, colorKey, sourceType and expectedProjectId unaddressed, though the schema already documents expectedProjectId.

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?

States a specific verb and resource ('Updates the metadata of an existing source') and enumerates the fields touched (cadence, connectionInfo, extractionLogic). An agent can immediately distinguish this from add_data_source and delete_data_source without opening any schema.

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 clear context for operation: this modifies an existing source, with explicit guidance on the merge-vs-replace decision through connectionInfoMode. It stops short of naming alternatives or stating exclusions (e.g., when to prefer add_data_source or how to recover from a replace), so it sits just below the top band.

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.