Skip to main content
Glama

classify_message

Destructive

Classify one incoming item — an e-mail (kind 'email', id from list_emails) or a messenger message (kind 'inbound_message', id from list_inbound_messages): category, priority, responsible agent and a short note. category must be one of the tenant's classification classes (without any: Anfrage, Termin, Reklamation, Rechnung, Lieferant, Bewerbung, Newsletter, Spam, Sonstiges); an unknown one is rejected with the list. priority: hoch | normal | niedrig. agent_id or agent_name names the agent who takes it over (a name is resolved in this tenant). draft_delegation_id links an existing reply draft (delegate_to_user does that itself with questions[].source). Sets triaged_at; calling it again re-classifies. Nothing is sent, moved or answered.

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": {
      "kind": "<kind>",
      "id": "<id>",
      "category": "<category>",
      "priority": "<priority>"
    },
    "name": "classify_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the item (from list_emails or list_inbound_messages)
kindYesType of item to classify: e-mail or messenger message
noteNoWhy / what to do next (max 2000 characters)
agent_idNoResponsible agent (uuid or exact name)
categoryYesClassification class of the tenant; unknown values are rejected with the list
priorityYesPriority
agent_nameNoAlternative to agent_id: the agent's name
draft_delegation_idNoDelegation (from delegate_to_user) that holds the reply draft

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Classification class of the tenant; unknown values are rejected with the list"
    • addedInput schema / properties / id / description
      Added value: +"ID of the item (from list_emails or list_inbound_messages)"
    • addedInput schema / properties / kind / description
      Added value: +"Type of item to classify: e-mail or messenger message"
    • addedInput schema / properties / priority / description
      Added value: +"Priority"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: the unknown-category rejection behavior with the valid list returned, name resolution scoped to the tenant, that triaged_at is set, that repeat calls overwrite the prior classification (matching idempotentHint=false and the destructive overwrite implied by destructiveHint=true), and that nothing is sent, moved or answered. Return payload shape is not described, which is the remaining gap.

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?

Dense but front-loaded: the core action and the two item kinds come first, then the field semantics, then side effects last. Heavy use of parentheticals and a slightly awkward inline class list make it harder to scan than it needs to be, but nearly every clause carries information.

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?

For an 8-parameter mutation tool with no output schema, the description covers inputs, validation behavior, side effects, and the non-destructive scope of the operation. What an agent still cannot infer is what a successful call returns, and it slightly undersells the destructiveHint=true annotation by framing the operation as harmless apart from re-classification.

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 is 3, but the description goes further: it names the concrete category vocabulary constraint (must be a tenant class, rejected otherwise), the priority values, that agent_name is resolved within the tenant as an alternative to agent_id, and what draft_delegation_id points to. The note field's purpose ('why / what to do next') is left to the schema.

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?

States a specific verb (classify) and resource (one incoming item) plus the two supported kinds with their id sources, and immediately enumerates what gets assigned: category, priority, responsible agent, note. An agent can distinguish this from list_emails / list_inbound_messages / delegate_to_user without opening any schema.

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?

Gives the prerequisite for each kind (id from list_emails or list_inbound_messages) and clarifies the boundary with delegate_to_user by noting that delegate_to_user already links a draft itself via questions[].source. It also states that a repeat call re-classifies. It does not explicitly say when *not* to call it (e.g. vs. assign_email), so it falls just short of a full when/when-not treatment.

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.