Skip to content

fix: use parameter description in generated tool JSON#153

Merged
Sanjusha-tridz merged 1 commit into
developfrom
fix/param-description
Feb 19, 2026
Merged

fix: use parameter description in generated tool JSON#153
Sanjusha-tridz merged 1 commit into
developfrom
fix/param-description

Conversation

@Sanjusha-tridz
Copy link
Copy Markdown
Collaborator

-Previously, the tool schema generation relied solely on the 'label' field, ignoring the 'description' field in the parameters table.

-This change updates 'prepare_function_params' and 'build_params_json_from_table' to prioritize 'param.description'. It now falls back to 'param.label' only if the description is empty. This ensures the AI agent receives more accurate context for function arguments.

 -Previously, the tool schema generation relied solely on the 'label' field, ignoring the 'description' field in the parameters table.

 -This change updates 'prepare_function_params' and 'build_params_json_from_table' to prioritize 'param.description'. It now falls back to 'param.label' only if the description is empty. This ensures the AI agent receives more accurate context for function arguments.
@Sanjusha-tridz Sanjusha-tridz merged commit 9aaa60c into develop Feb 19, 2026
1 of 3 checks passed
@Sanjusha-tridz Sanjusha-tridz deleted the fix/param-description branch February 19, 2026 05:41
esafwan pushed a commit that referenced this pull request Mar 10, 2026
fix: use parameter description in generated tool JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant