Skip to main content
Glama

Register a connection

create_connection

Register an OpenAI-compatible endpoint: kind=model makes each model pickable as connection// (subject to the Build Envelope); kind=agent is an external agent for create_connected_agent. The API key is NEVER taken here (it would sit in the conversation): add it in Governance > Connections.

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": {
      "ref": "<ref>",
      "name": "<name>",
      "kind": "<kind>",
      "base_url": "<base_url>",
      "models": "<models>"
    },
    "name": "create_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesLowercase letters, digits, hyphens (1-32); immutable.
kindYesmodel or agent.
nameYesDisplay name.
modelsYesUpstream model names it offers (an agent connection: exactly one).
statusNoactive or disabled.
billingNo{customer_pays_provider: bool (default true = provider cost 0), input_usd_per_million, output_usd_per_million}.
profileNoGovernance profile slug that checks every turn (REQUIRED for an agent connection).
base_urlYesThe OpenAI-compatible base URL (https, public), e.g. https://models.example.com/v1.
residencyNoWhere the endpoint runs.
descriptionNoWhat the connection is for.
capabilitiesNo{tools, streaming, vision: bool, context_window: int}.
default_modelNoThe model used when none is named (default: the first).
send_system_promptNoAgent connection: also send the platform agent's system prompt (default off).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world write; the description adds genuinely non-obvious behavior: credentials are deliberately excluded and must be added in Governance > Connections, and model exposure is conditional on the Build Envelope. The Build Envelope reference is left unexplained, which keeps this from a 5.

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?

Two tight sentences that front-load the action and then the mode semantics, with no filler. The final clause about the API key is well placed, though 'Build Envelope' is unexplained jargon that costs a little clarity.

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 nested objects and no output schema, the description covers the two things an agent could not infer: what kind controls and that credentials are out of scope. Remaining gaps (billing defaults, profile requirement, default_model fallback) are already documented in the schema, so the description is close to complete.

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 the baseline is 3, but the description adds meaning beyond the terse schema text for the most consequential parameter: it explains the downstream effect of kind=model (models become pickable at connection/<ref>/<model>) rather than just restating the enum. Other parameters (billing, residency, profile) rely entirely on the schema.

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 ('Register an OpenAI-compatible endpoint') and immediately splits the two modes the tool supports: kind=model makes each model pickable as connection/<ref>/<model>, while kind=agent is an external agent for create_connected_agent. That naming of a sibling makes it distinguishable from create_connected_agent and create_api_endpoint without opening schemas.

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 selection logic for the kind parameter and routes the credential step elsewhere ('The API key is NEVER taken here ... add it in Governance > Connections'), which is exactly the kind of when/when-not guidance an agent needs. It does not explicitly say when to prefer this over update_connection or get_connection, but the create-vs-update split is implied by the verb.

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