gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Incomplete `FunctionDeclaration` for Custom Tools: AI Requires Manual Source Inspection for Arguments

Open jintrick opened this issue 1 year ago • 3 comments

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 avatar Aug 21 '25 23:08 jintrick

@jintrick Thanks for filling this issue! Could you please provide some repro steps.

galdawave avatar Aug 22 '25 00:08 galdawave

i want to work on this ,is this up?

devesssi avatar Aug 25 '25 01:08 devesssi

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.

srithreepo avatar Oct 01 '25 01:10 srithreepo