Skip to main content
Glama
inhabitants

sapiens-mcp

by inhabitants

sapiens_instagram

Manage Instagram auto-DM rules to automate keyword-triggered direct messages and comment replies, including fallbacks and manual sends within Meta's 24-hour window.

Instructions

Auto-DM do Instagram da casa (o 'ManyChat próprio') — ADMIN-ONLY (dono). Quem manda DM ou comenta keyword num post do @sapiensinteticos recebe resposta automática; aqui você OPERA esse motor. Sub-actions: 'rules' (lista regras: keyword+sinônimos, matchMode, trigger, resposta, variações, eco público, escopo por post, disparos), 'rule_upsert' (cria/edita regra; ruleId presente = edita; keyword (+keywords sinônimos) + reply obrigatórios fora do fallback; matchMode contains|exact|starts; trigger dm|comment|story|all; replyVariants/echoVariants rodam em round-robin pra não repetir; mediaId escopa a regra num post — pegue ids reais com action=posts; isFallback responde DM sem keyword 1x/24h por pessoa), 'rule_delete' (apaga por ruleId), 'posts' (posts recentes da conta: id+caption+thumb, pra usar o id em mediaId), 'inbox' (conversas recentes; cada uma com canReply = janela de 24h da Meta aberta ou não), 'thread' (mensagens de uma conversa por igUserId), 'send' (responde na mão pela janela de 24h; fora dela a Meta recusa). Eco público opcional no comentário ('te respondi no direct!'). Limites da API: não dá pra iniciar conversa, só reagir; janela de 24h pra responder DM.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoTexto da resposta manual (send).
limitNoMáx de itens (inbox default 30, thread default 40).
replyNoResposta na DM (obrigatória no rule_upsert).
actionYes
activeNoRegra ativa (default true).
ruleIdNoId da regra (rule_upsert pra editar, rule_delete).
keywordNoKeyword principal da regra (substring case-insensitive por padrão). Obrigatória em regra não-fallback (ou use keywords).
mediaIdNoEscopo por post: id de mídia do Instagram; a regra só casa comentário DESSE post.
triggerNoO que dispara: dm / comment / story (resposta a story) / all (default: DM e comentário).
igUserIdNoIGSID da contraparte (vem do inbox). Pra thread e send.
keywordsNoSinônimos: a regra casa se QUALQUER um (keyword + keywords) bater. Ex: [site, url].
priorityNoMenor casa primeiro (default 100).
matchModeNoComo a keyword casa: contains (substring, default) / exact (palavra inteira) / starts (texto começa com).
isFallbackNoFallback: responde DM sem keyword (1x/24h por pessoa). Nunca dispara em comentário.
commentEchoNoEco público no comentário depois da DM ('te respondi no direct!'). Só p/ comentário.
echoVariantsNoVariações do eco público (round-robin).
replyVariantsNoVariações da resposta; presentes, rodam em round-robin no lugar da reply.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.38.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations say readOnlyHint=false and openWorldHint=true, and the description is fully consistent with those. It discloses mutation effects (cria/edita, apaga, responde na mão), permissions (ADMIN-ONLY), API limits (Meta refuses outside the 24h window), and algorithmic behaviors such as round-robin variants and the fallback rule firing only 1x/24h per person. This goes well beyond what the annotations alone communicate.

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 description is front-loaded with purpose and the admin gate, and every clause contributes to one of the seven actions or the API constraints. However, it is a long, dense run-on paragraph (roughly 250 words) that mixes action semantics, parameter rules, and limitations; better separation would improve scannability. The length is defensible given the 17-parameter/7-action surface.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description covers output-oriented details for key actions, such as posts returning id+caption+thumb and inbox conversations exposing canReply based on the Meta window. It also covers required parameter combinations, ID provenance, API restrictions, and edge-case caveats like fallback not firing on comments. For a complex tool, this is a complete enough description for an agent to select and invoke the correct action.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 94%, and the description still adds valuable cross-parameter semantics: keyword+reply are mandatory outside fallback, matchMode and trigger values are explained, mediaId scopes a rule to a post and tells the agent to get real IDs via action=posts, and igUserId comes from inbox. It also clarifies behavioral effects like replyVariants/echoVariants round-robin and fallback never firing on comments, which the schema alone does not express.

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 resource and operation: the Instagram auto-DM engine ('ManyChat próprio') for @sapiensinteticos, and says 'aqui você OPERA esse motor.' It enumerates seven sub-actions (rules, rule_upsert, rule_delete, posts, inbox, thread, send), so an agent can clearly identify what the tool does. This strongly differentiates it from the many sapiens_* sibling tools by resource and action space.

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?

The description states 'ADMIN-ONLY (dono)' and defines the operating context: when DMs or keyword comments arrive, this tool operates the automation engine. It gives concrete workflow hints such as 'pegue ids reais com action=posts' and 'vem do inbox', plus an explicit exclusion: 'não dá pra iniciar conversa, só reagir; janela de 24h pra responder DM.' It does not name alternative siblings, but the action-level routing is strong enough for this domain.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/inhabitants/sapiens-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server