Skip to main content
Glama

List sent messages

well_list_messages
Read-only

List the emails the user sent to other people through Well (with well_send_message), newest first: recipient, subject, body, channel, status and send date. It returns the user's own messages only, never those sent by other members.

Use it when the user asks what was sent, e.g. "what did I send to Acme?" or "did my email to Marie go out?". It reads the same records as well_query_records on the messages root; notifications to the user are not stored, so they never appear. It filters by recipient and category only: to find sent emails about a topic, search them with well_search_context and the "message" entity type instead.

Returns { rows, totalCount, records_url }. Hand records_url to the user when there are more messages than the rows you read.

When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many messages to return, newest first (default 20).
categoryNoKeep only messages of this category.
recipientNoKeep messages whose recipient email address or recipient name contains this text, e.g. an address, a domain, or a name.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsYesQuery results
errorNo
layoutNoThe layout the records card draws and `records_url` opens: the asked one, else the saved view's. Null when neither names one.
totalsNoPresent when `sum` was passed and the total read succeeded: the sums over every matching row, one group per currency. `truncated: true` means the group list hit its cap and is incomplete. `completeness` (invoices root only) says how far the workspace's own-side resolution lets you trust the total: the self-party set's size and the counts of the rows it could not prove a side for.
columnsNoThe materialized columns in display order, with each composite substituted in place of the source fields it consumed. A row object's key order does not preserve this — the flattener appends reconstructed composites last — so a UI that wants the web app's column order must read it from here.
successYes
group_byNoThe field path a kanban or a calendar groups the rows by: the asked one, else the saved view's. Each row carries its value.
returnedYesNumber of rows returned
columnMetaNoPer-column field meaning, keyed by the same column paths as the rows. `context` = what the field means; `enrichment` = how the value is sourced (e.g. Bank sync, AI extraction). Only documented columns appear. Read this to interpret the returned values.
nextCursorNoCursor for the next page. null means last page.
totalCountYesTotal matching records
party_scopeNoPresent only when `partyScope` was passed: what the scope resolved to on this read. `side_unknown: true` means the workspace resolved no own company, so NO side filter was applied (`applied: false`) and the rows and totals cover invoices on BOTH sides — say the side is unknown, never that the figure is the requested side's.
records_urlNoLogin-gated deep link to the FULL web-app records table for this root (real DataTable: composites, inline editing, resize/pin), carrying this call's `whereClause` and `orderBy` so it opens on the same rows. Hand it to the user for everything past this page — it is the answer to 'show me all of them', not pagination. Null when no workspace is in context or no web page serves the root.
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
resolved_workspaceNoThe workspace that answered, when the caller named none and the token authorizes several.
totals_unavailableNoPresent instead of `totals` when `sum` was passed but no total could be measured (`timeout`, `error`, or `count_mismatch` when the total did not cover the same rows as `totalCount`). The rows are still a page: never add them up to stand in for the total. Say the total is unavailable.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / group_by
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The field path a kanban or a calendar groups the rows by: the asked one, else the saved view's. Each row carries its value."
      +}
    • addedOutput schema / properties / layout
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "table",
      +        "kanban",
      +        "calendar",
      +        "gallery",
      +        "chart",
      +        "list",
      +        "graph"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The layout the records card draws and `records_url` opens: the asked one, else the saved view's. Null when neither names one."
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / totals / properties / completeness / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      -    "properties": {
      -      "conflict_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "estimated": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "count": {
      -                "type": "number"
      -              },
      -              "kinds": {
      -                "items": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "count",
      -              "kinds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": false,
      -                "type": "boolean"
      -              },
      -              "reason": {
      -                "enum": [
      -                  "own_set_truncated",
      -                  "read_failed"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "reason"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "intra_self_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "personal_mode": {
      -        "type": "boolean"
      -      },
      -      "self_candidate_count": {
      -        "type": "number"
      -      },
      -      "self_set_size": {
      -        "type": "number"
      -      },
      -      "self_set_truncated": {
      -        "type": "boolean"
      -      },
      -      "unattributed_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "self_set_size",
      -      "self_set_truncated",
      -      "self_candidate_count",
      -      "personal_mode",
      -      "unattributed_count",
      -      "intra_self_count",
      -      "conflict_count",
      -      "estimated"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      +    "properties": {
      +      "conflict_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "estimated": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "count": {
      +                "type": "number"
      +              },
      +              "kinds": {
      +                "items": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "count",
      +              "kinds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": false,
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "enum": [
      +                  "own_set_truncated",
      +                  "read_failed"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "fold_version": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "intra_self_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "personal_mode": {
      +        "type": "boolean"
      +      },
      +      "self_candidate_count": {
      +        "type": "number"
      +      },
      +      "self_set_size": {
      +        "type": "number"
      +      },
      +      "self_set_truncated": {
      +        "type": "boolean"
      +      },
      +      "unattributed_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "fold_version",
      +      "self_set_size",
      +      "self_set_truncated",
      +      "self_candidate_count",
      +      "personal_mode",
      +      "unattributed_count",
      +      "intra_self_count",
      +      "conflict_count",
      +      "estimated"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed4 schema fields changed
    • changedOutput schema / properties / newly_connected / description
      Previous value: -"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."New value: +"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."
    • addedOutput schema / properties / party_scope
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present only when `partyScope` was passed: what the scope resolved to on this read. `side_unknown: true` means the workspace resolved no own company, so NO side filter was applied (`applied: false`) and the rows and totals cover invoices on BOTH sides — say the side is unknown, never that the figure is the requested side's.",
      +  "properties": {
      +    "applied": {
      +      "type": "boolean"
      +    },
      +    "requested": {
      +      "enum": [
      +        "purchase",
      +        "sales",
      +        "intra_self",
      +        "unattributed"
      +      ],
      +      "type": "string"
      +    },
      +    "side_unknown": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "requested",
      +    "applied",
      +    "side_unknown"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / totals / description
      Previous value: -"Present when `sum` was passed and the total read succeeded: the sums over every matching row, one group per currency. `truncated: true` means the group list hit its cap and is incomplete."New value: +"Present when `sum` was passed and the total read succeeded: the sums over every matching row, one group per currency. `truncated: true` means the group list hit its cap and is incomplete. `completeness` (invoices root only) says how far the workspace's own-side resolution lets you trust the total: the self-party set's size and the counts of the rows it could not prove a side for."
    • addedOutput schema / properties / totals / properties / completeness
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      +      "properties": {
      +        "conflict_count": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "estimated": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": true,
      +                  "type": "boolean"
      +                },
      +                "count": {
      +                  "type": "number"
      +                },
      +                "kinds": {
      +                  "items": {
      +                    "enum": [
      +                      "own_set_self_candidate",
      +                      "asserted_own_side_unqualified",
      +                      "bank_allocation"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "count",
      +                "kinds"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "reason": {
      +                  "enum": [
      +                    "own_set_truncated",
      +                    "read_failed"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "reason"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "intra_self_count": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "personal_mode": {
      +          "type": "boolean"
      +        },
      +        "self_candidate_count": {
      +          "type": "number"
      +        },
      +        "self_set_size": {
      +          "type": "number"
      +        },
      +        "self_set_truncated": {
      +          "type": "boolean"
      +        },
      +        "unattributed_count": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "self_set_size",
      +        "self_set_truncated",
      +        "self_candidate_count",
      +        "personal_mode",
      +        "unattributed_count",
      +        "intra_self_count",
      +        "conflict_count",
      +        "estimated"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  4. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources