Skip to main content
Glama

run_approved_tests

Execute approved test cases on ServiceNow and return a detailed report with pass/fail results, score, and remediation steps. Requires prior review and approval of the test plan.

Instructions

Execute the approved test cases on ServiceNow and return a detailed results report.

IMPORTANT: Only call this after the user has reviewed and approved the test plan.

Execution method:

  • Creates a Fix Script record in ServiceNow for each test case

  • Attempts to execute it via the SN API

  • If the run endpoint is unavailable, marks as MANUAL_REQUIRED and provides the Fix Script name to find in SN

  • Returns PASS / FAIL / MANUAL_REQUIRED / ERROR per test case

  • Full result report with score%, verdict, and remediation steps

After execution:

  • CRITICAL FAIL → surface immediately, do not suggest deploy

  • MANUAL_REQUIRED → list the Fix Script names and guide user to run them in SN

  • ALL PASS → confirm artifact is ready for UAT/deploy

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planYesThe full plan object from create_test_plan
approvedNotrue = run all test cases in the plan
approved_idsNoArray of specific TC-XXX ids to run (if not running all)
extra_casesNoAdditional custom test cases to add alongside the plan
Behavior5/5

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

No annotations provided, yet the description fully discloses behavior: creates Fix Script records, attempts execution via SN API, fallback to MANUAL_REQUIRED, returns PASS/FAIL/MANUAL_REQUIRED/ERROR, and detailed report with score%, verdict, remediation. After-execution actions are clearly outlined.

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?

Well-structured with sections, bullet points, and bolded phases. Every sentence adds value. No redundancy or fluff. Efficiently communicates execution method, results format, and post-execution actions in a compact format.

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?

Despite no output schema, the description covers execution, error modes, and post-execution steps completely. Given complexity (4 params, nested objects), it provides all necessary context for an agent to use correctly and interpret results.

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% with descriptions for all 4 parameters. The description adds minimal extra beyond schema: it clarifies that 'plan' is the full plan object from create_test_plan and 'approved' is boolean for running all. Baseline 3 appropriate as schema does the heavy lifting.

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 'Execute the approved test cases on ServiceNow and return a detailed results report.' The verb 'execute' and resource 'approved test cases' are specific. Among many sibling tools, this uniquely handles test execution after approval, differentiating from planning or migration tests.

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 'Only call this after the user has reviewed and approved the test plan.' Provides clear post-execution guidance for different outcomes (CRITICAL FAIL, MANUAL_REQUIRED, ALL PASS). Could mention when not to use or alternatives like retry, but overall strong guidance.

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/pinnintisagarSB/ServiceNow-Dev-MCP'

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