Skip to main content
Glama

audit_pm_script_compatibility

Read-onlyIdempotent

Analyze Postman pm.* pre-request and test scripts to verify Bruno/Hurl transpilation coverage, flag non-transpilable constructs with line numbers, and return migration guidance.

Instructions

Analyze Postman pm.* pre-request and test scripts (either a full Postman Collection JSON or a raw JavaScript snippet) to verify Bruno/Hurl transpilation coverage and flag non-transpilable constructs such as pm.sendRequest(...) or CryptoJS with exact line numbers and Bruno/Hurl migration code guidance.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>"
    },
    "name": "audit_pm_script_compatibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
phaseNoScript lifecycle phase when passing a raw JavaScript snippet (ignored when passing a full Collection JSON).test
sourceYesEither a full Postman Collection (v2.0/v2.1) JSON string or a raw Postman pm.* pre-request/test JavaScript snippet.
fileNameNoOptional filename label used in line-level compatibility diagnostics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world scope, so the safety profile is covered. The description adds real value beyond that: it discloses the two accepted source formats, that output includes exact line numbers, and concrete examples of what gets flagged (pm.sendRequest, CryptoJS) along with migration code guidance.

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?

A single front-loaded sentence that leads with the verb and input, then the outputs. It is dense but every clause carries information; the trait list of flagged constructs is slightly list-heavy but justified for scannability.

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?

With no output schema, the description carries the burden of describing results, and it does so (coverage verdict, line-numbered flags, migration guidance). Parameter behavior and read-only semantics are fully covered between schema and annotations, leaving little an agent needs that is missing.

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 description coverage is 100%, so all three parameters are already documented, including the phase enum's note that it is ignored for Collection JSON. The description adds no syntax, format, or edge-case detail beyond what the schema states, so the baseline 3 applies.

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?

Names a specific verb ('Analyze') and resource ('Postman pm.* pre-request and test scripts'), and spells out the two accepted input forms plus what it produces (coverage verification, flagged non-transpilable constructs with line numbers). It implicitly separates itself from the convert_* siblings by being an audit rather than a conversion, though it never names them.

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?

The framing ('verify Bruno/Hurl transpilation coverage') implies a pre-migration check, but there is no explicit when-to-use, when-not-to-use, or pointer to the convert_postman_to_bruno/convert_postman_to_hurl siblings. An agent must infer the workflow position.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.