get_api_spec
Retrieve raw OpenAPI, AsyncAPI, GraphQL, or other API specs for a Backstage entity to understand endpoints, schemas, and authentication before writing integration code.
Instructions
Retrieve the raw API specification (OpenAPI YAML/JSON, AsyncAPI, GraphQL schema, etc.) for a specific API entity. The spec content can be used to understand available endpoints, schemas, and authentication requirements for writing integration code.
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": {
"entityRef": "<entityRef>"
},
"name": "get_api_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityRef | Yes | API entity reference, e.g. 'api:default/payment-api'. Use list_api_specs to find available APIs. |