Skip to main content
Glama
hasan-imam

mcp-outlook-applescript

by hasan-imam

confirm_junk_email

Confirm a prepared email and move it to the Junk folder using an approval token. Ensures the email hasn't changed before marking it as junk.

Instructions

Confirm and execute marking an email as junk using a token from prepare_junk_email. Moves the email to the Junk folder. Returns a success message. Returns an error if the token is invalid, expired, already used, or if the email has changed since the prepare step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idYesThe email ID to mark as junk — must match the ID used in the prepare step
token_idYesThe approval token UUID from prepare_junk_email (e.g., "a1b2c3d4-...")
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the core mutation (moves email to Junk folder), the success return (a message), and specific failure modes (invalid, expired, already used token; email changed). This provides substantial behavioral transparency beyond the schema, even if it doesn't address reversibility or permissions.

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?

Three tightly written sentences, front-loaded with the primary action, and every sentence adds value (action, result, error conditions). No redundancy or filler.

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

Completeness5/5

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

For a two-parameter tool with no output schema, the description is complete: it explains the prerequisite flow, the action's effect, the success return, and error conditions. The agent has enough context to invoke and interpret results without missing information.

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

Parameters3/5

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

Schema coverage is 100%, and both parameters already have descriptions. The description adds minimal extra parameter meaning—it notes the token comes from prepare_junk_email and mentions 'email has changed' as an error, which indirectly clarifies email_id's role, but this mostly echoes existing schema text. Baseline 3 is appropriate.

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

Purpose5/5

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

The description states a specific verb+resource: 'Confirm and execute marking an email as junk' using a token from prepare_junk_email, and specifies the action 'Moves the email to the Junk folder.' This clearly differentiates it from sibling confirmation tools like confirm_delete_email or confirm_move_email.

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

Usage Guidelines4/5

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

The description clearly implies when to use: after prepare_junk_email has been called to obtain a token. It also warns about token validity and email-changed errors, setting expectations for preconditions. However, it does not explicitly name alternatives or state 'when not to use' this tool, though the sibling context is similar.

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/hasan-imam/mcp-outlook-applescript'

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