Discover consumer usage
discover_consumer_usageScan consumer source code for provider API calls, capture file-and-line evidence, and draft the consumers.yaml entry covering HTTP, GraphQL, gRPC, SOAP, and AsyncAPI usage.
Instructions
Scan a consumer service's source code (inside the project) for calls to the provider, with file and line as evidence, and draft its consumers.yaml entry. HTTP paths, GraphQL query documents (exact fields read), gRPC stub calls, SOAP client calls, and AsyncAPI topic names.
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": {
"consumer_dir": "<consumer_dir>",
"spec": "<spec>"
},
"name": "discover_consumer_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| consumer_dir | Yes | ||
| consumer_name | No |