Skip to content

codeql_database_create: improve error message for unrecognized kebab-case parameter names #212

@data-douser

Description

@data-douser

Context

Sub-issue of #208Area 2: database_create uses kebab-case params with unhelpful rejection message

Problem

The codeql_database_create tool accepts source-root (kebab-case) but rejects sourceRoot (camelCase) with:

Your input to the tool was invalid (must NOT have additional properties)

The error does not identify which property was rejected. LLM agents commonly default to camelCase JSON keys, making this a frequent first-invocation failure.

Requirements

  • Include the name of the unrecognized property in the error (e.g. unknown property 'sourceRoot' — did you mean 'source-root'?)
  • Consider accepting camelCase aliases for kebab-case parameters

Metadata

Metadata

Labels

bugSomething isn't workingserver

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions