Summary
The ToolContext type is missing the metadata() method in its type definition, but the method does appear to exist at runtime.
Expected Behavior
The ToolContext type should include the metadata() method signature so TypeScript is aware of it.
Actual Behavior
TypeScript does not recognize metadata() as a valid method on ToolContext, but calling it at runtime works.
Impact
This causes type errors when trying to use metadata() in TypeScript code, requiring workarounds like type assertions.