Skip to main content
Glama
hasan-imam

mcp-outlook-applescript

by hasan-imam

get_unread_count

Get the unread email count in Outlook for all folders or a specific folder. Pass an optional folder ID to scope the count and avoid fetching full message lists.

Instructions

Get the count of unread emails, either across all folders or for a specific folder. Use this for a quick check without fetching full email lists. Returns an object with a single "count" field (number). Optionally pass folder_id to limit the count to a specific folder (get folder IDs from list_folders). Requires Outlook to be running.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_idNoFolder ID to get unread count for (e.g., from list_folders). If omitted, returns total unread count across all folders.
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the return format ('object with a single "count" field (number)'), the optional folder_id, and the prerequisite 'Requires Outlook to be running.' This adds meaningful behavioral context beyond the schema.

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 concise and well-structured: it opens with the purpose, then usage, return format, parameter detail, and prerequisite. Every sentence is necessary, with no redundancy or fluff.

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 simple count tool with one optional parameter, the description is complete. It covers purpose, usage, return format, and a prerequisite. No output schema exists, but the return value is clearly explained. No significant gaps.

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

Parameters4/5

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

The schema already describes folder_id at 100% coverage, so baseline is 3. The description adds value by explaining the optional nature and directing to list_folders for obtaining folder IDs, which is a helpful cross-reference beyond the schema.

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?

Clearly states the tool's function: 'Get the count of unread emails' with scope across all folders or a specific folder. It differentiates from siblings like list_emails by explicitly noting it's a 'quick check without fetching full email lists'.

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?

Provides clear context: 'Use this for a quick check without fetching full email lists.' It also references list_folders for obtaining folder IDs, guiding the user to a related tool. It doesn't name alternative tools explicitly but implies when this tool is appropriate.

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