Skip to main content
Glama

Test a model connection

check_ai_connection
Read-onlyIdempotent

Tests whether Slatebox can reach a saved or new model connection, accept its key, list models, and get an answer with tool calls before the agent drafts. Saves nothing.

Instructions

Test whether Slatebox can reach a model connection (a provider key, or an OpenAI-compatible endpoint) before the Slatebox agent drafts with it.

Test AI. Tests your own or your team's saved connection (name) or one not yet saved (connection): whether Slatebox can reach it, whether it accepts the key, which models it lists, whether the model answers and whether it calls tools (which conversation, drafts and presentations need). Saves nothing. A saved key is only sent to the address it was saved for. A token needs ai:admin as well for level team. The server's keys are tested with ai.keys.test. On Slatebox Cloud an address must be public https; on a self-hosted Slatebox a model on the host is at host.docker.internal, not localhost.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_ai_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
levelNome (yours) or team (team admins).
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
connectionNo
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnly/non-destructive/idempotent, and the description adds real context beyond them: 'Saves nothing', the safeguard that a saved key is only sent to the address it was saved for, and the admin requirement for team level. It stops short of describing what a result looks like when a check fails or how the confirmation flow is triggered, keeping it 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body sags into a long run-on sentence and a stray fragment ('Test AI.'), and some phrasing repeats the title. It is dense with useful facts yet poorly structured, so it costs the reader more than it should.

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?

With no output schema and a five-parameter tool containing a nested connection object, the description covers what the test actually checks (reachability, key acceptance, model listing, answering, tool calling) plus auth and host constraints. The main omission is how the confirm/idempotency handshake works in practice and what a failed check reports.

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

Parameters3/5

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

Schema coverage is 60%, so the schema already documents name, level, connection fields, confirm and idempotencyKey in detail. The description adds genuine meaning to the name-vs-connection distinction (saved vs not-yet-saved) and the baseUrl guidance, but leaves confirm/idempotencyKey and maxTokens/toolChoice to the schema. That is above baseline but not fully compensating for the uncovered parameters.

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 first sentence names a specific verb and resource ('Test whether Slatebox can reach a model connection') and scopes it to provider keys or OpenAI-compatible endpoints, with the purpose (pre-flight before the agent drafts). It also distinguishes the two modes of the tool (saved 'name' vs unsaved 'connection') and routes server-key testing to a different tool, ai.keys.test.

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 states when to use it (before the agent drafts), which alternative handles a different case (ai.keys.test for the server's keys), and the prerequisite that team-level tests need ai:admin. It also gives environment-specific constraints (public https on Slatebox Cloud, host.docker.internal on self-hosted), which guide correct invocation rather than leaving the agent to guess.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools