| 916 | }; |
| 917 | |
| 918 | static const tool_annotation_def_t *mcp_tool_annotations(const char *name) { |
| 919 | size_t count = sizeof(TOOL_ANNOTATIONS) / sizeof(TOOL_ANNOTATIONS[0]); |
| 920 | for (size_t i = 0; i < count; i++) { |
| 921 | if (strcmp(TOOL_ANNOTATIONS[i].name, name) == 0) { |
| 922 | return &TOOL_ANNOTATIONS[i]; |
| 923 | } |
| 924 | } |
| 925 | return NULL; |
| 926 | } |
| 927 | |
| 928 | static void mcp_add_json_schema(yyjson_mut_doc *doc, yyjson_mut_val *obj, const char *key, |
| 929 | const char *schema_json) { |