Skip to main content
Glama

Create datasource connection

create_connection

Create a datasource connection from credentials — the connect panel's credential form, as a tool. Call it with just datasource_id to be told which fields that datasource needs, then again with those values and a name. Re-using an existing name updates that connection's credentials. Only for datasources that are connected by credentials; the ones that sign in through the vendor's website (Google, Meta, LinkedIn…) cannot be created here and say so. Use link_datasource afterwards to point a client at the new connection, and test_connection to check it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoWhat to call this connection, e.g. "Client Stripe". Shown wherever connections are listed
credentialsNoThe credential values, keyed as the tool lists them. Omit to see the list
datasource_idYesDatasource alias (from datasources)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoEither the credential fields this datasource needs (when called without them), or the connection that was created — its id and name. Link it to a client with link_datasource.
successYesTrue when the call succeeded. A failure comes back as an error result instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only indicate non-read-only and non-destructive behavior. The description adds meaningful behavioral context: re-using an existing name updates that connection's credentials, the first call returns the field list, and unsupported datasources 'say so'. This goes beyond the annotations without contradicting them.

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?

Five sentences carry the full workflow: purpose, first call, second call, upsert caveat, unsupported datasources, and follow-up tools. There is no filler, and the most useful guidance appears early.

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?

Given the output schema exists, rich schema descriptions, and annotations, the description completes the picture: it explains the two-step interaction, the credential-only scope, the reuse/update behavior, and downstream tools to call. An agent has everything needed to invoke this correctly.

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 parameters are already documented. The description adds important semantics: datasource_id alone triggers a field-discovery response, credentials are provided in the format the tool lists, and name is needed on the second call. This enriches the structured schema meaningfully.

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 description states a specific verb and resource: 'Create a datasource connection from credentials.' It also differentiates this tool from related siblings by noting that link_datasource and test_connection are used afterwards, and that OAuth-based datasources cannot be created here.

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?

It gives explicit when-to-use guidance: call with just datasource_id to discover required fields, then call again with credentials and a name. It also states a clear exclusion — vendor-website OAuth datasources like Google and Meta cannot be created this way — and names the follow-up tools to use.

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