get_env_variable
Retrieve the value of a specified environment variable, with an option to provide a default if the variable is not set.
Instructions
Get an environment variable value.
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": {
"name": "<name>"
},
"name": "get_env_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the environment variable | |
| default | No | Default value if variable not found (default: empty string) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |