| 332 | } |
| 333 | |
| 334 | static bool append_yaml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect, |
| 335 | cbm_graph_tier_t tier) { |
| 336 | const profile_tool_t *tools = NULL; |
| 337 | size_t count = 0U; |
| 338 | tier_tool_set(tier, &tools, &count); |
| 339 | for (size_t i = 0U; i < count; i++) { |
| 340 | char identifier[160]; |
| 341 | if (!tool_identifier(dialect, tools[i], identifier, sizeof(identifier)) || |
| 342 | !profile_buffer_append(buffer, " - ") || !profile_buffer_append(buffer, identifier) || |
| 343 | !profile_buffer_append(buffer, "\n")) { |
| 344 | return false; |
| 345 | } |
| 346 | } |
| 347 | return true; |
| 348 | } |
| 349 | |
| 350 | static bool append_csv_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect, |
| 351 | cbm_graph_tier_t tier) { |
no test coverage detected