Skip to main content
Glama
responsePriority.ts1.23 kB
/** * Response key priority ordering for YAML formatting * * This defines the order in which keys appear in YAML responses for optimal LLM readability. * Keys are ordered by importance: context → structure → data → pagination → status → hints */ export const RESPONSE_KEY_PRIORITY = [ // Context fields - most important for LLM understanding 'researchGoal', 'reasoning', // Instructions and response structure (bulk operations) 'instructions', 'results', 'summary', // Individual result structure 'status', 'path', // Data fields 'files', 'matches', 'content', 'structuredOutput', 'totalMatches', 'totalFiles', 'totalDirectories', 'totalSize', 'totalLines', 'contentLength', // Pagination fields 'pagination', 'charPagination', 'currentPage', 'totalPages', 'hasMore', 'charOffset', 'charLength', 'totalChars', 'filesPerPage', 'entriesPerPage', 'matchesPerPage', // Status fields 'isPartial', 'minificationFailed', 'warnings', 'error', 'errorCode', // Full data payload (for bulk operations) 'data', // Status hints - supplementary information 'hints', 'hasResultsStatusHints', 'emptyStatusHints', 'errorStatusHints', ];

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/bgauryy/local-explorer-mcp'

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