OTRS MCP Server
This server lets AI agents and applications manage OTRS tickets through MCP tools and a REST API.
Create tickets with title, body, queue, priority, state, type, and customer user.
Read ticket details including dynamic fields and extended data.
Search tickets by customer, queue, state, priority, title, with sorting and limits.
Update tickets to change title, queue, priority, state, customer user, or owner.
View ticket history to see state changes, assignments, and events.
Access ticket resources via MCP URIs for tickets, articles, history, and recent searches.
Authenticate securely with API keys (read/write/admin scopes) or JWT for the admin panel.
Administer the system through a React dashboard: manage API keys, admin users, audit logs, and login attempts.
Monitor usage with SQLite audit trails, activity logs, and OpenTelemetry traces.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OTRS MCP Servercreate a new ticket in the Raw queue titled 'Printer not working' with description 'HP LaserJet in office 3 is offline' and priority '3 normal'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OTRS MCP Server
Servidor Model Context Protocol (MCP) para integração com o OTRS (Open Ticket Request System).
Permite que assistentes de IA (Claude Desktop, VS Code, Kiro, agentes Python) criem, consultem, busquem e atualizem tickets no OTRS por uma interface padronizada. Acompanha uma API REST autenticada, painel administrativo em React, auditoria em SQLite e instrumentação OpenTelemetry.
Versão: 0.2.0 · Python: 3.12+ · Licença: Apache-2.0
Sumário
Related MCP server: tickiti-mcp
O que o servidor oferece
Três formas de consumir o mesmo backend OTRS:
Interface | Para quem | Autenticação |
MCP ( | Agentes de IA e clientes MCP remotos | API key obrigatória no header |
MCP ( | Cliente MCP local que sobe o processo | Nenhuma (sem rede; credenciais vêm do ambiente) |
API REST (FastAPI) | Scripts, integrações, o próprio frontend | API key ou JWT |
Painel web (React) | Administradores humanos | JWT (login com usuário e senha) |
Operações OTRS cobertas: SessionCreate, TicketCreate, TicketGet (com ou sem AllArticles), TicketSearch, TicketUpdate, TicketHistoryGet.
Arquitetura
┌────────────────────────┐ ┌────────────────────────┐
│ Agente IA / cliente │ │ Navegador (admin) │
│ MCP │ │ │
└───────────┬────────────┘ └───────────┬────────────┘
│ Bearer sk-otrs-... │ Bearer JWT
▼ ▼
┌──────────────────────────────────────────────────────────┐
│ Nginx no host (nginx/mcp.conf) + Certbot │
│ /otrs/mcp → 8001 /otrs/api/ → 3000 /otrs/ → SPA │
└──────┬──────────────────┬──────────────────┬─────────────┘
▼ ▼ ▼
┌────────────┐ ┌────────────┐ ┌────────────┐
│ mcp-server │ │ api │ │ frontend │
│ FastMCP │ │ FastAPI │ │ React+Nginx│
│ :8001 │ │ :3000 │ │ :80 │
└─────┬──────┘ └─────┬──────┘ └────────────┘
│ │
│ ▼
│ ┌──────────────────────┐
│ │ SQLite (WAL) │
│ │ /data/otrs-mcp.db │
│ │ admin_users,api_keys,│
│ │ api_usage,login_audit│
│ └──────────────────────┘
▼ ▼
┌──────────────────────────────────┐ ┌─────────────────────┐
│ Servidor OTRS │ │ otel-collector │
│ (Generic Interface) │ │ → Tempo / Mimir │
└──────────────────────────────────┘ └─────────────────────┘Serviços do Docker Compose
Serviço | Imagem / build | Porta publicada | Limites |
|
|
| 1 CPU / 512M |
|
|
| 1 CPU / 512M |
|
|
| 0.5 CPU / 128M |
|
|
| 0.5 CPU / 256M |
Todas as portas ficam em 127.0.0.1. A exposição pública é feita pelo Nginx do host.
Pré-requisitos
Docker e Docker Compose
Servidor OTRS com Generic Interface habilitada
Para produção: Nginx e Certbot no host, domínio apontando para o servidor
Configurar o webservice no OTRS
Vá em Administração → Web Services
Crie ou edite um webservice expondo:
SessionCreate,TicketCreate,TicketGet,TicketSearch,TicketUpdate,TicketHistoryGetAnote a URL:
https://seu-otrs/otrs/nph-genericinterface.pl/Webservice/NomeDoWebserviceGaranta que o usuário configurado tem permissão nas filas usadas
Início rápido
git clone https://github.com/eduardoantoniojunior/otrs-mcp-server.git
cd otrs-mcp-server
cp .env.example .envPreencha o mínimo no .env:
OTRS_BASE_URL=https://seu-otrs/otrs/nph-genericinterface.pl/Webservice/MCPConnector
OTRS_USERNAME=seu-usuario
OTRS_PASSWORD=sua-senha
OTRS_ADMIN_USER=admin
OTRS_ADMIN_PASSWORD=escolha-uma-senha-forte
OTRS_JWT_SECRET=<saída de: python -c "import secrets; print(secrets.token_hex(32))">Suba os containers:
docker compose up -d --build
docker compose ps
curl -s http://127.0.0.1:3000/api/health # {"status":"ok"}O usuário admin é criado no primeiro start, somente se ainda não existir nenhum e OTRS_ADMIN_PASSWORD estiver definido. Acesse o painel em http://127.0.0.1:8081 (ou pela URL pública do Nginx), faça login e crie sua primeira API key.
Rodar sem Docker
uv sync --extra dev
# API REST em :3000
uv run uvicorn otrs_mcp.api:app --port 3000 --reload
# MCP em HTTP na :8001
$env:OTRS_MCP_TRANSPORT="http"; uv run python -m otrs_mcp.main
# Frontend em :5173
cd frontend; npm ci; npm run devComo usar o MCP
O servidor fala dois transportes, definidos por OTRS_MCP_TRANSPORT:
stdio(padrão) — o cliente sobe o processo local e conversa por pipe. Não precisa de rede nem de API key.http— Streamable HTTP em/mcp, para agentes remotos. Exige API key válida em toda requisição.
Autenticação no transporte HTTP
Requisições sem Authorization: Bearer sk-otrs-... são recusadas com 401 antes de qualquer tool executar:
{"error": "invalid_token", "error_description": "Authentication required"}São recusadas as keys inexistentes, revogadas (active = 0) e vencidas (expires_at no passado). A validação usa a mesma tabela api_keys da API REST, e as permissões da key viram escopos:
Permissão da key | Tools liberadas |
|
|
|
|
| todas |
Uma key só de leitura que tente escrever recebe erro na tool, não na conexão:
Permissao 'write' necessaria. A API key possui: readClaude Desktop / Kiro — remoto (HTTP)
{
"mcpServers": {
"otrs": {
"url": "https://seu-dominio/otrs/mcp",
"headers": {
"Authorization": "Bearer sk-otrs-sua-api-key"
}
}
}
}O path /otrs/mcp corresponde ao nginx/mcp.conf deste repositório. Em domínio dedicado, use https://seu-dominio/mcp.
VS Code
{
"servers": {
"otrs": {
"type": "http",
"url": "https://seu-dominio/otrs/mcp",
"headers": {
"Authorization": "Bearer sk-otrs-sua-api-key"
}
}
}
}Local via stdio
{
"mcpServers": {
"otrs": {
"command": "uv",
"args": ["run", "python", "-m", "otrs_mcp.main"],
"cwd": "/caminho/para/otrs-mcp-server",
"env": {
"OTRS_BASE_URL": "https://seu-otrs/otrs/nph-genericinterface.pl/Webservice/MCPConnector",
"OTRS_USERNAME": "usuario",
"OTRS_PASSWORD": "senha",
"OTRS_MCP_TRANSPORT": "stdio"
}
}
}
}Python SDK
import asyncio
from mcp.client.session import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main() -> None:
headers = {"Authorization": "Bearer sk-otrs-sua-api-key"}
async with streamablehttp_client(
"https://seu-dominio/otrs/mcp", headers=headers
) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
print([t.name for t in tools.tools])
result = await session.call_tool(
"search_tickets",
arguments={"state": "new", "limit": 5},
)
print(result)
asyncio.run(main())Exemplos de pedidos ao agente
Com o MCP conectado, o modelo resolve pedidos em linguagem natural:
"Abra um ticket na fila Suporte com prioridade 4 high sobre a impressora do 3º andar"
"Quais tickets estão em aberto na fila Infraestrutura?"
"Mostre o histórico do ticket 4821"
"Mude o ticket 4821 para closed successful"
"Resuma a conversa do ticket 4821" — usa
get_ticket_articles"O que o cliente disse no ticket 4821?" —
get_ticket_articlescomsender_type=customer
Retornos incluem links prontos para a interface do OTRS: get_ticket, update_ticket, create_ticket e get_ticket_history retornam WebURL; get_ticket e get_ticket_history também retornam HistoryWebURL; search_tickets retorna WebSearchURL e TicketWebURLs.
Tools MCP
Tool | Parâmetros | Observações |
|
| Aplica os defaults de |
|
|
|
|
| Retorna só a lista de artigos (Subject, Body, SenderType, IsVisibleForCustomer, CreateTime) + |
|
|
|
|
| Envia só os campos preenchidos. Retorna |
|
| Retorna |
|
| Deriva a lista de tickets recentes |
Prioridades aceitas (src/otrs_mcp/constants.py): 1 very low, 2 low, 3 normal, 4 high, 5 very high.
Campos retornados por artigo (whitelist em constants.py::ARTICLE_WHITELIST_FIELDS): ArticleID, Subject, Body, SenderType, ArticleType, CommunicationChannel, IsVisibleForCustomer, CreateTime, ChangeTime, From, To, Cc, ContentType, Charset, MimeType. Campos internos do OTRS (MessageID, InReplyTo, References, etc.) são filtrados.
Cada chamada é registrada em activity.json com tool, status, duração e ticket_id. Campos chamados password são removidos antes de gravar.
Resources MCP
URI | Conteúdo |
| Ticket completo em JSON (metadados; use a tool |
| Últimos 20 artigos do ticket em ordem descendente |
| Histórico do ticket (eventos, sem corpo) |
| Os 20 tickets mais recentes |
API REST
Base: https://seu-dominio/otrs/api (ou http://127.0.0.1:3000/api local).
Autenticação por header, exceto no health check:
Authorization: Bearer <api-key-ou-jwt>Público
Método | Rota | Descrição |
|
| Health check |
Tickets — API key ou JWT
Método | Rota | Permissão |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| autenticado |
Filtros de GET /api/tickets: customer_user, customer_id, queue, state, priority, title, limit (1–200), sort_by, order_by.
Query params de GET /api/tickets/{id}: include_articles (bool), article_limit (1–200), article_order (asc|desc), article_sender_type (ex.: customer, agent, system).
Query params de GET /api/tickets/{id}/articles: limit (1–200, default 20), order (asc|desc), sender_type.
Atividade — API key ou JWT
Método | Rota | Permissão |
|
| autenticado |
|
| autenticado |
|
|
|
Administração — somente JWT
Método | Rota | Descrição |
|
| Login, devolve JWT |
|
| Renova o JWT sem pedir senha |
|
| Admin autenticado |
|
| CRUD de administradores |
|
| Criar e listar API keys |
|
| Desativar key |
|
| Remover key |
|
| Auditoria de uso (SQLite) |
|
| Tentativas de login |
|
| Métricas por dia ( |
Exemplo com cURL
KEY="sk-otrs-sua-api-key"
BASE="https://seu-dominio/otrs/api"
# Buscar tickets novos
curl -s -H "Authorization: Bearer $KEY" "$BASE/tickets?state=new&limit=5"
# Ler o corpo dos artigos de um ticket
curl -s -H "Authorization: Bearer $KEY" \
"$BASE/tickets/4821/articles?limit=10&order=desc&sender_type=customer"
# Criar ticket
curl -s -X POST "$BASE/tickets" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Impressora sem toner","body":"3o andar, sala 12","queue":"Suporte","priority":"3 normal"}'
# Fechar ticket
curl -s -X PUT "$BASE/tickets/4821" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"state":"closed successful"}'Códigos de erro
Código | Significado |
| Token ausente, inválido, expirado ou key revogada |
| Permissão insuficiente para a operação |
| Ticket não encontrado |
| Validação falhou ( |
| Rate limit da API key, ou lockout de login |
| Erro na comunicação com o OTRS |
| OTRS indisponível ou API ainda inicializando |
Configuração
Todas as variáveis usam o prefixo OTRS_ e são lidas do ambiente (pydantic-settings).
OTRS — obrigatórias
Variável | Descrição |
| URL completa do webservice |
| Usuário do OTRS |
| Senha do OTRS |
Faltando qualquer uma, o processo falha no start com OTRSValidationError.
OTRS — opcionais
Variável | Padrão | Descrição |
|
| Verificação de certificado |
|
| Timeout HTTP (s) |
|
| Log de debug por requisição |
|
| Fila padrão |
|
| Estado padrão |
|
| Prioridade padrão |
| vazio | Tipo padrão (omitido se vazio) |
| derivado | Base da interface web, usada nos links |
| vazio | Filas do dropdown do painel (separadas por vírgula) |
| vazio | Tipos do dropdown do painel |
Quando OTRS_WEB_BASE_URL não é informado, ele é derivado de OTRS_BASE_URL cortando em /nph-genericinterface.pl.
Autenticação
Variável | Padrão | Descrição |
|
| Com |
| gerado | Segredo HS256. Sem ele em dev, um aleatório é gerado e os tokens morrem a cada restart |
|
| Validade do JWT |
|
| Admin criado no primeiro start |
| — | Sem isso, nenhum admin é criado automaticamente |
MCP, banco e CORS
Variável | Padrão | Descrição |
|
|
|
|
| Bind do MCP em modo http |
|
| Porta do MCP em modo http |
|
| Valor de |
|
| Caminho do SQLite |
|
| Log de atividade do MCP |
|
| Eventos mantidos no JSON |
|
| Origens permitidas |
Frontend e telemetria
Variável | Padrão | Descrição |
|
| Subpath do build (ex.: |
| vazio | Collector para traces do browser |
| vazio | Destino OTLP do collector |
API keys
Formato: sk-otrs- seguido de 64 caracteres hex. A chave é exibida uma única vez, na criação; o banco guarda apenas o SHA-256 e um prefixo de 12 caracteres para identificação.
Criar pelo painel: MCP Tokens → Create Token. Ou via API:
curl -s -X POST "$BASE/admin/keys" \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{"name":"Agente Suporte","agent_name":"suporte-bot","permissions":["read","write"],"rate_limit":100,"expires_in_days":90}'Campo | Regra |
|
|
| Requisições por minuto, 1–10000 |
| 1–365, ou omitido para não expirar |
Uma key é rejeitada se não existir, estiver revogada (active = 0) ou vencida.
Painel administrativo
React 19 + Vite 6 + TanStack Query 5 + Tailwind.
Página | Função |
Dashboard | Métricas de uso, atividade por dia, distribuição por tool, ranking de agentes |
MCP Tokens | Criar, revogar e remover API keys; permissões, rate limit, expiração |
Admin Users | Gerenciar administradores |
Audit Log | Operações registradas em |
Login Audit | Tentativas de login com IP e user agent |
Client MCP Wizard | Gera a configuração pronta para Claude Desktop, VS Code, Python e cURL |
Settings | Estado da conexão com o OTRS, filas e tipos configurados |
Também há componentes de ticket (TicketList, TicketDetail, TicketForm) para operar tickets pelo painel.
Segurança
Camada | Implementação |
Rede | Portas dos containers em |
Senhas | bcrypt via |
API keys | SHA-256 no banco, valor bruto nunca persistido |
MCP HTTP |
|
JWT | HS256 com |
Produção |
|
Brute-force | 5 falhas em 15 min por usuário ou por IP → |
Rate limit | Janela de 60 s por API key sobre |
Permissões |
|
Headers |
|
CORS | Origens por |
Validação |
|
Sanitização | Erros do OTRS viram |
Sessão OTRS |
|
Auditoria | Toda operação de ticket grava agente, key, ticket e duração em |
Containers | Usuário não-root |
Fail2ban | Jails em |
Segredos ficam apenas em variáveis de ambiente. record_activity e record_tool_call descartam campos password antes de gravar.
Observabilidade
Backend instrumentado sem alteração de código: os Dockerfiles usam opentelemetry-instrument como wrapper, com instrumentações de FastAPI, httpx, SQLite3 e logging.
api / mcp-server ──gRPC:4317──▶ otel-collector ──OTLP HTTP──▶ Tempo / Mimir
browser ─────────HTTP:4318────▶ otel-collectorPara habilitar o envio, defina no .env:
OTEL_TEMPO_ENDPOINT=http://IP-DO-GRAFANA:4318
VITE_OTEL_ENDPOINT=https://seu-dominio/otrs/otelRebuild (VITE_OTEL_ENDPOINT entra no build do frontend):
docker compose up -d --buildConsulta no Grafana Explore (Tempo):
{ resource.service.name = "otrs-mcp-api" }Sem OTEL_EXPORTER_OTLP_ENDPOINT alcançável, o opentelemetry-instrument opera em modo noop. Sem VITE_OTEL_ENDPOINT, o frontend não envia traces.
Deploy em produção
Nginx
nginx/mcp.conf vem configurado para domínio compartilhado, servindo este projeto sob o subpath /otrs/:
Rota | Destino |
|
|
|
|
|
|
| frontend |
| outro serviço em |
Ajuste server_name e, se for usar subpath, defina VITE_BASE_PATH=/otrs/ antes do build do frontend. Depois:
sudo cp nginx/mcp.conf /etc/nginx/sites-available/mcp.conf
sudo ln -s /etc/nginx/sites-available/mcp.conf /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d seu-dominioConfira a porta do frontend antes de recarregar: o Compose publica
127.0.0.1:8081, e o vhost do repositório aponta para8080. Veja Limitações conhecidas.
Systemd, backup e monitoramento
sudo cp deploy/otrs-mcp.service /etc/systemd/system/
sudo systemctl daemon-reload && sudo systemctl enable --now otrs-mcp
chmod +x deploy/deploy.sh deploy/backup.sh deploy/healthcheck.sh
(crontab -l 2>/dev/null; echo "0 3 * * * /opt/otrs-mcp-server/deploy/backup.sh") | crontab -
(crontab -l 2>/dev/null; echo "*/5 * * * * /opt/otrs-mcp-server/deploy/healthcheck.sh") | crontab -
sudo cp deploy/otrs-mcp.logrotate /etc/logrotate.d/otrs-mcpFail2ban:
sudo cp deploy/fail2ban/jail.local /etc/fail2ban/jail.local
sudo cp deploy/fail2ban/filter.d/* /etc/fail2ban/filter.d/
sudo systemctl restart fail2banAtualizações posteriores: ./deploy/deploy.sh --pull.
Estrutura do projeto
otrs-mcp-server/
├── src/otrs_mcp/
│ ├── main.py # Entry point MCP (stdio / streamable-http)
│ ├── tools.py # 5 tools MCP
│ ├── resources.py # 3 resources MCP
│ ├── mcp_auth.py # TokenVerifier de API key + escopos do MCP
│ ├── api.py # API REST + middleware de security headers
│ ├── routes/admin.py # Login, refresh, users, keys, auditoria, métricas
│ ├── auth.py # JWT, API key, rate limit, permissões
│ ├── database.py # SQLite WAL: schema e CRUD
│ ├── client.py # Cliente HTTP do OTRS com sessão e retry
│ ├── config.py # Configuração via pydantic-settings
│ ├── validation.py # validate_ticket_id
│ ├── activity.py # Atividade em JSON
│ ├── constants.py # Prioridades e estados válidos
│ └── exceptions.py # Exceções do domínio
├── frontend/ # React 19 + Vite 6 + Tailwind
├── nginx/mcp.conf # Vhost do host
├── otel/ # Config do collector
├── deploy/ # systemd, scripts, logrotate, fail2ban
├── tests/unit/ # 41 testes
├── docker-compose.yml
├── Dockerfile # MCP server
└── Dockerfile.api # API RESTTabelas do SQLite
Tabela | Conteúdo |
| Administradores e hash bcrypt |
| Keys com hash, permissões, rate limit, expiração, contador de uso |
| Auditoria de operações; base do rate limit e das métricas |
| Tentativas de login; base do lockout de brute-force |
Desenvolvimento
uv sync --extra dev
uv run pytest tests/unit/ -v
uv run pytest tests/unit/ --cov=src/otrs_mcp --cov-report=term-missing
uv run black src/
uv run isort src/
uv run mypy src/Entry points instalados: otrs-mcp-server (MCP) e otrs-mcp-api (REST).
Limitações conhecidas
Pontos que valem atenção antes de expor o serviço:
Divergência de porta do frontend. O Compose publica
127.0.0.1:8081:80; o vhost fazproxy_passpara127.0.0.1:8080. Alinhe um dos dois, senão/otrs/responde 502.Rate limit conta operações registradas. A janela usa as linhas de
api_usage, gravadas pela API REST após o sucesso da operação. As tools MCP registram atividade emactivity.json, não emapi_usage, então o rate limit de uma key usada só via MCP não é acionado.usage_countinfla no uso via MCP. O token é validado em cada requisição HTTP do transporte streamable-http, e uma única sessão MCP gera várias requisições. O contador da key sobe mais rápido do que o número de tools chamadas.Lockout de login por IP e usuário. Como a contagem considera o username, tentativas repetidas contra um usuário existente podem bloquear temporariamente o login legítimo dele. O desbloqueio é por tempo (15 min).
SQLite sem criptografia em repouso. Hashes de senha e de key ficam em
/data/otrs-mcp.db. Proteja o volume e os backups.
Solução de problemas
Sintoma | O que verificar |
Erro de SSL ao falar com o OTRS |
|
Redirect 301 do OTRS | Use a URL HTTPS completa em |
Start falha com | Falta |
Start falha pedindo JWT secret |
|
Login sempre inválido no primeiro uso | Nenhum admin criado: defina |
| Key revogada, expirada ou header ausente |
| Falta |
| Cliente MCP sem |
| A key só tem |
MCP recusa toda key | O container |
| Rate limit da key; aumente o valor ou use |
| Lockout de brute-force; espere 15 min e confira o Login Audit |
|
|
| Porta do frontend divergente (8080 vs 8081) |
Traces ausentes no Grafana | Confira |
SPA quebrada em subpath | Rebuild com |
docker compose logs -f api
docker compose logs -f mcp-server
docker compose logs -f otel-collector
sudo journalctl -u otrs-mcp -f
sudo tail -f /var/log/nginx/mcp-admin-error.logLicença
Apache-2.0
Available Tools
5 toolscreate_ticketC
Create a new ticket in OTRS
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| queue | No | ||
| state | No | ||
| title | Yes | ||
| priority | No | ||
| ticket_type | No | ||
| customer_user | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of disclosing side effects. It only names the action without noting that a persistent OTRS record is created, whether calls are idempotent, whether authentication is required, or what errors may occur.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single 7-word sentence with zero filler and the verb front-loaded. It is appropriately brief, though it borders on under-specification rather than genuine explanatory economy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
A 7-parameter tool with no annotations and no parameter descriptions needs far more than a purpose statement; the description omits the required title/body contract and how optional fields are validated. The presence of an output schema covers return values, which keeps this from a 1, but an agent still lacks essential calling context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across 7 parameters, so the description must compensate, but it names no parameters at all. An agent is left with bare parameter names (body, queue, state, priority, ticket_type, customer_user) plus title, with no format, allowable-value, or domain guidance.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Create') and resource ('a new ticket in OTRS'), and the word 'new' cleanly separates it from the update_ticket sibling. It is accurate and unambiguous, though it adds only the 'in OTRS' context beyond what the tool name already communicates.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus get_ticket, search_tickets, or update_ticket. No prerequisites, ordering constraints, or when-not-to-use conditions are mentioned; usage context must be entirely inferred from the tool name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_ticketB
Get ticket details from OTRS
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes | ||
| include_extended_data | No | ||
| include_dynamic_fields | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of indicating safety; the word 'Get' clearly conveys a read-only retrieval with no mutation, which is useful. However, it adds no detail about access requirements, behavior of the include flags, or potential response size, though some of this is covered by the output schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single sentence, front-loaded with the verb and object, with no filler. It is appropriately sized for a simple retrieval tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The output schema covers return shape, so that burden is lifted. Still, with no annotations and sibling tools present, the description doesn't clarify when to choose this tool or how extended data and dynamic fields affect the result, leaving clear gaps in context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description adds no parameter-specific meaning beyond the raw schema titles. The required ticket_id is inferable from tool name, but include_extended_data and include_dynamic_fields are not explained, making this less than adequate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly identifies a get operation on ticket details from OTRS, which is the correct resource and verb. It does not explicitly contrast with siblings such as get_ticket_history or search_tickets, so it stops short of the top score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given about when to use this tool over search_tickets, get_ticket_history, or other siblings. The meaning is inferable but not stated; an agent is not told that this is for fetching a single known ticket by ID.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_ticket_historyC
Get ticket history from OTRS
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description carries the full burden. It indicates a read operation but does not disclose what 'history' includes, whether it returns change logs versus messages, what auth or prerequisites are needed, or how results are ordered/limited.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single efficient sentence with no filler. It could carry more useful detail, but it is well-structured and front-loaded for a simple tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With only one parameter and an output schema available, the basic invocation path is reasonably clear. However, the description lacks enough detail about what constitutes ticket history and under what circumstances to choose this over get_ticket, leaving some ambiguity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description does not explain the ticket_id parameter beyond its name and string type. The parameter name is fairly self-explanatory, but the description adds no semantic value to compensate for the missing schema documentation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a clear verb ('Get'), a specific resource ('ticket history'), and the system ('OTRS'). It is distinguishable from siblings like get_ticket by name and resource, though it does not explicitly contrast itself with them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus get_ticket or search_tickets. The intended context is implied by the name and description, but no exclusions, alternatives, or conditions are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_ticketsC
Search for tickets in OTRS
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| queue | No | ||
| state | No | ||
| title | No | ||
| sort_by | No | Age | |
| order_by | No | Down | |
| priority | No | ||
| customer_id | No | ||
| customer_user | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, so the description carries the full disclosure burden, yet it reveals nothing about match semantics, how filters combine, the default sort (Age/Down), or limit/pagination behavior. The output schema helps with return shape but not with behavioral traits an agent needs to predict the tool's effect.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The single sentence is lean and front-loaded with the core action, but for a tool with 9 optional parameters, this brevity is under-specification rather than efficient structure. There are no wasted words, yet no additional context is packed into the available space.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given moderate complexity (9 optional filters, no annotations, 0% schema coverage), the description is far too thin to support correct invocation. An agent would not know how filters behave, what values queue/state accept, or how sorting works; the output schema covers only what is returned, not how to call the tool properly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across 9 parameters, and the description does nothing to compensate. It never mentions the filter parameters, does not explain valid values for sort_by/order_by, and does not clarify the distinction between customer_id and customer_user, leaving the agent to guess parameter meaning.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Search') and resource ('tickets in OTRS'), clearly identifying the tool's core action. The sibling tools use distinct verbs (create, get, update, get_history), so search is implicitly differentiated as the query-multiple-tickets operation, though no explicit contrast is given.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. An agent must infer that get_ticket retrieves a single ticket while search_tickets finds tickets by criteria, but nothing states this, and no exclusions or alternative recommendations are offered.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
update_ticketC
Update an existing ticket in OTRS
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | ||
| queue | No | ||
| state | No | ||
| title | No | ||
| priority | No | ||
| ticket_id | Yes | ||
| customer_user | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must disclose behavioral details on its own. It communicates that the tool mutates an existing ticket, but it does not explain whether updates are partial, what fields are affected, what authorization is needed, or how invalid ticket IDs 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single front-loaded sentence with no filler or redundancy. It is concise, though its brevity contributes to the under-specification penalized in other dimensions.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 7 parameters and no annotation or schema descriptions, one short sentence is insufficient. The description covers the core operation but omits field-level update semantics, optionality behavior, and error conditions; the presence of an output schema only accounts for return values, not input behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description adds no parameter information. The 7 parameters, including optional nullable fields like state, priority, and owner, are left entirely to the agent to infer from their titles, so the description fails to compensate for the schema's lack of explanations.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action and resource: 'Update an existing ticket in OTRS'. It clearly indicates this tool modifies an already-created ticket, which distinguishes it from create_ticket and the read-only siblings, but it does not enumerate the updatable fields or explicitly name alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is only implied: use this tool when an existing OTRS ticket needs to be modified. There is no explicit guidance on when to prefer it over create_ticket or get_ticket, and no conditions, prerequisites, or exclusions are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v0.2.0- First observed
create_ticket - First observed
get_ticket - First observed
get_ticket_history - First observed
search_tickets - First observed
update_ticket
TDQS
Scored across 5 tools
Each tool targets a distinct operation on tickets: create, retrieve individual details, search, update, and retrieve history. There is no meaningful overlap between get_ticket and get_ticket_history because one returns current state and the other returns the audit trail.
All tools follow a consistent verb_noun pattern with snake_case: create_ticket, get_ticket, search_tickets, update_ticket, get_ticket_history. The only minor variation is the plural 'tickets' in search_tickets, which is natural and does not break the pattern.
Five tools is well-scoped for a ticket management server. Each tool represents a core operation without unnecessary redundancy, making the set easy to navigate.
The tool surface covers the essential ticket lifecycle: creation, retrieval, search, update, and history lookup. For OTRS, this is a complete and practical set with no obvious dead ends.
Related MCP Connectors
MCP server enabling AI agents to manage Bitrix24 features via standardized protocol
AI-native helpdesk hosted in Germany: tickets, replies, KPIs and knowledge base over MCP.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
- mttrlyOAuthcom.mttrly
AI-powered incident management and server monitoring via MCP.
Related MCP Servers
- AlicenseCqualityCmaintenanceAn MCP server that enables AI assistants to interact with JIRA, allowing for querying issue details, creating and updating work items, and managing attachments through a standardized interface.124MIT

tickiti-mcpofficial
AlicenseBqualityBmaintenanceAn MCP server that exposes the Tickiti helpdesk API to AI assistants, enabling ticket management and helpdesk operations via natural language.11MIT- AlicenseAqualityDmaintenanceMCP server for Otobo ITSM enabling AI assistants to search, create, update, and manage tickets via the Generic Interface REST API.104 npm1MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects AI assistants to Zammad, providing tools for managing tickets, users, organizations, and attachments.41AGPL 3.0