Skip to main content
Glama

Connect an integration

create_integration

Connect an integration

Stores the credentials and settings for one third-party service and returns the new integration's identifier. The integration is created active, but connecting it does not by itself let an agent use it: it still has to be assigned to an agent or chatbot. config is a JSON string, not a nested object, so serialise it before sending; the keys it must contain are the ones listed under configFields for this type in GET /integrations/types. A config that contains the mask ******** anywhere is refused with 400 and error code masked_without_stored_value: the mask stands for a stored secret, and a new integration has none, so send the real values. Keys inside config that only the server writes (the connection keys and toolPermissions) are dropped before the integration is stored. Nothing is contacted at creation time, so a wrong credential is only noticed later: call the test endpoint afterwards to confirm the connection works. A WhatsApp integration whose phone number is already connected in an active integration of another account is refused with 409 and error code conflict. A Genesys Cloud integration (type genesys_cloud) follows its own rules.

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": {
      "body": "<body>"
    },
    "name": "create_integration"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe service to connect, a name to recognise it by, an optional description, and `config`: a JSON string holding the fields that type requires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, non-idempotent write; the description adds far more than that, including the active-but-unusable state, a specific 400 rejection for masked values, silent dropping of server-owned keys, a 409 conflict case for duplicate WhatsApp numbers, and the fact that no credential is validated at creation time.

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?

It is front-loaded with purpose and identifier return value before moving into constraints, and nearly every sentence carries a distinct operational fact. It is dense and long for a single paragraph, and the trailing 'Genesys Cloud follows its own rules' sentence is a dangling pointer rather than actionable content.

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 one-parameter creation tool with no output schema, it covers the return value, the cross-reference needed to build `config`, the error cases, and the required follow-up steps. An agent has everything needed to invoke it correctly and to know it is not finished after the call.

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

Parameters5/5

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

Although schema coverage is already 100%, the description adds meaning the schema cannot convey: `config` must be a serialised JSON string rather than a nested object, its required keys are the ones listed under `configFields` in GET /integrations/types, and sending the `********` mask will be refused. That is genuinely useful guidance beyond the field descriptions.

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 gives a specific verb and resource ('Stores the credentials and settings for one third-party service and returns the new integration's identifier') rather than restating the title. It also positions the tool against siblings by naming the assignment step and the test endpoint an agent must reach for afterwards.

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?

It clearly explains the follow-on workflow: creation does not by itself make the integration usable, it must be assigned to an agent or chatbot, and the test endpoint should be called afterwards because nothing is contacted at creation time. The 'when not to use' side is only implicit (this is create, not update), so it stops just short of a full 5.

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.