Test-PodeMcpTool
SYNOPSIS
Tests the existence of an MCP tool.
SYNTAX
Test-PodeMcpTool [[-Name] <String>] [[-Group] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
DESCRIPTION
Tests whether an MCP tool exists, or if it exists in the specified group.
EXAMPLES
EXAMPLE 1
# test for the existence of a specific MCP tool by name from a default group
Test-PodeMcpTool -Name 'GreetPerson' -Group 'default'
EXAMPLE 2
# test for the existence of any MCP tools in a specific group
Test-PodeMcpTool -Group 'custom'
EXAMPLE 3
# test for the existence of a non-existent tool, which will return false
Test-PodeMcpTool -Name 'NonExistentTool'
PARAMETERS
-Group
The Group in which to check for the MCP tool(s).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The Name of the MCP tool, if not specified the function will check if any tools exist in the specified group.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.