Skip to main content
Glama

getPlanRelationship

Read-only

Retrieves the resource identifiers linked from a Plan through one named relationship, returning JSON:API {type,id} linkage without related resource attributes for lightweight relationship inspection.

Instructions

Returns the resource identifiers linked from one Plan through a single named relationship, as JSON:API linkage ({type, id} entries) without the related resources' attributes. relationshipId is the relationship's name, not an entry ID. Use this to inspect one relationship cheaply; to read the Plan with its related resources embedded, call its get tool with include instead. To change the relationship, use postPlanRelationships (add), patchPlanRelationships (replace), or deletePlanRelationship (remove).

Input Schema

NameRequiredDescriptionDefault
fieldsNoSparse fieldset selector: an object keyed by resource type (e.g. `workitems`) whose value is a comma-separated list of attribute names to return (e.g. `id,title,status`), reducing payload size. Omit to return the default field set.
planIdYesThe Plan ID.
includeNoComma-separated list of related resource types to embed in the response (e.g. `author,attachments`) so they don't require a separate follow-up call. Omit to return only the primary resource.
revisionNoA specific repository revision (e.g. `1234`) to read the resource as it existed at that revision instead of the current HEAD. Omit to use the latest revision.
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.
page_size_NoMaximum number of items to return in this page (e.g. `100`). Use together with `page[number]` to paginate through a large result set.
page_number_No1-based page number to fetch when the result set is paginated (e.g. `2` for the second page). Combine with `page[size]`; omit to fetch the first page.
relationshipIdYesThe relationship's name as it appears under `relationships` in the owning resource (e.g. `assignee`, `author`, `watches`, `linkedWorkItems`), not an ID of an individual link entry.
response_formatNoResponse detail level. concise removes redundant HTML and JSON:API metadata and may use a small default fieldset on large lists; detailed preserves the complete response. Defaults to detailed.detailed

Output Schema

NameRequiredDescriptionDefault

