Skip to main content
Glama

Get Agent Connection

get_agent_connection
Read-only

Return this agent's endpoint connection status and platform configuration schema.

    Reports whether the agent has a verified direct endpoint or active
    connector, its transport mode, configured endpoint URL and auth scheme,
    whether a credential is already stored, and the `platform_config`
    fields and `auth_schemes` supported by its platform. Stored secret
    values are never returned.
    

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": {
      "agent_id": "<agent_id>"
    },
    "name": "get_agent_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesStable agent ID from list_agents or create_agent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds real context beyond that: it discloses that stored secret values are never returned, which is exactly the kind of security-relevant behavior an agent cannot learn from the annotations. It stops short of describing the response shape or error behavior, so not 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?

The definition is front-loaded with the core purpose and then a single enumerated sentence covering the returned facts; every clause maps to something the caller learns. It is slightly list-heavy but not padded or redundant.

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 read-only single-parameter tool with no output schema, the description carries the return-value burden well by enumerating each reported field, including the negative case (secrets never returned). What remains thin is the structure of platform_config and what an unverified/no-connector result looks like.

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?

There is a single parameter with 100% schema description coverage, and the schema already tells the agent to source the ID from list_agents or create_agent. The description adds no additional meaning about agent_id, so the baseline 3 for high-coverage schemas applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource: return the agent's endpoint connection status and platform configuration schema. The second sentence enumerates the exact facts reported (verified endpoint vs. connector, transport mode, endpoint URL, auth scheme, credential presence, platform_config fields, auth_schemes), so an agent knows precisely what it gets. It never names or contrasts the nearby siblings prepare_agent_connection or get_agent_status, which is the only thing keeping it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement, no exclusions, and no alternative named. Usage is only implied: the emphasis on whether a connection is verified and whether a credential is stored suggests this is a pre-flight check before running an agent, but the agent must infer that. Adequate but with a clear gap.

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.