Save an endpoint definition
add_endpointSave the definition of one call into your own system that the tester may make during a run (for example "create a voucher"). This only stores the definition: it sends no request itself. The tester sees only the name, the description and what the call returned. bodyTemplate may contain {{param}} placeholders the tester fills in. Headers (for example Authorization) are encrypted and never returned. Reference: https://testsy.dev/docs/mcp/
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": {
"projectId": "<projectId>",
"name": "<name>",
"description": "<description>",
"url": "<url>"
},
"name": "add_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https://… address | |
| name | Yes | Short name (up to 40 characters), for example create_voucher | |
| method | No | HTTP method (default POST) | |
| headers | No | Request headers, up to 20 (write-only) | |
| projectId | Yes | Project id (p_…) | |
| description | Yes | What it does and when to use it (up to 600 characters) | |
| bodyTemplate | No | Request body with {{param}} placeholders, optional |