Skip to main content
Glama

Detect MCP Protocol

detect_mcp_protocol
Read-onlyIdempotent

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 or 403 on at least one revision and accepted none; pass a credential to see which revisions it speaks, or create the test with mcpProtocolRevision ANY 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.

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?

Annotations cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds what annotations cannot: it discloses that up to seven requests are made on the customer's behalf. It also defines all four outcome values and what data is returned for failed revisions (status, content type, first bytes).

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-loads the probe action and revision list, then follows with outcomes and the create_api_test linkage — good ordering with no filler. It is dense to the point of being a single long block, which slightly hurts scanability.

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?

There is no output schema, so the description carries the burden of describing return values, which it does thoroughly via the enumerated outcomes and per-revision failure details. An agent has everything needed to call it and interpret the result.

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 genuine meaning: it explains when mcpCredentialId matters (servers that refuse with 401/403) and ties it to list_api_test_credentials-adjacent workflow. Minor missed opportunity to state that the probe is unconditional across all revisions regardless of params.

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 ('Probe a remote MCP server') and enumerates the exact protocol revisions covered, so an agent knows precisely what is being tested. It is clearly distinguishable from siblings like create_api_test, which it explicitly precedes.

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?

Explicitly says 'Use this before create_api_test to choose mcpProtocolRevision' and explains the three downstream choices (ANY, NEWEST_SUPPORTED, dated revision). It also gives conditional next steps per outcome, e.g. passing a credential or falling back to ANY when AUTH_REQUIRED is returned.

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