Skip to main content
Glama

Classify message type

comply_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": "comply_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 readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the useful fact that output falls into one of four discrete buckets, but says nothing about whether a confidence score or reasoning accompanies the label, nor how ambiguous cases are handled.

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?

Two short sentences with the core action and the class list front-loaded, zero redundant restatement of the title. The phrasing 'Useful for' is slightly soft where a direct imperative would be crisper.

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?

This is a simple read-only single-purpose tool with no output schema and no nested objects, so the bar is modest. Still, with zero schema coverage on the three parameters and no statement of what the response contains beyond the class label, an agent is left guessing about invocation details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across all three parameters, so the description must compensate and does not. It never explains that 'channel' defaults to email, what other channel values are legal, or how 'subject' and 'body' interact in classification (e.g. whether subject dominates for promotional signals).

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) plus resource (message) and enumerates the exact output classes: marketing, transactional, transactional_with_promotion, unclear. It also implicitly separates itself from the heavier comply_check_message sibling by positioning itself as the pre-check step.

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 second sentence gives real ordering guidance: use this before running the full compliance check, which points at comply_check_message as the escalation path. It lacks an explicit when-not clause (e.g. when a definitive legal answer is needed, skip straight to the full check), so it falls short of a 5.

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.