Skip to main content
Glama

Create product

create_product

Cria um novo produto ou serviço no catálogo. Produtos ativos passam a ser incluídos automaticamente no contexto do agente, em toda resposta. É AQUI que mora o preço de produto ou serviço (campo price, ex.: "A partir de R$ 32.900") — não no system_prompt nem na base de conhecimento, para não ter dois valores divergindo. Informação que o agente deve PERGUNTAR ao cliente não é produto: vai em order_fields (update_agent_config).

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": {
      "name": "<name>",
      "type": "<type>",
      "description": "<description>"
    },
    "name": "create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNome do produto ou serviço
typeYesTipo: "physical" (produto físico), "recurring" (assinatura/recorrente), "service" (serviço avulso)
priceNoPreço em formato livre, ex: "R$ 99,90" ou "A partir de R$ 200"
featuresNoCaracterísticas adicionais, benefícios ou observações (opcional)
descriptionYesDescrição detalhada do produto para o agente usar no contexto
recorrenciaNoCobrança do valor: unico (setup, avulso), mensal ou anual
preco_numeroNoValor em número usado quando o produto entra num negócio (ex.: 300). O agente continua respondendo com price

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / preco_numero
      Added value: +{
      +  "description": "Valor em número usado quando o produto entra num negócio (ex.: 300). O agente continua respondendo com price",
      +  "type": "number"
      +}
    • addedInput schema / properties / recorrencia
      Added value: +{
      +  "description": "Cobrança do valor: unico (setup, avulso), mensal ou anual",
      +  "enum": [
      +    "unico",
      +    "mensal",
      +    "anual"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, so the write/safety profile is covered. The description adds one genuinely useful side effect: active products are automatically injected into the agent's context in every response. It does not say what happens on duplicate names or whether the agent context updates immediately.

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 short sentences that are front-loaded with the core action before the placement rules. The emphasis on price location is slightly repetitive but justified given the risk of divergent values.

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?

No output schema exists, so the description could say what a create returns (an ID, the created object), which is a minor gap. Everything needed to decide whether to call it and what to put in the key fields is present, including how the product affects the agent's runtime context.

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 description coverage is 100%, so all seven parameters, including enums and the price vs. preco_numero distinction, are already documented. The description reinforces where price should live but adds no field-level meaning beyond the schema, so the baseline applies.

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 and resource ('Cria um novo produto ou serviço no catálogo') and immediately scopes what belongs in it versus elsewhere. It also distinguishes create_product from the sibling update_agent_config by naming the order_fields destination for customer-asked information.

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?

Explicit routing guidance: price belongs here, not in system_prompt or the knowledge base (to avoid divergent values); information the agent must ASK the customer is not a product but goes in order_fields via update_agent_config. Both when-to-use and when-not-to-use are stated with named alternatives.

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