document_add_parameter
Add a parameter to an API path item or operation, with options for name, location, type, required flag, and description.
Instructions
Add a parameter to a path item or operation
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>",
"path": "<path>",
"name": "<name>",
"location": "<location>"
},
"name": "document_add_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Parameter name | |
| path | Yes | The API path (e.g. /pets) | |
| type | No | Schema type (string, integer, number, boolean, array). Defaults to string | |
| method | No | HTTP method (omit to add to path item level) | |
| session | Yes | Session name | |
| location | Yes | Parameter location: query, path, header, cookie | |
| required | No | Whether the parameter is required | |
| description | No | Parameter description |