Skip to main content
Glama
hajekd
by hajekd

list_emails

List email activities with subject, address, and state, supporting filters by queue, user, contact, direction, and date range. Use it to inspect email details from the Daktela contact center.

Instructions

List email activities with email-specific fields (subject, address, state). Use this instead of list_activities(type='EMAIL') when you need email details.

Args: queue: Filter by queue internal name (e.g. '10333'). Use list_queues to find names. user: Agent name — pass either a display name (e.g. 'John Doe') or login name (e.g. 'john.doe'). Resolved automatically. contact: Filter by contact internal ID (e.g. 'contact_674eda46162a8403430453'). NOT a person's name — call list_contacts(search='...') first to find the ID. direction: Filter by direction: in (incoming) or out (outgoing). date_from: Filter by email start time on or after this date (YYYY-MM-DD). date_to: Filter by email start time on or before this date (YYYY-MM-DD). sort: Field to sort by. Useful values: time (email time), duration, wait_time. WARNING: only email-specific fields work — do NOT use 'created' or 'edited'. sort_dir: Sort direction: asc or desc (default: desc). skip: Pagination offset (default: 0). take: Number of records to return (default: 50, max: 200).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skipNo
sortNo
takeNo
userNo
queueNo
contactNo
date_toNo
sort_dirNodesc
date_fromNo
directionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations are absent, so the description carries the full burden. It discloses important behavioral traits including the sort field warning ('do NOT use created or edited'), automatic resolution of user names, and the contact ID not being a person's name. It also specifies pagination defaults and the maximum take value.

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 front-loaded with a concise one-liner and usage guideline, followed by a well-organized parameter list. Each parameter explanation earns its place with practical details and no unnecessary 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?

With an output schema present, return values are covered. The description covers all parameters, provides usage context versus alternatives, and includes warnings about sort fields and ID formats, making it comprehensively self-sufficient.

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

Parameters5/5

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

Schema coverage is 0%, but the description compensates fully by explaining every parameter with examples, formats, constraints, and warnings. For instance, it clarifies that 'contact' is an internal ID and 'user' can be either display or login name, adding meaning far beyond the basic string type.

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 clearly states 'List email activities with email-specific fields' with a specific verb and resource. It explicitly distinguishes from list_activities by recommending this tool when email details are needed, making it distinct among sibling tools.

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

Usage Guidelines5/5

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

The description provides an explicit alternative: 'Use this instead of list_activities(type='EMAIL') when you need email details.' It also gives practical parameter guidance, such as using list_queues to find queue names and list_contacts to find contact IDs.

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/hajekd/mcp-daktela'

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