@mcp-z/mcp-gmail
Preparing search index...
mcp
toolFactories
labelsList
Function labelsList
labelsList
()
:
{
config
:
{
description
:
"List Gmail labels for label: query syntax. Case-sensitive."
;
inputSchema
:
ZodObject
<
{}
,
$strip
>
;
outputSchema
:
ZodObject
<
{
result
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
items
:
ZodArray
<
ZodObject
<
{
id
:
...
;
name
:
...
;
type
:
...
;
visibility
:
...
}
,
$strip
,
>
,
>
;
type
:
ZodLiteral
<
"success"
>
;
}
,
$strip
,
>
,
ZodObject
<
{}
,
$strip
>
,
]
,
"type"
,
>
;
}
,
$strip
,
>
;
}
;
handler
:
(
_args
:
Input
,
extra
:
EnrichedExtra
,
)
=>
Promise
<
{
content
:
{
text
:
string
;
type
:
"text"
}
[]
;
structuredContent
:
{
result
:
{
items
:
{
id
:
string
;
name
:
string
;
type
:
"user"
|
"system"
;
visibility
:
"labelShow"
|
"labelHide"
|
"labelShowIfUnread"
;
}
[]
;
type
:
"success"
;
}
;
}
;
}
,
>
;
name
:
string
;
}
Returns
{
config
:
{
description
:
"List Gmail labels for label: query syntax. Case-sensitive."
;
inputSchema
:
ZodObject
<
{}
,
$strip
>
;
outputSchema
:
ZodObject
<
{
result
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
items
:
ZodArray
<
ZodObject
<
{
id
:
...
;
name
:
...
;
type
:
...
;
visibility
:
...
}
,
$strip
,
>
,
>
;
type
:
ZodLiteral
<
"success"
>
;
}
,
$strip
,
>
,
ZodObject
<
{}
,
$strip
>
,
]
,
"type"
,
>
;
}
,
$strip
,
>
;
}
;
handler
:
(
_args
:
Input
,
extra
:
EnrichedExtra
,
)
=>
Promise
<
{
content
:
{
text
:
string
;
type
:
"text"
}
[]
;
structuredContent
:
{
result
:
{
items
:
{
id
:
string
;
name
:
string
;
type
:
"user"
|
"system"
;
visibility
:
"labelShow"
|
"labelHide"
|
"labelShowIfUnread"
;
}
[]
;
type
:
"success"
;
}
;
}
;
}
,
>
;
name
:
string
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@mcp-z/mcp-gmail
Loading...