Skip to main content
Glama

get_api_reference

Retrieve Backstage API references for REST endpoints, GraphQL, and client libraries to support plugin development and framework customization.

Instructions

Get Backstage API reference including REST endpoints, GraphQL, and client libraries

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiNoSpecific API to retrieve (optional)

Implementation Reference

  • The handler function that executes the get_api_reference tool. It fetches the API reference content from the knowledge base, optionally filtered by the 'api' parameter, and returns it as JSON-formatted text.
    private getApiReference(api?: string) { const content = api ? this.knowledgeBase.api.content[api] : this.knowledgeBase.api.content; return { content: [ { type: 'text', text: JSON.stringify(content, null, 2), }, ], }; }
  • Input schema for the get_api_reference tool, defining an optional 'api' string parameter with predefined enum values for specific Backstage APIs.
    inputSchema: { type: 'object', properties: { api: { type: 'string', description: 'Specific API to retrieve (optional)', enum: ['catalogApi', 'scaffolderApi', 'techDocsApi', 'authApi', 'searchApi', 'proxyApi', 'graphqlApi'] } }
  • src/index.ts:78-91 (registration)
    Registration of the get_api_reference tool in the listTools response, specifying name, description, and input schema.
    { name: 'get_api_reference', description: 'Get Backstage API reference including REST endpoints, GraphQL, and client libraries', inputSchema: { type: 'object', properties: { api: { type: 'string', description: 'Specific API to retrieve (optional)', enum: ['catalogApi', 'scaffolderApi', 'techDocsApi', 'authApi', 'searchApi', 'proxyApi', 'graphqlApi'] } } } },
  • src/index.ts:180-181 (registration)
    Dispatch case in the CallToolRequest handler that routes get_api_reference calls to the getApiReference method.
    case 'get_api_reference': return this.getApiReference(args?.api as string);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PawelWaj/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server