Skip to main content
Glama
gfam-git

Simple IMAP MCP Server

by gfam-git

Get Email Headers

get_email_headers

Retrieve only email headers for a given message UID, saving bandwidth by skipping the body. Use this to inspect metadata like sender, subject, and date without downloading full content.

Instructions

Fetch only email headers - minimal bandwidth, no body download

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesMessage UID
folderNoIMAP folder
Install Server

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of explaining behavior. It discloses that only headers are fetched and that no body is downloaded, which is useful. However, it does not mention response format, error behavior for invalid UIDs, or whether folder selection has side effects, leaving some gaps.

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 a single front-loaded sentence with no filler. Every word contributes meaning, especially the bandwidth/no-body qualifier which earns its place.

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

Completeness4/5

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

For a simple read-like tool with only two parameters, the description is largely sufficient. It lacks an output schema and annotations, so a bit more detail about what 'headers' includes could strengthen it, but the core invocation context is covered.

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 description coverage is 100%, with uid described as 'Message UID' and folder as 'IMAP folder.' The description adds no parameter-specific meaning beyond what the schema already provides, so the baseline of 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 uses a specific verb and resource: 'Fetch only email headers' with the explicit qualifier 'no body download.' This clearly distinguishes it from siblings like get_email_body and fetch_email even without inspecting them.

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 the intended use case: retrieving just headers for minimal bandwidth. It does not explicitly name alternatives or state when not to use this tool, but the context is clear enough for an agent to make the right choice.

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

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/gfam-git/Imap-server'

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