No arguments

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. Changed1 schema field changedv1.4.0
    • addedInput schema / properties / response_format
      Added value: +{
      +  "default": "detailed",
      +  "description": "Response detail level. concise removes redundant HTML and JSON:API metadata and may use a small default fieldset on large lists; detailed preserves the complete response. Defaults to detailed.",
      +  "enum": [
      +    "concise",
      +    "detailed"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv1.3.1
    • removedOutput schema / example
      Removed value: -{
      -  "data": [
      -    {
      -      "id": "MyProjectId/WI-123",
      -      "type": "workitems"
      -    }
      -  ]
      -}
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "data": {
      -        "properties": {
      -          "id": {
      -            "example": "MyResourceId",
      -            "type": "string"
      -          },
      -          "type": {
      -            "enum": [
      -              "collections",
      -              "categories",
      -              "documents",
      -              "document_attachments",
      -              "document_comments",
      -              "document_parts",
      -              "enumerations",
      -              "globalroles",
      -              "icons",
      -              "jobs",
      -              "linkedworkitems",
      -              "externallylinkedworkitems",
      -              "linkedoslcresources",
      -              "llms",
      -              "pages",
      -              "page_attachments",
      -              "page_comments",
      -              "plans",
      -              "projectroles",
      -              "projectgroups",
      -              "projects",
      -              "projecttemplates",
      -              "spaces",
      -              "testparameters",
      -              "testparameter_definitions",
      -              "testrecords",
      -              "teststep_results",
      -              "testruns",
      -              "testrun_attachments",
      -              "teststepresult_attachments",
      -              "testrun_comments",
      -              "usergroups",
      -              "users",
      -              "workitems",
      -              "workitem_attachments",
      -              "workitem_approvals",
      -              "workitem_comments",
      -              "featureselections",
      -              "teststeps",
      -              "workrecords",
      -              "revisions",
      -              "testrecord_attachments",
      -              "license_slots",
      -              "license_types",
      -              "license",
      -              "metadata",
      -              "license_assignments",
      -              "customfields"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "data": {
      -        "items": {
      -          "properties": {
      -            "id": {
      -              "example": "MyResourceId",
      -              "type": "string"
      -            },
      -            "type": {
      -              "enum": [
      -                "collections",
      -                "categories",
      -                "documents",
      -                "document_attachments",
      -                "document_comments",
      -                "document_parts",
      -                "enumerations",
      -                "globalroles",
      -                "icons",
      -                "jobs",
      -                "linkedworkitems",
      -                "externallylinkedworkitems",
      -                "linkedoslcresources",
      -                "llms",
      -                "pages",
      -                "page_attachments",
      -                "page_comments",
      -                "plans",
      -                "projectroles",
      -                "projectgroups",
      -                "projects",
      -                "projecttemplates",
      -                "spaces",
      -                "testparameters",
      -                "testparameter_definitions",
      -                "testrecords",
      -                "teststep_results",
      -                "testruns",
      -                "testrun_attachments",
      -                "teststepresult_attachments",
      -                "testrun_comments",
      -                "usergroups",
      -                "users",
      -                "workitems",
      -                "workitem_attachments",
      -                "workitem_approvals",
      -                "workitem_comments",
      -                "featureselections",
      -                "teststeps",
      -                "workrecords",
      -                "revisions",
      -                "testrecord_attachments",
      -                "license_slots",
      -                "license_types",
      -                "license",
      -                "metadata",
      -                "license_assignments",
      -                "customfields"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "data": {
      +        "properties": {
      +          "id": {
      +            "type": [
      +              "string",
      +              "number",
      +              "integer",
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "type": {
      +            "type": [
      +              "string",
      +              "number",
      +              "integer",
      +              "boolean",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "data": {
      +        "items": {
      +          "properties": {
      +            "id": {
      +              "type": [
      +                "string",
      +                "number",
      +                "integer",
      +                "boolean",
      +                "null"
      +              ]
      +            },
      +            "type": {
      +              "type": [
      +                "string",
      +                "number",
      +                "integer",
      +                "boolean",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  }
      +]
  4. Changed1 schema field changedv1.2.2
    • changedInput schema / properties / relationshipId / description
      Previous value: -"The ID of the specific relationship entry linking the two resources, as returned by the corresponding get-relationships call."New value: +"The relationship's name as it appears under `relationships` in the owning resource (e.g. `assignee`, `author`, `watches`, `linkedWorkItems`), not an ID of an individual link entry."
  5. Changed7 schema fields changedv1.2.0
    • changedInput schema / properties / fields / description
      Previous value: -"Filter returned resource fields. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."New value: +"Sparse fieldset selector: an object keyed by resource type (e.g. `workitems`) whose value is a comma-separated list of attribute names to return (e.g. `id,title,status`), reducing payload size. Omit to return the default field set."
    • changedInput schema / properties / include / description
      Previous value: -"Include related entities. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."New value: +"Comma-separated list of related resource types to embed in the response (e.g. `author,attachments`) so they don't require a separate follow-up call. Omit to return only the primary resource."
    • changedInput schema / properties / page_number_ / description
      Previous value: -"Specify the page number to be returned. Counting starts from 1. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."New value: +"1-based page number to fetch when the result set is paginated (e.g. `2` for the second page). Combine with `page[size]`; omit to fetch the first page."
    • changedInput schema / properties / page_size_ / description
      Previous value: -"Limit the number of entities returned in a single response. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."New value: +"Maximum number of items to return in this page (e.g. `100`). Use together with `page[number]` to paginate through a large result set."
    • 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 / relationshipId / description
      Previous value: -"The Relationship ID."New value: +"The ID of the specific relationship entry linking the two resources, as returned by the corresponding get-relationships call."
    • changedInput schema / properties / revision / description
      Previous value: -"The revision ID."New value: +"A specific repository revision (e.g. `1234`) to read the resource as it existed at that revision instead of the current HEAD. Omit to use the latest revision."
  6. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The Relationship's response body. Can return a single or a list of instances",
      +  "example": {
      +    "data": [
      +      {
      +        "id": "MyProjectId/WI-123",
      +        "type": "workitems"
      +      }
      +    ]
      +  },
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "data": {
      +          "properties": {
      +            "id": {
      +              "example": "MyResourceId",
      +              "type": "string"
      +            },
      +            "type": {
      +              "enum": [
      +                "collections",
      +                "categories",
      +                "documents",
      +                "document_attachments",
      +                "document_comments",
      +                "document_parts",
      +                "enumerations",
      +                "globalroles",
      +                "icons",
      +                "jobs",
      +                "linkedworkitems",
      +                "externallylinkedworkitems",
      +                "linkedoslcresources",
      +                "llms",
      +                "pages",
      +                "page_attachments",
      +                "page_comments",
      +                "plans",
      +                "projectroles",
      +                "projectgroups",
      +                "projects",
      +                "projecttemplates",
      +                "spaces",
      +                "testparameters",
      +                "testparameter_definitions",
      +                "testrecords",
      +                "teststep_results",
      +                "testruns",
      +                "testrun_attachments",
      +                "teststepresult_attachments",
      +                "testrun_comments",
      +                "usergroups",
      +                "users",
      +                "workitems",
      +                "workitem_attachments",
      +                "workitem_approvals",
      +                "workitem_comments",
      +                "featureselections",
      +                "teststeps",
      +                "workrecords",
      +                "revisions",
      +                "testrecord_attachments",
      +                "license_slots",
      +                "license_types",
      +                "license",
      +                "metadata",
      +                "license_assignments",
      +                "customfields"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "data": {
      +          "items": {
      +            "properties": {
      +              "id": {
      +                "example": "MyResourceId",
      +                "type": "string"
      +              },
      +              "type": {
      +                "enum": [
      +                  "collections",
      +                  "categories",
      +                  "documents",
      +                  "document_attachments",
      +                  "document_comments",
      +                  "document_parts",
      +                  "enumerations",
      +                  "globalroles",
      +                  "icons",
      +                  "jobs",
      +                  "linkedworkitems",
      +                  "externallylinkedworkitems",
      +                  "linkedoslcresources",
      +                  "llms",
      +                  "pages",
      +                  "page_attachments",
      +                  "page_comments",
      +                  "plans",
      +                  "projectroles",
      +                  "projectgroups",
      +                  "projects",
      +                  "projecttemplates",
      +                  "spaces",
      +                  "testparameters",
      +                  "testparameter_definitions",
      +                  "testrecords",
      +                  "teststep_results",
      +                  "testruns",
      +                  "testrun_attachments",
      +                  "teststepresult_attachments",
      +                  "testrun_comments",
      +                  "usergroups",
      +                  "users",
      +                  "workitems",
      +                  "workitem_attachments",
      +                  "workitem_approvals",
      +                  "workitem_comments",
      +                  "featureselections",
      +                  "teststeps",
      +                  "workrecords",
      +                  "revisions",
      +                  "testrecord_attachments",
      +                  "license_slots",
      +                  "license_types",
      +                  "license",
      +                  "metadata",
      +                  "license_assignments",
      +                  "customfields"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  7. Changed6 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Filter returned resource fields. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."New value: +"Filter returned resource fields. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."
    • changedInput schema / properties / include / description
      Previous value: -"Include related entities. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."New value: +"Include related entities. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details."
    • removedInput schema / properties / page_number
      Removed value: -{
      -  "description": "Specify the page number to be returned. Counting starts from 1. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details.",
      -  "format": "int32",
      -  "type": "number"
      -}
    • addedInput schema / properties / page_number_
      Added value: +{
      +  "description": "Specify the page number to be returned. Counting starts from 1. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details.",
      +  "format": "int32",
      +  "type": "number"
      +}
    • removedInput schema / properties / page_size
      Removed value: -{
      -  "description": "Limit the number of entities returned in a single response. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details.",
      -  "format": "int32",
      -  "type": "number"
      -}
    • addedInput schema / properties / page_size_
      Added value: +{
      +  "description": "Limit the number of entities returned in a single response. See <a href=\"https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST API User Guide</a> for details.",
      +  "format": "int32",
      +  "type": "number"
      +}
  8. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, and the description adds useful behavior: it returns JSON:API linkage ({type, id}) without related resource attributes and is intended as a cheap one-relationship inspection. It does not discuss pagination or field-selection behavior, but those are covered by the schema.

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?

Front-loads the return behavior, then handles the key relationshipId caveat, then gives read and mutation alternatives. Every sentence earns its place with no redundant explanation.

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?

Complete for an agent calling this tool: it explains the return shape, the relationshipId meaning, when to use it versus getPlan with include, and which tools handle mutation. An output schema and full parameter descriptions cover the remaining structured details.

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 parameter semantics are already documented. The description reinforces that relationshipId is a relationship name rather than an entry ID, but adds little beyond the schema descriptions. Baseline 3 is appropriate.

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: returns resource identifiers linked from one Plan through a single named relationship. It distinguishes the operation from getPlan with include and from the post/patch/delete relationship tools, so an agent can select it without opening the schema.

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?

Explicitly says to use this to inspect one relationship cheaply, names getPlan with include as the alternative for embedded related resources, and routes mutations to postPlanRelationships, patchPlanRelationships, and deletePlanRelationship. It also clarifies that relationshipId is the relationship name, not an entry ID.

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