Skip to main content
Glama
rgrz

PeopleSoft MCP Server

by rgrz

get_sql_definition

Need the SQL definition for a PeopleSoft SQL object? Provide the SQLID to retrieve concatenated SQL text from all definition rows.

Instructions

Get the SQL text for a PeopleSoft SQL object by SQLID.

PSSQLTEXTDEFN stores SQL used by views, App Engine programs, and PeopleCode
(SQL.SQLID). Long SQL is split across multiple rows by SEQNUM.

Args:
    sql_id: The SQL object ID (e.g. 'HR_ABSV_JOB_EFFDT', 'GP_PIN_SELECT')
    max_length: Maximum total characters to return (default 64000).
                Use to avoid huge responses for very long SQL.

Returns:
    SQL definition with sql_text (concatenated from all SEQNUM rows),
    sql_type, market, and row_count.

Example:
    get_sql_definition("HR_ABSV_JOB_EFFDT")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sql_idYes
max_lengthNo
Behavior4/5

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

Descriptions disclose that long SQL is concatenated from multiple rows and that max_length can limit response size. Return fields are listed. No annotations provided, so description carries full burden. Lacks error behavior or performance details but covers key behavioral traits.

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 a clear summary, context, args, returns, and example. Each sentence adds information without redundancy. Efficiently conveys necessary details.

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 given the tool's simplicity: 2 parameters, no output schema, no annotations. Covers what the tool does, parameters, return fields, and example. Missing error handling (e.g., if SQLID not found) but adequate for typical use.

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 0%, so description adds all meaning. The sql_id parameter is given an example and context (SQL object ID). The max_length parameter explains its purpose and default, providing value beyond the schema's type and default.

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?

Clearly states the tool gets the SQL text for a PeopleSoft SQL object by SQLID. The verb 'get' and resource 'SQL text' are specific, and it distinguishes from sibling tools like 'search_sql_definitions' which is for searching.

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?

Implies usage when you have a SQLID, but no explicit when-to-use or when-not-to-use. Does not mention alternatives like 'search_sql_definitions' for finding SQLIDs. Provides context about the data source but no guidance on selection criteria.

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/rgrz/peoplesoft-mcp'

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