Skip to main content
Glama

sei_criar_documento_externo

Create an external document in a SEI process by uploading a file. Specify process, document series, access level, and date. Provide file content as base64 or local server path.

Instructions

Cria um documento externo (upload de arquivo) em um processo SEI.

  • processo: protocolo formatado ou IdProcedimento

  • id_serie: tipo do documento (use sei_pesquisar_tipos_documento)

  • descricao: descrição do documento

  • nivel_acesso: 0=público (padrão), 1=restrito, 2=sigiloso

  • data_elaboracao: dd/mm/aaaa (padrão: hoje)

O arquivo entra por UM dos dois caminhos:

  • arquivo_base64 + nome_arquivo: conteúdo do arquivo em base64. É o caminho a usar quando o arquivo não está no disco do servidor MCP — por exemplo um PDF vindo do Drive, gerado na conversa ou baixado de outra tool. O nome_arquivo importa: o SEI usa a extensão para tipar o anexo.

  • arquivo_path: caminho local NO SERVIDOR onde o MCP roda (não no seu computador). Só serve para arquivos que já estão lá.

O limite de tamanho é o do próprio SEI (veja sei_parametros_upload).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
id_serieYes
processoYes
descricaoNo
arquivo_pathNo
nivel_acessoNo0
nome_arquivoNo
arquivo_base64No
data_elaboracaoNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations are minimal (readOnlyHint=false, destructiveHint=false, openWorldHint=true) and consistent with description. Description adds significant behavioral details: file upload alternatives, size limit reference, naming importance, default values. No contradiction.

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?

Description is well-structured with bullet points, each sentence adds value. No redundant or filler content. Front-loaded with main action.

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?

Comprehensive parameter and usage details, references other tools. Does not mention return value, but output schema exists. Could be more complete with a note on return format, but still very thorough.

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 description coverage is 0%, so description carries full burden. It explains each parameter in detail: processo (format), id_serie (referenced to another tool), nivel_acesso (enum values), data_elaboracao (format), file upload parameters with usage scenarios. Adds meaning beyond schema.

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 clearly states it creates an external document (upload file) in a SEI process, using specific verb and resource. It distinguishes from sibling tools like sei_criar_documento by specifying 'externo' and the upload context.

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?

Provides explicit guidance on when to use each file upload method (base64 vs path) and mentions using sei_pesquisar_tipos_documento for id_serie. Lacks explicit 'when not to use' but context is clear.

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/SEI-Pro/mcp-seipro'

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