magento_trace_api
Trace any Magento REST or GraphQL endpoint from URL to concrete implementation by parsing webapi.xml, resolving dependency injection, and reading method bodies, returning the full call chain in a single request.
Instructions
Trace a REST or GraphQL API endpoint from URL to implementation. Parses webapi.xml to find the service interface, resolves the DI preference to the concrete class, reads the execute/method body, and checks di.xml for constructor arguments. Returns the complete chain in one call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "magento_trace_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | REST API URL pattern to trace. Example: "/V1/orders/:orderId/items", "/V1/carts/mine/payment-information" | |
| method | No | HTTP method (GET, PUT, POST, DELETE). Default: any. | |
| interfaceName | No | Alternative: service interface class name. Example: "ChangePaymentMethodInterface" |