Skip to main content
Glama
devCMSS

tds-mcp

by devCMSS

Apagar programas do RPO

tds_rpo_delete
Destructive

Remove source or function from Protheus RPO, resolving functions to their containing source and deleting the entire source. Simulates by default; use confirmar=true to execute deletion.

Instructions

DESTRUTIVO — apaga fontes/recursos do RPO do ambiente conectado (equivale ao 'Delete source/resource from RPO' do TDS). Casos de uso: fonte renomeado que deixou o antigo no RPO causando 'Duplicated function', e limpeza de funções órfãs. Aceita nomes de fonte (ABC0187.PRW) ou de função (U_ABC0187) — função é resolvida para o fonte que a contém, e o FONTE INTEIRO é apagado, com todas as suas funções. Por padrão faz SIMULAÇÃO: mostra o que seria apagado e as funções afetadas. Só apaga com confirmar=true. Depois de apagar, relê o RPO para provar que sumiu.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmarNofalse (padrão) = simulação; true = apaga de fato do RPO
programasYesNomes de fontes no RPO (ex.: ABC0187.PRW) ou de funções (ex.: U_ABC0187)
Behavior5/5

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

Beyond the destructiveHint annotation, describes simulation mode, that deleting a function deletes entire source, and post-deletion re-read. No contradiction with annotations.

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?

Concise, front-loaded with 'DESTRUTIVO', well-structured sentences. Every sentence adds essential information.

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?

Fully covers input, behavior, safety (simulation), and post-deletion verification. No gaps for a destructive tool with two parameters and no output schema.

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 coverage is 100%, and description adds meaning: explains that programas accepts source or function names, and confirmar default is simulation. Adds value 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 the tool deletes sources/resources from RPO, specifies use cases (duplicated function, orphan functions), and distinguishes it from sibling tools like tds_compile or tds_rpo_info.

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?

Explicitly describes when to use (cleanup of orphan/duplicate functions) and how to use (simulation first, confirmar=true to delete). Provides clear context for safe usage.

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/devCMSS/tds-mcp'

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