Skip to main content
Glama

Truvek Comply

Classify message type

classify_message
Read-onlyIdempotent
Classify a message as marketing, transactional, transactional_with_promotion, or unclear.

Useful for understanding how the law will treat your message before running
the full compliance check.

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": {
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "classify_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
channelNoemail
subjectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description does not need to re-establish that. What it adds is the workflow role and the taxonomy of results, but it does not say how deterministic the classification is, whether 'unclear' is a normal or error-adjacent outcome, or what input quality is required to get a confident label.

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 short sentences, front-loaded with the outcome taxonomy and followed by the workflow rationale. No redundant restatement of the title and no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 does the right thing by naming the four category values, which is the essential return-value information. It is less complete on inputs and on what the classification is based on, leaving the agent to guess how to populate subject, body, and especially channel.

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 0% across three parameters, so the description carries full burden and largely drops it: subject and body are never discussed (e.g. length limits, what belongs in subject vs body), and the channel parameter's accepted values are never stated despite defaulting to 'email'. Baseline 3 for a high-coverage schema does not apply here, but the description is uninformative rather than misleading.

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 description names the verb (classify) and the resource (a message) and enumerates the four possible outcome labels, so an agent knows exactly what comes back. It also implicitly separates this from check_message by positioning it as the precursor to the 'full compliance check', though it never names that sibling directly.

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?

It gives a clear triggering context: run this before the full compliance check to understand how the law will treat the message. It stops short of stating when not to use it, e.g. whether check_message already subsumes classification or whether this is safe to call repeatedly on unvalidated input.

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.