Skip to main content
Glama

Gerar documento avulso

gerar_documento
Read-only

Gera de 1 a 100 documentos válidos de um tipo: cpf, cnpj, cartao (número, validade e CVV), conta (banco, agência e conta com DV) ou senha. Os dígitos verificadores são calculados, não inventados. Cada tipo aceita só as suas opções (uf no cpf, alfanumerico no cnpj, bandeira no cartao, banco na conta, as regras de tamanho e caracteres na senha); opção que não vale para o tipo é erro. Devolve também a seed usada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ufNosó cpf: sigla do estado de emissão (define o 9º dígito); vazio sorteia
seedNosemente do sorteio; omitida, o servidor sorteia uma e a devolve
tipoYescpf, cnpj, cartao, conta ou senha
bancoNosó conta: código do banco (001, 033, 041, 104, 237, 341); vazio sorteia
mascaraNocom pontuação: cpf, cnpj, cartao (espaços) e conta (hífen no DV). Não vale para senha
bandeiraNosó cartao: visa, mastercard, elo, amex, hipercard ou diners; vazio sorteia
especiaisNosó senha: caracteres especiais aceitos (padrão !@#$%&*-_+=?)
quantidadeNoquantos gerar, de 1 a 100 (padrão 1)
min_numerosNosó senha: mínimo de números; 0 não usa o tipo (padrão 1)
tamanho_maxNosó senha: tamanho máximo, até 128 (padrão 16)
tamanho_minNosó senha: tamanho mínimo (padrão 12)
alfanumericoNosó cnpj: formato alfanumérico novo (IN RFB 2.229/2024)
min_especiaisNosó senha: mínimo de especiais; 0 não usa o tipo (padrão 1)
min_maiusculasNosó senha: mínimo de maiúsculas; 0 não usa o tipo (padrão 1)
min_minusculasNosó senha: mínimo de minúsculas; 0 não usa o tipo (padrão 1)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedYesseed usada; repita-a para obter os mesmos documentos
tipoYes
itensYes
quantidadeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / banco / description
      Previous value: -"só conta: código do banco (001, 033, 104, 237, 341…); vazio sorteia"New value: +"só conta: código do banco (001, 033, 041, 104, 237, 341); vazio sorteia"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, openWorldHint=false and idempotentHint=false; the description goes beyond them by explaining the randomness/seed contract ('omitida, o servidor sorteia uma e a devolve') and the error semantics for type-inapplicable options. That is real behavioral context, though it does not discuss volume/rate considerations or what a partial failure across 'quantidade' documents looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the action and count range, then the type list, then the constraint/error rule and the seed return. Every sentence carries new information and nothing is padded.

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?

With an output schema present, return values need not be enumerated, and the description still adds the non-obvious seed-return fact. For a 15-parameter tool with full schema coverage and clear annotations, the type/option interaction and error behavior are the only real gaps an agent would face, and both are covered.

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 already 100%, so the baseline is 3. The description adds value by summarizing the cross-parameter constraint matrix (uf only for cpf, alfanumerico only for cnpj, bandeira only for cartao, banco only for conta, size/character rules only for senha) and by declaring that a mismatched option is an error rather than being ignored.

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?

States a precise verb+resource+scope: generates 1 to 100 valid documents of one of five enumerated types (cpf, cnpj, cartao, conta, senha), and adds a differentiating guarantee that check digits are computed rather than fabricated. It never names a sibling, so an agent gets no help distinguishing it from the 'gerar' or 'validar_documento' tools from the text alone.

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

Usage Guidelines3/5

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

Usage guidance is implied through the per-type option matrix ('cada tipo aceita só as suas opções') and the explicit error rule for mismatched options, which tells an agent how to combine parameters. However, there is no statement of when to choose this tool over the sibling 'gerar' or 'validar_documento', and no prerequisites are described.

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