document_add_server_variable
Add a variable to a server definition in OpenAPI 3.x documents. Specify name, default value, and optional description and enum values.
Instructions
Add a variable to a server definition (OpenAPI 3.x only)
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": {
"session": "<session>",
"nodePath": "<nodePath>",
"name": "<name>",
"default": "<default>"
},
"name": "document_add_server_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enum | No | JSON array of allowed values | |
| name | Yes | Variable name (e.g. environment) | |
| default | Yes | Default value | |
| session | Yes | Session name | |
| nodePath | Yes | Node path to the server | |
| description | No | Variable description |