Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Fixter. If you published it, claim ownership there.

Detect MCP Protocol

detect_mcp_protocol
Idempotent

Probe a remote MCP server once over every protocol revision (2026-07-28 stateless, 2025-11-25 / 2025-06-18 / 2025-03-26 with sessions, 2024-11-05 HTTP+SSE) and report which it accepts, with the HTTP status, content type and first bytes for each it does not. Outcomes: DETECTED, AUTH_REQUIRED (the server refused the probe with HTTP 401, 402 or 403 on at least one revision and accepted none; pass a credential to see which revisions it speaks, or create the test with mcpTier UPTIME to check only that it is up), RATE_LIMITED, NONE. Use this before create_api_test to choose mcpProtocolRevision: ANY (the default) checks that the endpoint answers as an MCP server without asserting a revision; NEWEST_SUPPORTED follows the newest revision the server speaks; a dated revision pins the test to it. Makes up to seven requests to the server on the customer's behalf.

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": {
      "mcpUrl": "<mcpUrl>"
    },
    "name": "detect_mcp_protocol"
  }
}

Input Schema

NameRequiredDescriptionDefault
mcpUrlYesThe http(s) URL of the MCP server to probe
mcpCredentialIdNoId of a stored credential from list_api_test_credentials, for a server that needs authentication

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the outbound side-effect scope ('makes up to seven requests to the server on the customer's behalf'), the full outcome taxonomy (DETECTED, AUTH_REQUIRED, RATE_LIMITED, NONE) with the HTTP codes that trigger AUTH_REQUIRED, and what failure diagnostics are returned. This is exactly the context annotations cannot carry.

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 verb and resource, and nearly every clause carries operational information. The single dense paragraph mixes outcome semantics and call-site guidance, which slightly hurts scannability.

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 two-parameter, no-output-schema probe tool, the description covers scope, side effects, outcome states, error diagnostics and downstream usage. Nothing an agent needs in order to call it and interpret the result is missing.

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; the description still adds meaning by explaining when mcpCredentialId changes the result ('pass a credential to see which revisions it speaks'). It stops short of describing mcpUrl forms, but the schema already does that.

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 (probe) against a specific resource (a remote MCP server), enumerates the exact revisions covered, and says what the result contains. It is clearly distinct from the sibling write tool create_api_test, which it explicitly feeds.

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?

Gives an explicit sequencing rule ('Use this before create_api_test to choose mcpProtocolRevision') and then defines each resulting choice (ANY default, NEWEST_SUPPORTED, dated revision). It also handles the negative path: on AUTH_REQUIRED it says to pass a credential or switch to mcpTier UPTIME to check liveness only.

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