Skip to main content
Glama

sftp_criar_pasta

Creates a folder on an SFTP server within the profile's write roots and optionally creates missing parent directories.

Instructions

Cria uma pasta no servidor. Respeita raizes_escrita, se o perfil tiver. criar_pais cria as pastas intermediarias que faltarem.

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": {
      "perfil": "<perfil>",
      "caminho": "<caminho>"
    },
    "name": "sftp_criar_pasta"
  }
}

Input Schema

NameRequiredDescriptionDefault
perfilYes
caminhoYes
criar_paisNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context beyond annotations: it can be blocked by the profile's raizes_escrita write roots. It does not say whether the operation is idempotent when the folder already exists or what error surfaces on a permission denial.

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 short sentences, front-loaded with the core action, then the constraint, then the flag's behavior. No filler. The phrase 'se o perfil tiver' is slightly clipped, but nothing is redundant.

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?

For a three-parameter tool with no output schema and no annotations-related gaps, most of what an agent needs is present. The remaining gap is outcome behavior: what it returns, and whether creating an existing folder fails, succeeds silently, or is treated as an error.

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 0%, so the description carries the full burden and partly meets it. criar_pais is explained ('cria as pastas intermediarias que faltarem'), and perfil is loosely characterized as the source of raizes_escrita. caminho remains undefined in both schema and description, so path format details are left to the caller's inference.

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 concrete verb and resource: 'Cria uma pasta no servidor'. That distinguishes it from the other mutating sibling at this level, sftp_enviar (file upload) and sftp_renomear (rename), without naming them explicitly. The purpose is unambiguous even though there is no explicit sibling routing.

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 constraints are implied but not spelled out: it does not say whether to check existence with sftp_listar first, what happens if the directory already exists, or when the caller should prefer creating parent directories in a separate step. The only real guidance given is that raizes_escrita is honored if the profile defines it.

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