Skip to main content
Glama

gateway.register_discovered_server

Register an externally discovered MCP server package to pin its resolved version for later provisioning; run this after registry search and before installation and startup.

Instructions

Register an externally-discovered MCP server package so it can be provisioned. Call this after gateway.search_registry to register the chosen package, then call gateway.provision to install and start it. Registration pins the version resolved from npm; gateway.provision refuses it until an operator approves that exact version (pmcp trust approve-package) or package policy allows it.

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": {
      "package": "<package>",
      "server_name": "<server_name>"
    },
    "name": "gateway.register_discovered_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesnpm package identifier (e.g. '@modelcontextprotocol/server-github')
env_varsNoRequired environment variable names (e.g. ['GITHUB_TOKEN'])
descriptionNoShort description of the server's purpose
server_nameYesLogical name for this server (e.g. 'github') used with gateway.provision

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.1
    • addedInput schema / properties / description / default
      Added value: +""
    • addedInput schema / properties / package / minLength
      Added value: +1
    • addedInput schema / properties / server_name / minLength
      Added value: +1
  2. First observedv1.18.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that registration pins the npm-resolved version, that provisioning is gated on approval of that exact version, and names the approval mechanism (pmcp trust approve-package) plus the policy alternative. It does not cover idempotency, duplicate server_name handling, or required permissions, so it stops short of full behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action, then sequencing, then the blocking constraint. Every sentence adds decision-relevant information; nothing is repeated from the schema or title.

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 registration step in a multi-tool workflow, the description covers ordering, version pinning, and the approval gate, which is what an agent needs to call it at the right time. Since there is no output schema, the omission of what registration returns (e.g., an id or pinned version handle) is a remaining gap.

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%, so all four parameters are already documented, including the server_name/ gateway.provision linkage. The description adds no syntax, format, or constraint detail beyond the schema, so baseline 3 applies.

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?

Names a specific verb and resource ('Register an externally-discovered MCP server package') and immediately scopes it against siblings by naming gateway.search_registry as the predecessor and gateway.provision as the successor, distinguishing it from connect_server/provision. An agent can place it in the workflow without opening another schema.

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 ordering: 'Call this after gateway.search_registry ... then call gateway.provision'. It also states the blocking condition (provision refuses until operator approval or package policy allows), which tells the agent when this step is necessary versus when it can be skipped.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.