Skip to main content
Glama
FirstReply MCP Server

FirstReply MCP Server

Official
by FirstReply

Ai Prompt

ai_prompt
Read-onlyIdempotent

Draft texts or answer questions using your organization's AI persona and knowledge base, with optional knowledge lookup disabled for standalone prompts.

Instructions

Run a free-form prompt through the organization's AI: it answers with the organization's persona and response rules and, unless disabled, the knowledge base entries matching the prompt. Use it to draft texts or answer questions from the knowledge base. Include any conversation context in the prompt itself.

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>",
      "prompt": "<prompt>"
    },
    "name": "ai_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe prompt or question.
organizationIdYesThe organization id. Use organization_list to find it.
removeKnowledgeNotrue answers without searching the knowledge base.

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/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses two useful behaviors: answers are shaped by the organization's persona and response rules, and knowledge base entries are injected unless disabled. The instruction to embed conversation context implies the call is stateless, which is valuable context an agent would otherwise miss.

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 sentences, front-loaded with the core behavior and followed by usage and a composition rule; nothing is redundant. The middle clause describing persona and knowledge base is slightly convoluted but each element 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 a three-parameter, annotation-covered, non-destructive tool this covers purpose, use cases, and the statelessness constraint. Since no output schema exists, a brief note on the shape of the returned answer would have closed the remaining gap, but nothing critical for correct invocation is missing.

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 already 100%, so baseline would be 3, but the description adds meaning: 'unless disabled' explains the effect of removeKnowledge, and 'include any conversation context in the prompt itself' tells the agent how to compose the prompt field. It does not add format or length guidance beyond the schema's minLength.

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 gives a concrete verb and resource ('Run a free-form prompt through the organization's AI') and explains what the answer contains: persona, response rules, and matching knowledge base entries. It does not name any sibling such as ai_draft_reply or ai_translate, so the boundary with those tools is left to the agent to infer.

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 clear use cases ('draft texts or answer questions from the knowledge base') and gives an operational constraint: put any conversation context in the prompt itself. It stops short of explicit when-not guidance or naming an alternative tool for cases this one does not fit.

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