Skip to main content
Glama

Resolve knowledge gap

resolve_knowledge_gap

🧠 INSIGHTS DE ATENDIMENTO — Resolve, descarta ou adiciona à base de conhecimento uma lacuna registrada por list_knowledge_gaps. "add_to_kb" cria um novo documento na KB (pergunta + resposta) e reindexação automática, além de marcar o gap como resolvido. Sem target_user_id, opera na PRÓPRIA conta autenticada; o administrador da plataforma pode passar target_user_id para operar na conta de um cliente.

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": {
      "gap_id": "<gap_id>",
      "action": "<action>"
    },
    "name": "resolve_knowledge_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAção a executar
gap_idYesID da lacuna, obtido via list_knowledge_gaps
resolutionNoResposta correta para a pergunta (obrigatório para "resolve" e "add_to_kb")
target_user_idNoID da conta-alvo (opcional; APENAS o admin da plataforma pode usar). Padrão: a conta autenticada.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, closed-world mutation. The description adds genuinely new behavior: add_to_kb creates a KB document and triggers automatic reindexing plus marks the gap resolved, and target_user_id has an authorization restriction with an implicit default. It still does not describe what a resolve/dismiss returns or whether dismissal is reversible.

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?

One dense paragraph that front-loads the action set and then the scoping/authorization rules; every clause carries information. The '🧠 INSIGHTS DE ATENDIMENTO' label is decorative noise and the mixed-language phrasing adds minor friction.

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 mutation tool with no output schema, the description covers the key side effect (KB write plus reindex) and the multi-tenant authorization model, which are the two things an agent could get wrong. Return values are not described, but nothing else critical is missing.

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 coverage is 100% and every parameter already carries a Portuguese description, including the admin-only target_user_id and the resolution requirement. The description restates that target_user_id defaults to the authenticated account, which reinforces but does not materially extend the schema.

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 set (resolve, dismiss, add to KB) on a specific resource (a knowledge gap registered by list_knowledge_gaps), and even names the sibling tool that generates the input. An agent can distinguish it from create_kb_document or list_knowledge_gaps immediately.

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 explicitly routes the agent to list_knowledge_gaps for gap_id and gives the condition for target_user_id (platform admin only, otherwise own account). It does not spell out when to choose resolve vs dismiss vs add_to_kb beyond the enum names, so it is clear but not fully prescriptive.

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.

Resources