Skip to main content
Glama

Nacos MCP Server

Official
by nacos-group
Apache 2.0
6
  • Linux
  • Apple

list_services

Retrieve a list of services under a specified namespace, with or without instance details. Optimize memory and network usage by controlling the withInstances parameter for efficient data retrieval. Supports pagination and filtering by group or service name patterns.

Instructions

This interface retrieves the list of services under a specified namespace. The response format depends on the withInstances parameter:withInstances=true: Returns service details with instances (ServiceDetailInfo objects). withInstances=false: Returns service metadata without instances (ServiceView objects). **NOTE: ** When withInstances=true, The API may cost too much memory and networks, If Only want get instance list with little or one service, Suggest use withInstances=false with List Service Instances.

Input Schema

NameRequiredDescriptionDefault
groupNameParamNoThe groupName pattern of services, default null means all group if missing. if not null, server will search all service match groupName both prefix and subfix, such as: input `test`, groupName `test`, `atest`, `testb`, `atestb` will all matched
ignoreEmptyServiceNoWhether ignore the empty service in result, default is true
namespaceIdNoThe namespaceId of services, default is `public` if missing
pageNoYesThe current page number, default is 1.
pageSizeYesThe size of services in each page, default is 100
serviceNameParamNoThe serviceName pattern of services, default null means all service if missing. if not null, server will search all service match serviceName both prefix and subfix, such as: input `test`, serviceName `test`, `atest`, `testb`, `atestb` will all matched
withInstancesNoWhether contain instances under each services in result, recommend and default is false

Input Schema (JSON Schema)

{ "properties": { "groupNameParam": { "description": "The groupName pattern of services, default null means all group if missing. if not null, server will search all service match groupName both prefix and subfix, such as: input `test`, groupName `test`, `atest`, `testb`, `atestb` will all matched", "type": "string" }, "ignoreEmptyService": { "description": "Whether ignore the empty service in result, default is true", "type": "bool" }, "namespaceId": { "description": "The namespaceId of services, default is `public` if missing", "type": "string" }, "pageNo": { "description": "The current page number, default is 1.", "type": "int" }, "pageSize": { "description": "The size of services in each page, default is 100", "type": "int" }, "serviceNameParam": { "description": "The serviceName pattern of services, default null means all service if missing. if not null, server will search all service match serviceName both prefix and subfix, such as: input `test`, serviceName `test`, `atest`, `testb`, `atestb` will all matched", "type": "string" }, "withInstances": { "description": "Whether contain instances under each services in result, recommend and default is false", "type": "bool" } }, "required": [ "pageNo", "pageSize" ], "type": "object" }

Other Tools from Nacos MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nacos-group/nacos-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server