static fn (): string => 'ok', 'name' => 'weather_lookup', 'title' => 'Weather Lookup', 'description' => null, 'annotations' => null, 'inputSchema' => [ 'type' => 'object', 'properties' => new \stdClass(), 'required' => null, ], 'icons' => null, 'meta' => null, 'outputSchema' => null, ], ]; $loader = new ArrayLoader($tools); $registry = new Registry(); $loader->load($registry); $toolRef = $registry->getTool('weather_lookup'); $this->assertSame('Weather Lookup', $toolRef->tool->title); } }