Skip to main content
Glama
chandshy
by chandshy

Star / Unstar Email

star_email
Idempotent

Toggle the starred (flagged) status of an email. Optionally set whether to star or unstar and specify the source folder to ensure correct IMAP UID scope.

Instructions

Toggle the starred (flagged) status of an email. isStarred defaults to true. Pass sourceFolder whenever the UID came from a folder other than INBOX.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYes
isStarredNo
sourceFolderNoFolder the UID(s) live in (e.g. INBOX, Folders/Work, Labels/Foo). Strongly recommended whenever the UIDs came from a folder other than INBOX — IMAP UIDs are folder-scoped, so without this the wrong folder may be selected and the operation may silently no-op. Avoid passing 'All Mail' as the source: it is a union view of every folder, not a real location, so moves out of it can silently do nothing — pass the message's actual folder instead. Moving to the folder a message is already in is a no-op.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
messageIdNo
reasonNo
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description contradicts the annotation 'idempotentHint: true' by stating it toggles the star status, which is inherently non-idempotent. Additionally, it does not disclose that the operation may silently fail if sourceFolder is omitted incorrectly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two well-structured sentences with no filler. The first sentence defines the purpose, and the second provides a key usage tip, earning top marks for efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the basic purpose and a critical parameter tip, but it omits details about the return value (despite an output schema) and fails to mention that the tool operates on a single email, which is important given the sibling 'bulk_star'. The lack of an explicit note about the required 'emailId' is a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds the default value for 'isStarred' and a brief condition for 'sourceFolder', but the schema already provides a detailed description for 'sourceFolder'. The other two parameters lack any additional meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it toggles the starred status of an email, with a specific verb and resource. However, it does not explicitly distinguish this tool from siblings like 'bulk_star', so it misses the highest mark.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a usage tip for the 'sourceFolder' parameter but offers no guidance on when to use this tool versus alternatives (e.g., bulk_star). There is no explicit when-to-use or when-not-to-use context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chandshy/mailpouch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server