mapj-protheus-query

Query Protheus ERP data read-only via mapj CLI with JSON or Toon outputs.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/Mario-pereyra/mapj --skill mapj-protheus-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mapj-protheus-query
Source: https://github.com/Mario-pereyra/mapj/tree/main/skills/mapj-protheus-query
Command: npx skills add https://github.com/Mario-pereyra/mapj --skill mapj-protheus-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Query Protheus ERP data access via the mapj CLI in a read-only, secure manner, providing reusable configurations and automation-friendly outputs.

Core Features & Use Cases

  • Enforces read-only SQL access with strict prefix validation to prevent DML/DDL operations.
  • Manages named connection profiles to run queries across environments without changing the active session.
  • Supports a presets system to store and reuse parameterized queries for repeatable tasks.
  • Provides optional schema discovery to inspect table structures before querying.
  • Delivers automation-friendly outputs (JSON and Toon) suitable for agent workflows.

Quick Start

Authenticate to Protheus, configure a profile, and run a sample read-only query such as selecting from SA1010.

Frequently Asked Questions about mapj-protheus-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run read-only SQL queries against a Protheus ERP database safely?

You can run read-only SQL queries against a Protheus ERP database by using the mapj CLI, which enforces strict prefix-based validation to block DML/DDL operations and returns structured JSON or Toon outputs for automation.

Can I query Protheus data across multiple environments without changing my active session?

Yes, you can query Protheus data across multiple environments by using named connection profiles, which allow you to target different databases directly without altering your active session configuration.

How do I store and reuse parameterized SQL queries for repeatable Protheus data extraction tasks?

You can store and reuse parameterized SQL queries for Protheus data extraction by utilizing the presets system, enabling repeatable tasks without rewriting SQL statements for each execution.

Does mapj support schema discovery to inspect Protheus table structures before querying?

Yes, mapj supports optional schema discovery to inspect Protheus table structures before querying, ensuring accurate results by validating table and column names against the live database schema.

What output formats are available when extracting Protheus ERP data for agent workflows?

When extracting Protheus ERP data, the available output formats are JSON and Toon. These automation-friendly formats provide structured outputs that integrate seamlessly with agent workflows and downstream systems.

What limitations exist when using prefix-based validation to prevent DML and DDL operations in Protheus queries?

The limitation of prefix-based validation is that it strictly blocks any SQL statements not matching allowed read-only prefixes, preventing all DML and DDL operations to ensure data safety but restricting queries to read-only commands.