Skip to main content
Glama

Nachricht lesen und optional als gelesen markieren

read_mail
DestructiveIdempotent

Liest eine eigene Nachricht. Standard mark_read=true markiert eingehende Nachrichten als gelesen und benötigt messages:read, messages:write sowie idempotency_key. mark_read=false liest ohne Statusänderung mit messages:read und ohne Schlüssel.

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": {
      "mail_id": "<mail_id>"
    },
    "name": "read_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
mail_idYes
mark_readNotrue (Standard): als gelesen markieren; zusätzlich messages:write und idempotency_key erforderlich. false: nur lesen mit messages:read, ohne Statusänderung oder Schlüssel.
idempotency_keyNo1–180 druckbare ASCII-Zeichen von ! bis ~, ohne Leerzeichen. Vor dem ersten Aufruf wählen und für Wiederholungen beibehalten.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
toolYes
traceNo
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / allOf
      Removed value: -[
      -  {
      -    "if": {
      -      "properties": {
      -        "mark_read": {
      -          "const": true
      -        }
      -      }
      -    },
      -    "then": {
      -      "required": [
      -        "idempotency_key"
      -      ]
      -    }
      -  }
      -]
    • addedInput schema / description
      Added value: +"Bedingte Parameterregeln werden vor Ausführung serverseitig geprüft; VALIDATION_ERROR nennt den betroffenen Parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {},
      +    "meta": {
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "error"
      +      ],
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "trace": {
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "tool",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The description adds real value beyond the annotations by disclosing the side effect (marking incoming messages as read), the required scopes (messages:read, messages:write) and the conditional idempotency_key. However, it never explains what the destructiveHint=true annotation implies — e.g. whether the read-flag change is reversible or what happens for already-read messages — so a notable behavioral gap remains for a mutating default.

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?

Three compact sentences, front-loaded with what the tool does, then the default behavior, then the alternative. No filler, though the permission/key enumeration makes it slightly dense to parse.

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 an output schema present and annotations covering safety and idempotency, the description supplies the missing pieces an agent needs: auth scopes and the conditional key requirement. Only the reversibility/impact of the read-flag mutation and handling of already-read messages are unaddressed.

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 67% and the schema already spells out mark_read and idempotency_key semantics, including formats. The description largely restates those conditional rules rather than adding new meaning, and mail_id remains undocumented in both places. Baseline 3 is appropriate.

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?

The first sentence states a specific verb and resource ("Liest eine eigene Nachricht") with an ownership scope ("eigene"), which is enough to tell it apart from delete_mail, reply_mail and send_mail. It does not explicitly name any sibling, but the read semantics are unambiguous.

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 routes between the two modes: default mark_read=true for marking as read, mark_read=false for a pure read without status change, each with its own prerequisites. It gives no guidance on when to choose this tool over other retrieval-type tools, but the mode selection guidance is explicit and actionable.

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.