| 344 | } |
| 345 | |
| 346 | static bool append_csv_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect, |
| 347 | cbm_graph_tier_t tier) { |
| 348 | const profile_tool_t *tools = NULL; |
| 349 | size_t count = 0U; |
| 350 | tier_tool_set(tier, &tools, &count); |
| 351 | for (size_t i = 0U; i < count; i++) { |
| 352 | char identifier[160]; |
| 353 | if (!tool_identifier(dialect, tools[i], identifier, sizeof(identifier)) || |
| 354 | (i > 0U && !profile_buffer_append(buffer, ",")) || |
| 355 | !profile_buffer_append(buffer, identifier)) { |
| 356 | return false; |
| 357 | } |
| 358 | } |
| 359 | return true; |
| 360 | } |
| 361 | |
| 362 | static bool append_toml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect, |
| 363 | cbm_graph_tier_t tier, bool leading_items) { |
no test coverage detected