Skip to main content
Glama

Set connection security

set_connection_security

On ONE Custom API endpoint or MCP server: present a client certificate (mutual TLS) by certificate name, or "" to remove it, and/or attach the short-lived signed X-Agent-Identity header naming the calling agent.

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": "set_connection_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpoint_idNoCustom API endpoint id.
mcp_server_idNoMCP server id.
client_certificateNoClient certificate name (or id); empty string removes it.
send_agent_identityNoAttach the agent identity header to every call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the certificate is presented by name and that an empty string removes it, and that the identity header is short-lived, signed, and names the calling agent. It does not describe permission requirements or the result of invalid target combinations, but the annotations already declare the tool is mutating and not read-only.

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?

One front-loaded sentence covers scope, actions, and removal semantics without filler. The sentence is dense but readable, and 'and/or' is a compact way to express optional combinations.

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 four-parameter setter with no output schema, the description covers what is changed and how to clear the certificate, while annotations cover the safety profile. Gaps remain around prerequisites, exactly-one-target enforcement, and whether both target IDs may be supplied.

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 adds some value by explaining certificate removal and the nature of the agent identity header. It does not add guidance on choosing between endpoint_id and mcp_server_id or on their mutual exclusivity.

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 description states the exact scope ('On ONE Custom API endpoint or MCP server') and specifies the two security mechanisms it configures: a client certificate for mutual TLS and the X-Agent-Identity header. It is more specific than the title but does not explicitly differentiate itself from similarly named security setters such as set_endpoint_auth.

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?

The phrase 'On ONE Custom API endpoint or MCP server' implies the tool should target a single resource, and 'and/or' clarifies that the certificate and identity header can be set independently or together. However, it gives no explicit when-to-use guidance, prerequisites, or exclusions versus sibling security tools.

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