portainer_service_inspect
Inspect a Docker Swarm service to retrieve its full definition, including spec, update status, and endpoint. Optionally reveal environment variable values.
Instructions
Get the full Swarm service definition (spec, update status, endpoint).
Credential-looking environment values in the container spec are masked as [REDACTED] unless reveal_env=true.
Args: service_id: Service ID or name (e.g. "arena-etl_backend") reveal_env: Return credential values unmasked (default false) endpoint_id: Target endpoint ID (uses default if omitted)
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": {
"service_id": "<service_id>"
},
"name": "portainer_service_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reveal_env | No | ||
| service_id | Yes | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |