Skip to main content
Glama

Ask to connect to other servers

request_connectivity
DestructiveIdempotent

Ask the operator of the installation to let a lambda's code connect to other servers - call an API with HttpClient, open a socket, a WebSocket or mail client - or read where that stands. Without it, code that connects does not compile (LAMBDA0003); a lambda whose tier connects by default (production, usually) may anyway, and read_lambda says connectivity.allowed. Ask only where the server has to make the call - a key that must not reach the browser, an API browsers may not call - and fetch a public API from the lambda's page otherwise. Say what it connects to and why. The operator decides, which takes a while: tell the user it was asked, and build what does not connect meanwhile. withdraw: true takes the request back, or gives up what was allowed - only when the user asks. With only privateKey it returns where it stands.

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": {
      "privateKey": "<privateKey>"
    },
    "name": "request_connectivity"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeNoWhat it connects to and why, for the operator who decides: the addresses or services and what the lambda does with them - 'api.stripe.com, to take payments for the shop', not 'HTTP calls'. Needed to ask; left out, it returns where it stands.
withdrawNoTake the request back, or give up what was allowed - code that connects then no longer compiles. Only when the user asks.
privateKeyYesThe editor key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the compile error LAMBDA0003 when not granted, that some tiers permit connectivity by default, that the operator decides and takes a while, and that withdraw:true revokes permission destructively so code stops compiling. This is consistent with destructiveHint=true rather than contradicting it; the only shortfall is that the eventual outcome/vocabulary of a decision is left implicit.

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?

Purpose and the core constraint are front-loaded and every sentence carries information; nothing is filler. It is dense and parenthetical, though, with several em-dash-clause sentences that take effort to parse, and the status-return note appears both at the start and the end.

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 permission-request tool with no output schema, the description covers the trigger (compile failure), the alternative path (read_lambda, browser-side fetch), the human-in-the-loop delay, the withdrawal semantics, and what the privateKey-only call returns. An agent has everything needed to decide and call correctly.

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 description coverage is 100% and the schema already spells out purpose, withdraw, and the privateKey-only status behavior, so the description largely restates structured data. It does add a concrete model of a good purpose value ("api.stripe.com, to take payments for the shop", not "HTTP calls"), but that example also appears in the schema.

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?

Opens with a specific verb-and-resource statement: ask the installation operator to let a lambda's code connect to other servers, with concrete examples (HttpClient, socket, WebSocket, mail client) and the dual read purpose ("read where that stands"). It is clearly distinguished from read_lambda, which is named as the place to check connectivity.allowed.

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 explicit when-to-use (server must make the call: a key that must not reach the browser, an API browsers may not call) and an explicit when-not (fetch a public API from the lambda's page otherwise). It also states the withdrawal condition ("only when the user asks") and directs the agent to read_lambda for the default tier case.

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.