Skip to main content
Glama

List DM contacts

list_dm_contacts
Read-only

Lists emails collected by the workspace's DM automations (rules with gate email or follow_email), newest first, with the Instagram username, rule and post. Page with before (the created_at of the last contact).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_id": "<workspace_id>"
    },
    "name": "list_dm_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
beforeNoISO time: only contacts collected before it.
rule_idNoOnly this rule's contacts.
workspace_idYesWorkspace with the Instagram connection. Required. Get one from list_workspaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral detail beyond that: results are ordered newest first, each row carries username/rule/post, and pagination is cursor-based via the last contact's created_at.

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?

Two dense sentences with no filler; scope and ordering come first, then the paging instruction. Every clause carries information an agent needs to call and iterate correctly.

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?

With no output schema, the description compensates by naming the returned fields and the sort order, and it explains cursor semantics for a 4-parameter tool. Only minor gaps remain, such as what happens when limit is omitted beyond the schema's stated default of 50.

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?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema lacks by explaining that `before` should be fed the created_at of the last contact — the actual paging idiom. It also clarifies which rules qualify as sources, complementing the rule_id filter.

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?

States a specific verb and resource ("Lists emails collected by the workspace's DM automations") and narrows scope to rules with gate email or follow_email, plus lists what each row contains. It implicitly distinguishes itself from the rule-listing siblings by focusing on collected contacts rather than rule definitions, though it does not name an alternative explicitly.

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

Usage Guidelines3/5

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

Gives concrete paging guidance ("Page with before (the created_at of the last contact)"), which tells the agent how to continue iterating. It offers no explicit when-not guidance or named alternative for adjacent use cases such as inspecting the rules themselves.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.