Skip to main content
Glama

importExcelTestResults

Imports test results from an Excel file into a specified Test Run and updates its execution data; the workbook must match Polarion's export/import format.

Instructions

Imports test results from an Excel file into the specified Test Run and changes its execution data. The file must match the expected Polarion export/import format and the user must have permission to update the run. Use getExportExcelTests to create a compatible workbook; use importWordDocument for Word-based document import. Effect: triggers a server-side action rather than a plain resource creation — whether repeating it is safe, a no-op, or rejected depends on the specific action; treat it as not guaranteed idempotent. Tip: set dry_run: true first to validate the arguments and preview the exact request without sending it to Polarion. The executor returns this preview as normal text, and as structured content when the tool declares an output schema.

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it.
projectIdYesThe Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project. If the ID is unknown, ask the user; getProjects lists IDs only with global read access.
testRunIdYesThe Test Run's ID within its project.
requestBodyYesExcel import meta data and file data.

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.4
    • changedInput schema / properties / projectId / description
      Previous value: -"The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs."New value: +"The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project. If the ID is unknown, ask the user; getProjects lists IDs only with global read access."
  2. Changed45 schema fields changedv1.3.1
    • removedOutput schema / properties / data / properties / attributes / properties / jobId / example
      Removed value: -"example"
    • changedOutput schema / properties / data / properties / attributes / properties / jobId / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / attributes / properties / name / example
      Removed value: -"example"
    • changedOutput schema / properties / data / properties / attributes / properties / name / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / attributes / properties / state / example
      Removed value: -"example"
    • changedOutput schema / properties / data / properties / attributes / properties / state / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / attributes / properties / status / properties / message / example
      Removed value: -"message"
    • changedOutput schema / properties / data / properties / attributes / properties / status / properties / message / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / attributes / properties / status / properties / type / enum
      Removed value: -[
      -  "OK",
      -  "CANCELLED",
      -  "FAILED",
      -  "UNKNOWN"
      -]
    • changedOutput schema / properties / data / properties / attributes / properties / status / properties / type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / attributes / properties / status / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / attributes / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / id / example
      Removed value: -"MyJobId"
    • changedOutput schema / properties / data / properties / id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / links / properties / downloads / example
      Removed value: -[
      -  "https://example.com/polarion/download/filename1",
      -  "https://example.com/polarion/download/filename2"
      -]
    • changedOutput schema / properties / data / properties / links / properties / downloads / items / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / links / properties / downloads / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / links / properties / log / example
      Removed value: -"server-host-name/application-path/polarion/job-report?jobId=MyJobId"
    • changedOutput schema / properties / data / properties / links / properties / log / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / links / properties / self / example
      Removed value: -"server-host-name/application-path/jobs/MyJobId"
    • changedOutput schema / properties / data / properties / links / properties / self / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / links / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / relationships / properties / document / properties / data / properties / id / example
      Removed value: -"MyProjectId/MySpaceId/MyDocumentId"
    • changedOutput schema / properties / data / properties / relationships / properties / document / properties / data / properties / id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / relationships / properties / document / properties / data / properties / type / enum
      Removed value: -[
      -  "documents"
      -]
    • changedOutput schema / properties / data / properties / relationships / properties / document / properties / data / properties / type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / document / properties / data / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / document / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / relationships / properties / documents / properties / data / items / properties / id / example
      Removed value: -"MyProjectId/MySpaceId/MyDocumentId"
    • changedOutput schema / properties / data / properties / relationships / properties / documents / properties / data / items / properties / id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / relationships / properties / documents / properties / data / items / properties / type / enum
      Removed value: -[
      -  "documents"
      -]
    • changedOutput schema / properties / data / properties / relationships / properties / documents / properties / data / items / properties / type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / documents / properties / data / items / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / documents / properties / data / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / documents / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / relationships / properties / project / properties / data / properties / id / example
      Removed value: -"MyProjectId"
    • changedOutput schema / properties / data / properties / relationships / properties / project / properties / data / properties / id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / relationships / properties / project / properties / data / properties / type / enum
      Removed value: -[
      -  "projects"
      -]
    • changedOutput schema / properties / data / properties / relationships / properties / project / properties / data / properties / type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / project / properties / data / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / properties / project / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / relationships / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / type / enum
      Removed value: -[
      -  "jobs"
      -]
    • changedOutput schema / properties / data / properties / type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / data / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
  3. Changed3 schema fields changedv1.2.0
    • changedInput schema / properties / dry_run / description
      Previous value: -"If true, validate and return the request that would be sent without calling Polarion."New value: +"If true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it."
    • changedInput schema / properties / projectId / description
      Previous value: -"The Project ID."New value: +"The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs."
    • changedInput schema / properties / testRunId / description
      Previous value: -"The Test Run ID."New value: +"The Test Run's ID within its project."
  4. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "data": {
      +      "properties": {
      +        "attributes": {
      +          "properties": {
      +            "jobId": {
      +              "example": "example",
      +              "type": "string"
      +            },
      +            "name": {
      +              "example": "example",
      +              "type": "string"
      +            },
      +            "state": {
      +              "example": "example",
      +              "type": "string"
      +            },
      +            "status": {
      +              "properties": {
      +                "message": {
      +                  "example": "message",
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "OK",
      +                    "CANCELLED",
      +                    "FAILED",
      +                    "UNKNOWN"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "id": {
      +          "example": "MyJobId",
      +          "type": "string"
      +        },
      +        "links": {
      +          "properties": {
      +            "downloads": {
      +              "example": [
      +                "https://example.com/polarion/download/filename1",
      +                "https://example.com/polarion/download/filename2"
      +              ],
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "log": {
      +              "example": "server-host-name/application-path/polarion/job-report?jobId=MyJobId",
      +              "type": "string"
      +            },
      +            "self": {
      +              "example": "server-host-name/application-path/jobs/MyJobId",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "relationships": {
      +          "properties": {
      +            "document": {
      +              "properties": {
      +                "data": {
      +                  "properties": {
      +                    "id": {
      +                      "example": "MyProjectId/MySpaceId/MyDocumentId",
      +                      "type": "string"
      +                    },
      +                    "type": {
      +                      "enum": [
      +                        "documents"
      +                      ],
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "documents": {
      +              "properties": {
      +                "data": {
      +                  "items": {
      +                    "properties": {
      +                      "id": {
      +                        "example": "MyProjectId/MySpaceId/MyDocumentId",
      +                        "type": "string"
      +                      },
      +                      "type": {
      +                        "enum": [
      +                          "documents"
      +                        ],
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "project": {
      +              "properties": {
      +                "data": {
      +                  "properties": {
      +                    "id": {
      +                      "example": "MyProjectId",
      +                      "type": "string"
      +                    },
      +                    "type": {
      +                      "enum": [
      +                        "projects"
      +                      ],
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": {
      +          "enum": [
      +            "jobs"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true, validate and return the request that would be sent without calling Polarion.",
      +  "type": "boolean"
      +}
  6. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the bar is lower. The description adds real context beyond them: the idempotency caveat phrased carefully ('whether repeating it is safe, a no-op, or rejected depends on the specific action') and the dry_run preview workflow, including that previews come back as text and structured content. It doesn't quantify what 'changes its execution data' means (overwrite vs. merge existing results), which is the remaining gap.

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?

Front-loaded with the action and its effect, then prerequisites, alternatives, and the idempotency/dry_run guidance. It's somewhat dense with clauses in the idempotency sentence, but every sentence carries information an agent needs.

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 4-parameter import with a full output schema and annotated safety profile, the description covers format requirements, permissions, sibling routing and a validation path. The only missing piece is how imported data interacts with existing results in the test run.

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 the baseline is 3 and the schema already documents projectId, testRunId, dry_run and requestBody. The description reinforces the dry_run tip and the project/test-run scoping but adds no syntax or format details for the opaque requestBody field beyond what the schema says.

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?

States a specific verb and resource ('Imports test results from an Excel file into the specified Test Run') plus the side effect on execution data. It also names two sibling alternatives, so the agent can distinguish it from importWordDocument, importXUnitTestResults and getExportExcelTests without opening a schema.

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?

Gives clear prerequisites ('must match the expected Polarion export/import format', 'must have permission to update the run') and explicit alternatives ('use getExportExcelTests to create a compatible workbook; use importWordDocument for Word-based document import'). It doesn't state when not to use it, e.g. converting an existing export vs. importing a new run's results, but the routing guidance is strong.

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

Deploy Server

Other Tools