Skip to content

Commit c1d3bb1

Browse files
committed
adds description
1 parent d3cfc23 commit c1d3bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mcp/Tools/SearchDocs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public function schema(JsonSchema $schema): array
3535
{
3636
return [
3737
'queries' => $schema->array()
38-
->items($schema->string())
38+
->items($schema->string()->description('Search query'))
3939
->description('List of queries to perform, pass multiple if you aren\'t sure if it is "toggle" or "switch", for example')
4040
->required(),
4141
'packages' => $schema->array()
42-
->items($schema->string())
42+
->items($schema->string()->description("The composer package name (e.g., 'symfony/console')"))
4343
->description('Package names to limit searching to from application-info. Useful if you know the package(s) you need. i.e. laravel/framework, inertiajs/inertia-laravel, @inertiajs/react'),
4444
'token_limit' => $schema->integer()
4545
->description('Maximum number of tokens to return in the response. Defaults to 10,000 tokens, maximum 1,000,000 tokens.'),

0 commit comments

Comments
 (0)