Skip to main content
Glama
JoseAlmeida-Ploomes

Ploomes MCP Server

montar_bloco_produtos_proposta

Inserts a repeatable products block into a proposal template HTML page to automatically derive form fields for product items.

Instructions

    Inserir o bloco repetível de "Produtos" (itens da proposta) no HTML de
    uma página de um modelo de Proposta/Venda/Documento (PVD).

    CONTEXTO: no Ploomes, o formulário de uma proposta (os campos que o
    usuário preenche ao gerar uma PVD) não é criado por uma API de "campo
    de formulário" isolada — ele é DERIVADO pelo backend a partir do
    parsing do HTML salvo em Pages[].BodySourceCode. Isso vale
    especialmente para blocos repetíveis (produtos, parcelas): não existe
    endpoint para criar o FormField de um bloco diretamente (tentar isso
    via salvar_campo_formulario_proposta cria um campo com QuickFormId
    nulo, ou seja, quebrado). A forma real de criar um bloco funcional é
    escrever a tag HTML correta no corpo do modelo e deixar o Ploomes
    derivar o FormField (com QuickFormId) ao salvar — que é exatamente o
    que esta ferramenta faz.

    Parâmetros:
        template_id: Id do DocumentTemplate (use buscar_templates_documentos).
        pagina_id: Id da página (Pages) onde inserir o bloco. Se omitido,
            usa a primeira página do modelo (menor Ordination).
        nome_secao/codigo_secao: viram section-name/section-code no HTML.
            codigo_secao deve ser único entre os blocos deste modelo — use
            0 para o primeiro bloco (é o valor usado em todo modelo padrão
            observado). Não testado com mais de um bloco de produto.
        campos: lista de FieldKeys das colunas do bloco, na ordem desejada.
            Suportados hoje: product_name, product_code,
            product_measurement_unit, quote_product_quantity,
            quote_product_unit_price, quote_product_discount,
            quote_product_total.
        posicao: "fim" (default) ou "inicio" — onde no HTML atual da
            página o bloco é inserido.
        oculto: se True, marca a seção como oculta por padrão no HTML
            (data-hidden="true") — mesmo comportamento observado em
            modelos padrão do Ploomes.

    Limitação conhecida: não testado com mais de um bloco de produto por
    modelo — trate como risco em contas com múltiplos blocos. Bloco de
    PARCELAS ainda não tem tool equivalente; configure manualmente no
    admin do Ploomes.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
camposNo
ocultoNo
posicaoNofim
pagina_idNo
nome_secaoNoProdutos/Serviços
template_idYes
codigo_secaoNo
titulo_colunaNoItens
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses behavioral traits: the tool writes HTML to page body, causes Ploomes to derive FormField, supports insertion position and hidden flag, and has known limitations (not tested with multiple blocks). It does not explicitly state that it overwrites existing HTML, but the behavior is well described.

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 well structured: a clear one-line purpose, followed by a contextual paragraph explaining the derivation process, then a bulleted parameter list, and finally limitations. It is front-loaded with the core action. While detailed, every sentence adds value, earning a score of 4.

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

Completeness3/5

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

There is no output schema, and the description does not mention what the tool returns (e.g., success indicator, updated HTML). Given the complexity (8 parameters, mutation behavior), the description adequately covers input and behavioral context but would benefit from stating return values. It is minimally viable but incomplete.

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 0%, but the description provides detailed semantics for all 8 parameters: template_id, pagina_id, nome_secao, codigo_secao, campos (with supported field keys), posicao, oculto, titulo_coluna. It explains defaults, uniqueness requirements, and supported values, fully compensating for the lack of schema descriptions.

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 clearly states that the tool inserts a repeatable 'Produtos' block into HTML of a proposal page. The verb 'inserir' and resource 'bloco repetível de Produtos' are specific. It does not explicitly distinguish from sibling tools, but the purpose is unambiguous given the detailed context.

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?

The description explicitly explains when to use this tool (to create a functional block via HTML) and when not to (using salvar_campo_formulario_proposta results in a broken field). It also provides context about the derivation process and alternative approaches, making usage guidance thorough.

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

Install Server

Other Tools

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/JoseAlmeida-Ploomes/ploomes-mcp'

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