Skip to main content
Glama
FirstReply MCP Server

FirstReply MCP Server

Official
by FirstReply

Ai Test

ai_test
Read-onlyIdempotent

Simulates an incoming customer message to show the AI classification, spam decision, and reply without creating a conversation, so you can validate prompts and knowledge.

Instructions

Simulate an incoming customer message: returns the classification the AI would assign, whether it would be spam, and the reply it would give, without creating a conversation. Useful to check classifications, prompts and knowledge.

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": {
      "organizationId": "<organizationId>",
      "message": "<message>"
    },
    "name": "ai_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesThe customer message to test.
organizationIdYesThe organization id. Use organization_list to find it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description still earns credit by spelling out the key non-obvious trait — nothing is persisted ('without creating a conversation') — and by disclosing the shape of the result. It does not mention prerequisites such as AI being enabled for the organization.

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?

The core simulation behavior and its outputs are front-loaded in a single efficient clause, with the side-effect caveat attached where it matters. The trailing sentence is slightly vague ('prompts and knowledge') but is short enough not to dilute the definition.

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 a two-parameter tool with no output schema, the description adequately covers inputs, the simulation semantics, and the return contents. The only meaningful omission is environmental preconditions (e.g., whether the organization must have AI configured) for a test tool whose result depends on existing configuration.

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?

With schema description coverage at 100%, both parameters are already documented, including the pointer to organization_list for the org id. The description adds no syntax, format, or constraint detail about 'message' beyond what the schema states, so the baseline 3 applies.

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 verb and resource ('Simulate an incoming customer message') and enumerates exactly what comes back: the assigned classification, a spam determination, and the reply the AI would give. The clause 'without creating a conversation' makes it distinguishable from persistent-reply siblings like ai_draft_reply without needing to open their schemas.

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 states a concrete use case ('Useful to check classifications, prompts and knowledge'), which tells an agent this is a testing/preview tool rather than a production path. It stops short of an explicit exclusion such as 'use ai_draft_reply when you want a reply actually stored in a conversation', so there is no when-not guidance.

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

Deploy Server

Other Tools