Skip to main content
Glama
Jcurrin27

peoplesoft

by Jcurrin27

query_peoplesoft_db

Execute direct SQL queries against a local SQLite database of PeopleSoft contracts and billing data, with schema introspection for accurate results.

Instructions

Query the local SQLite database directly.

When working with this database, follow these guidelines in order:

1. FIRST, discover what tables exist:
   - Use: list_tables()
   - Currently available: PROJECT, CA_DETAIL, CA_BILL_PLAN

2. SECOND, check the structure of a table before querying it:
   - Use: describe_table('PROJECT')
   - This shows all columns, their types, and which are primary keys

3. FINALLY, write your query using the discovered structure
   - Use '?' placeholders for parameters (not Oracle-style ':1')
   - Example: SELECT * FROM PROJECT WHERE BUSINESS_UNIT = ?

AVAILABLE RESOURCES:
- Use list_tables() to discover tables
- Use describe_table() to get table structure
- Use list_projects(), get_project_contracts(), list_contracts(), get_bill_plan()
  for semantic access to the contracts/billing schema

:param sql_query: SQL query to execute (e.g., SELECT * FROM PROJECT WHERE BUSINESS_UNIT = ?)
:param parameters: List of query parameters (optional)
:return: A dictionary containing query results or an error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sql_queryYes
parametersNo
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does convey the query mechanics (SQLite '?' placeholders not Oracle-style), which is useful. However, it gives no indication of whether this is a read-only operation, whether it modifies data, what the return structure looks like, or error handling behavior. It also names helper functions (list_tables, describe_table) as if they're usable within this tool, which could be confusing about actual callable behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is reasonably structured with numbered steps and clear sections (AVAILABLE RESOURCES, then param docs). However, it's somewhat verbose—the AVAILABLE RESOURCES section largely repeats information from the sibling tool names already visible, and the helper-function references (list_tables(), describe_table()) are ambiguous since those are sibling tools, not necessarily callable functions. The front-loaded workflow section is the strongest part; the redundancy at the end is padding.

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 raw SQL query tool with no output schema and no annotations, the description handles the critical workflow (discover→describe→query) and SQLite-specific syntax well. However, it lacks detail on output format (return dictionary structure), error behavior, and safety profile. The mention of semantic alternative tools helps agents choose the right path but the behavioral gaps keep this from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It does explain the sql_query parameter with a SQL example (SELECT * FROM PROJECT WHERE BUSINESS_UNIT = ?) and mentions the parameters parameter as 'List of query parameters (optional)'. However, this is minimal—it doesn't explain how the parameters list maps to the ? placeholders in detail, whether they support type conversion, or the expected format of the return dictionary. It adds some value but leaves significant gaps.

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?

The description clearly states the tool queries the local SQLite database directly with a specific verb+resource ('Query... database directly'). It doesn't fully distinguish from siblings like list_projects or get_project_contracts, but it frames itself as a raw/low-level access layer while the siblings are semantic accessors, which is reasonable differentiation.

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?

Excellent usage guidance. The description provides a numbered workflow: discover tables first, describe structure second, then query. It explicitly names alternative tools (list_tables, describe_table, and the semantic accessors like list_projects) and frames the raw query tool as appropriate for low-level access, distinguishing when to use it versus siblings.

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/Jcurrin27/peoplesoft-grants-mcp-demo'

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