Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Query Syslog

query_syslog

Query ServiceNow syslog to retrieve error, warning, and debug entries with timestamps and sources. Monitor script execution and debug issues after deployments.

Instructions

Query the ServiceNow system log (syslog) to check for errors, warnings, and debug output. Returns log entries with timestamps, levels, sources, and messages. Results are ordered newest-first.

Useful for monitoring script execution results, checking for errors after deployments, and debugging issues. Can be called repeatedly to check for new entries. Use the 'syslog' table for system-level logs and 'syslog_app_scope' for scoped application logs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
queryNoA ServiceNow encoded query string for additional filtering. Example: "messageLIKEscript error^source=sys_script". This is combined with any level/source filters specified below.
levelNoFilter by log level. Only returns entries at the specified level.
sourceNoFilter by log source (e.g., "sys_script", "workflow"). Exact match.
limitNoMaximum number of syslog entries to return. Default is 50.
tableNoWhich syslog table to query. Use "syslog" for the main system log, or "syslog_app_scope" for scoped application logs which include the application scope field.syslog
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses return fields (timestamps, levels, sources, messages) and ordering (newest-first). Mentions repeatability. For a read-only query tool, this is sufficient to inform agent behavior.

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?

Two paragraphs are front-loaded with main action. Efficient use of words, no filler. Could be slightly more concise but is well-structured.

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?

For a query tool with 6 params and no output schema, description covers key aspects: what is returned, ordering, and table distinction. Lacks error-handling or empty result behavior, but overall adequate for agent decision-making.

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 coverage is 100%, so baseline is 3. Description adds no additional semantic value beyond what schema descriptions already provide. The example for query parameter is in schema, not description.

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 verb (Query), resource (syslog), and purpose (check for errors, warnings, debug output). It distinguishes from siblings by being specific to the syslog table, and no other tool in sibling list duplicates this function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states use cases: monitoring script execution, checking errors after deployments, debugging. Notes repeatability. Distinguishes between syslog and syslog_app_scope tables. Missing explicit when-not-to-use or alternatives, but context is strong.

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/sonisoft-cnanda/now-sdk-ext-mcp'

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