Incomplete `FunctionDeclaration` for Custom Tools: AI Requires Manual Source Inspection for Arguments
What happened?
The AI agent cannot fully utilize custom tools because their FunctionDeclaration is incomplete, lacking essential parameter details like argument names and types. This forces the AI to manually inspect the custom tool's source code to determine correct invocation, undermining the FunctionDeclaration's purpose and hindering efficient, autonomous tool usage.
What did you expect to happen?
I expected the FunctionDeclaration for custom tools to be comprehensive, accurately detailing all parameters (names, types, descriptions). This complete declaration should allow the AI to understand and correctly invoke any custom tool without needing to inspect its source code, serving as the definitive interface.
Client information
- CLI Version: 0.1.22
- Git Commit: 5fe4e023
- Session ID: c29b4ea4-82e7-43c3-b323-9d642d7ecd06
- Operating System: win32 v22.17.1
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-flash
- Memory Usage: 139.9 MB
Login information
No response
Anything else we need to know?
No response
@jintrick Thanks for filling this issue! Could you please provide some repro steps.
i want to work on this ,is this up?
Closing this issue since we haven't heard back in a while. Please feel free to open a new issue if you are still seeing this problem.