Skip to main content
Glama

SmartDrugs

Publicar comentário ou pergunta

publicar_comentario

Publica um comentário, uma pergunta ou uma resposta em nome da pessoa conectada, numa ficha, artigo ou outra página com comentários. Antes de chamar: escreva com as palavras da pessoa, mostre o texto final e peça que ela aprove. A publicação aparece na hora, com o nome do perfil, e passa pela moderação automática da comunidade (sem venda, sem contato, no máximo 2 links). Para responder, passe o id da publicação em responder_a (ids vêm de ler_comentarios).

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": {
      "chave": "<chave>",
      "texto": "<texto>",
      "texto_confirmado": "<texto_confirmado>"
    },
    "name": "publicar_comentario"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNocomentario
chaveYesChave da conexão (sdm_…), de entrar_na_comunidade, depois que a pessoa autorizou.
textoYes
artigoNoSlug do artigo (comentários do artigo).
paginaNoOutra página com comentários, como /neuroatlas/, /stacks/<id>/ ou /calculadoras/<slug>/.
substanciaNoSlug ou nome da substância (comentários da ficha).
responder_aNoId da publicação respondida.
texto_confirmadoYestrue só se a pessoa aprovou o texto final nesta conversa.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (write, non-idempotent, non-destructive), it discloses that the post appears immediately under the profile name, that it passes automated community moderation, and lists the moderation rules (no selling, no contact info, max 2 links). This is substantive behavior an agent could not infer from structured fields.

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?

Four sentences, purpose first, then preconditions, then behavioral consequences, then the reply parameter hint. Every sentence carries information; slight density in the moderation clause but no filler.

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 an 8-parameter write tool with no output schema, it covers the approval gate, the moderation policy, and the reply flow. It is somewhat thin on what happens when moderation rejects the text or on which addressing field to choose, but an agent has enough to call it correctly.

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 75%, so most parameters are self-documented; the description still adds meaning by tying responder_a to ids obtained from ler_comentarios and tying texto_confirmado to human approval. It does not explain tipo's default or the artigo/pagina/substancia exclusivity.

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?

Opens with a specific verb and resource ('Publica um comentário, uma pergunta ou uma resposta') and names the targets (ficha, artigo, outra página com comentários), which lets an agent distinguish it from the read sibling ler_comentarios.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit preconditions ('escreva com as palavras da pessoa, mostre o texto final e peça que ela aprove') and routes the reply case to responder_a with ids from ler_comentarios. When-to-use and how-to-proceed are both stated.

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