Skip to main content
Glama

TreinoAI

Duplicar programa

duplicar_programa
Idempotent

Copia um programa da biblioteca do time com um novo nome, com o conteúdo que o editor mostra hoje. A cópia fica só na biblioteca: não é atribuída a nenhum cliente e ninguém é avisado. Exige chave_idempotencia: repetir o mesmo pedido com a mesma chave devolve a cópia já criada.

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_idempotencia": "<chave_idempotencia>",
      "programa_id": "<programa_id>",
      "nome": "<nome>"
    },
    "name": "duplicar_programa"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomeYesNome da cópia.
programa_idYesId do programa a copiar. Encontre-o com buscar_dados_do_time (entity "programs").
chave_idempotenciaYesUma chave nova para cada pedido (por exemplo um UUID). Para repetir o mesmo pedido, como depois de uma falha de conexão, use a mesma chave: o resultado anterior volta e nada é criado de novo. A mesma chave com um pedido diferente é recusada. Vale por 30 dias.

Output Schema

NameRequiredDescriptionDefault
linkYes
repetidaYes
programa_idYes
programa_origem_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Adds genuinely new behavior beyond the annotations: the copy is not attached to a client and nobody is notified, which matters for a mutation. However, the idempotency sentence largely restates what the chave_idempotencia schema field already documents in more detail (30-day window, same key with different request rejected), so the incremental value is moderate rather than rich.

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?

Three tight sentences, front-loaded with what gets copied and what the copy is not, then the idempotency constraint. The final sentence partially duplicates the idempotency field description in the schema, which is the only wasted effort.

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 low-risk mutation with full annotation coverage, a fully described schema and an output schema, the description covers source, snapshot semantics, side effects and retry behavior. Only permission requirements for copying from the team library are left unaddressed.

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 the schema already explains nome, programa_id and chave_idempotencia thoroughly, including the discovery hint for programa_id. The description only adds that the copy content is the current editor state rather than the saved/published version, which is useful but marginal at this coverage level.

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 ('Copia um programa'), the source scope ('da biblioteca do time'), and the exact snapshot semantics ('com o conteúdo que o editor mostra hoje'). It also separates itself from the assignment sibling by declaring 'não é atribuída a nenhum cliente', so an agent can distinguish it from atribuir_programa and criar_programa without opening either schema.

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?

Gives clear situational context: use this to get a standalone copy that lives only in the library, with no client assignment and no notification. It does not name an alternative or exclusion explicitly (e.g. 'use criar_programa to build from scratch'), so it sits just below the full routing guidance bar.

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