Skip to main content
Glama

get_profile

Read-only

Confirm the connected mailbox and build before bulk or filter actions, as a liveness check, or to diagnose missing tools; returns email, message/thread counts, server version, path, and account.

Instructions

Return the authorized account: email address plus total message/thread counts, and WHICH SERVER is answering: serverVersion (the bare version ONLY for a release build; anything else names its commit, e.g. 0.23.0+a5ff4a7, +a5ff4a7.dirty when built from uncommitted sources, +unknown when the build left no record), build (commit, dirty, release, builtAt; absent when unknown), serverPath (the directory the running code was loaded from — an npm install, an npx cache or a clone's dist/) and account (the named mailwarden account, or (default)). USE WHEN: confirming WHICH mailbox is connected before a bulk or filter action, as a cheap liveness check, or when a tool or field documented for a version seems missing — serverVersion says whether the running build is the one you think, and serverPath which install it is. DO NOT USE: to enumerate messages — this returns only counts, not a listing (use search). SIDE EFFECTS: none.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
demoNo
buildNo
accountYes
historyIdYes
serverPathYes
emailAddressYes
threadsTotalYes
messagesTotalYes
serverVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.34.0
    • addedOutput schema / properties / demo
      Added value: +{
      +  "const": true,
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv0.32.0
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed5 schema fields changedv0.25.0
    • addedOutput schema / properties / account
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / build
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "builtAt": {
      +      "type": "string"
      +    },
      +    "commit": {
      +      "type": "string"
      +    },
      +    "dirty": {
      +      "type": "boolean"
      +    },
      +    "release": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "commit",
      +    "dirty",
      +    "release",
      +    "builtAt"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / serverPath
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / serverVersion
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "emailAddress",
      -  "messagesTotal",
      -  "threadsTotal",
      -  "historyId"
      -]New value: +[
      +  "emailAddress",
      +  "messagesTotal",
      +  "threadsTotal",
      +  "historyId",
      +  "serverVersion",
      +  "serverPath",
      +  "account"
      +]
  4. Changed2 schema fields changedv0.18.0
    • addedOutput schema / properties / historyId
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "emailAddress",
      -  "messagesTotal",
      -  "threadsTotal"
      -]New value: +[
      +  "emailAddress",
      +  "messagesTotal",
      +  "threadsTotal",
      +  "historyId"
      +]
  5. Addedv0.6.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, and 'SIDE EFFECTS: none' mostly restates that. The description still adds real behavioral detail: what `+a5ff4a7.dirty`, `+unknown` and an absent `build` mean, that `serverPath` identifies the install origin, and that `(default)` is a valid account label.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core result and structurally split into result / USE WHEN / DO NOT USE / SIDE EFFECTS. The heavy nested parentheticals explaining version-suffix formats make it denser than necessary, but each clause carries diagnostic value.

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?

An output schema exists, so return values need not be spelled out, yet the description still explains the tricky version-string cases that an agent needs in order to diagnose a stale build. For a zero-parameter read tool, nothing important is missing.

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?

With zero parameters the baseline is 4. The description goes further by interpreting what returned version/build strings signify, but that is return-value semantics rather than parameter semantics, so it stays at the baseline.

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 names a specific resource and scope: the authorized account (email plus message/thread counts) and the answering server (serverVersion, build, serverPath, account name). That is clearly distinguishable from enumeration siblings such as search.

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?

It has an explicit USE WHEN block (confirm which mailbox is connected before bulk/filter actions, cheap liveness check, diagnosing missing tools/fields) and a DO NOT USE block that routes enumeration to `search`. That covers when and when-not with a named alternative.

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