Skip to main content
Glama

add_data_source

Creates a data-source block (kind='data-source') with its metadata (sourceType, refreshCadence, descriptive connectionInfo, no credentials). 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 — nothing is written. A secret is pointed at by REFERENCE only (connectionInfo.env_var = a variable name, or vault_ref = a vault path): its value is not stored in the schema. Fits when the user mentions an external source (Salesforce, internal database, file, event stream…).

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": "<name>"
    },
    "name": "add_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX position in pixels. x/y omitted (recommended): automatic placement (column dedicated to sources, same slot as `auto_layout_mcd`), then `auto_layout_mcd` for the final tidy-up.
yNoY position in pixels. See x — absent = automatic placement.
idYesUnique kebab-case ID
descNo
nameYesDisplay name
widthNo
heightNo
colorKeyNo
sourceTypeNo
connectionInfoNo
refreshCadenceNo
extractionLogicNo
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Unique kebab-case ID (e.g. 'salesforce-prod')"New value: +"Unique kebab-case ID"
  2. 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)."
  3. 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."
  4. Changed1 schema field changed
    • addedInput schema / properties / extractionLogic / maxLength
      Added value: +20000
  5. Changed5 schema fields changed
    • 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."
    • changedInput schema / properties / id / description
      Previous value: -"ID unique kebab-case (ex: 'salesforce-prod')"New value: +"Unique kebab-case ID (e.g. 'salesforce-prod')"
    • changedInput schema / properties / name / description
      Previous value: -"Nom affiché"New value: +"Display name"
    • changedInput schema / properties / x / description
      Previous value: -"Position X en pixels. x/y omis (recommandé) : placement automatique (colonne dédiée aux sources, même logement que `auto_layout_mcd`), puis `auto_layout_mcd` pour la mise au propre finale."New value: +"X position in pixels. x/y omitted (recommended): automatic placement (column dedicated to sources, same slot as `auto_layout_mcd`), then `auto_layout_mcd` for the final tidy-up."
    • changedInput schema / properties / y / description
      Previous value: -"Position Y en pixels. Voir x — absent = placement auto."New value: +"Y position in pixels. See x — absent = automatic placement."
  6. Changed2 schema fields changed
    • changedInput schema / properties / x / description
      Previous value: -"Position X en pixels. OMETS x/y (recommandé) : placement automatique (colonne dédiée aux sources, même logement que `auto_layout_mcd`), puis `auto_layout_mcd` pour la mise au propre finale."New value: +"Position X en pixels. x/y omis (recommandé) : placement automatique (colonne dédiée aux sources, même logement que `auto_layout_mcd`), puis `auto_layout_mcd` pour la mise au propre finale."
    • changedInput schema / properties / y / description
      Previous value: -"Position Y en pixels. Voir x — laisser absent = placement auto."New value: +"Position Y en pixels. Voir x — absent = placement auto."
  7. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare it is non-read-only, non-destructive and closed-world. The description adds substance beyond that: credential-like keys at any depth cause the WHOLE call to be refused with nothing written, and secrets must be referenced via env_var/vault_ref rather than stored. That is exactly the failure-mode context an agent needs before calling.

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 action and the refusal rule, then the usage trigger. It is dense and parenthetical-heavy, but nearly every clause carries a distinct constraint; only the trailing ellipsis examples are expendable.

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 13-parameter creation tool with a nested object and no output schema, the description covers the highest-risk behavior (credential rejection, nothing written) and the data-source domain semantics. It leaves positioning and project-targeting parameters to the schema, which documents them adequately.

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?

With schema coverage at 38% across 13 parameters, the description compensates by explaining the connectionInfo contract (reference-only secrets via env_var/vault_ref), the credential-key prohibition including extractionLogic, and the meaning of sourceType/refreshCadence. It says nothing about x/y/width/height/colorKey/desc/expectedProjectId, so a few gaps remain.

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 ("Creates a data-source block (kind='data-source')") plus the payload it carries (sourceType, refreshCadence, connectionInfo). An agent can distinguish this from delete_data_source/update_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 an explicit trigger: "Fits when the user mentions an external source (Salesforce, internal database, file, event stream…)". It does not name the update/delete siblings as alternatives or state when not to use it, so it stops short of a full routing rule.

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.