get_member

Pack: uk-parliament · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_member for the schema, then POST the same URL with its arguments for the data.

Member detail by member id.

Parameters

NameTypeRequiredDescription
idnumberyesParliament member id
includesstringnoComma-sep: Posts | Biography | Contact | Synopsis

Example call

Arguments

{
  "id": 4385
}

curl

curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_member","arguments":{"id":4385}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_member', {
  "id": 4385
});

More examples

{
  "id": 4385,
  "includes": "Posts,Biography,Contact"
}

Response shape

FieldTypeDescription
valueobject
linksarray
memberobjectMain member record
includesobjectAdditional member data sections (Posts, Biography, Contact, Synopsis)
Full JSON Schema
{
  "type": "object",
  "properties": {
    "value": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "nameListAs": {
          "type": "string"
        },
        "nameDisplayAs": {
          "type": "string"
        },
        "nameFullTitle": {
          "type": "string"
        },
        "nameAddressAs": {
          "type": "string"
        },
        "latestParty": {
          "type": "object",
          "properties": {
            "id": {
              "type": "number"
            },
            "name": {
              "type": "string"
            },
            "abbreviation": {
              "type": "string"
            },
            "backgroundColour": {
              "type": "string"
            },
            "foregroundColour": {
              "type": "string"
            },
            "isLordsMainParty": {
              "type": "boolean"
            },
            "isLordsSpiritualParty": {
              "type": "boolean"
            },
            "governmentType": {
              "type": "null"
            },
            "isIndependentParty": {
              "type": "boolean"
            }
          }
        },
        "gender": {
          "type": "string"
        },
        "latestHouseMembership": {
          "type": "object",
          "properties": {
            "membershipFrom": {
              "type": "string"
            },
            "membershipFromId": {
              "type": "number"
            },
            "house": {
              "type": "number"
            },
            "membershipStartDate": {
              "type": "string"
            },
            "membershipEndDate": {
              "type": "string"
            },
            "membershipEndReason": {
              "type": "string"
            },
            "membershipEndReasonNotes": {
              "type": "string"
            },
            "membershipEndReasonId": {
              "type": "number"
            },
            "membershipStatus": {
              "type": "object",
              "properties": {
                "statusIsActive": {
                  "type": "boolean"
                },
                "statusDescription": {
                  "type": "string"
                },
                "statusNotes": {
                  "type": "null"
                },
                "statusId": {
                  "type": "number"
                },
                "status": {
                  "type": "number"
                },
                "statusStartDate": {
                  "type": "string"
                }
              }
            }
          }
        },
        "thumbnailUrl": {
          "type": "string"
        }
      }
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rel": {
            "type": "string"
          },
          "href": {
            "type": "string"
          },
          "method": {
            "type": "string"
          }
        }
      }
    },
    "member": {
      "type": "object",
      "properties": {
        "value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "number"
            },
            "nameListAs": {
              "type": "string"
            },
            "nameDisplayAs": {
              "type": "string"
            },
            "nameFullTitle": {
              "type": "string"
            },
            "nameAddressAs": {
              "type": "string"
            },
            "latestParty": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "abbreviation": {
                  "type": "string"
                },
                "backgroundColour": {
                  "type": "string"
                },
                "foregroundColour": {
                  "type": "string"
                },
                "isLordsMainParty": {
                  "type": "boolean"
                },
                "isLordsSpiritualParty": {
                  "type": "boolean"
                },
                "governmentType": {
                  "type": "null"
                },
                "isIndependentParty": {
                  "type": "boolean"
                }
              }
            },
            "gender": {
              "type": "string"
            },
            "latestHouseMembership": {
              "type": "object",
              "properties": {
                "membershipFrom": {
                  "type": "string"
                },
                "membershipFromId": {
                  "type": "number"
                },
                "house": {
                  "type": "number"
                },
                "membershipStartDate": {
                  "type": "string"
                },
                "membershipEndDate": {
                  "type": "string"
                },
                "membershipEndReason": {
                  "type": "string"
                },
                "membershipEndReasonNotes": {
                  "type": "string"
                },
                "membershipEndReasonId": {
                  "type": "number"
                },
                "membershipStatus": {
                  "type": "object",
                  "properties": {
                    "statusIsActive": {
                      "type": "boolean"
                    },
                    "statusDescription": {
                      "type": "string"
                    },
                    "statusNotes": {
                      "type": "null"
                    },
                    "statusId": {
                      "type": "number"
                    },
                    "status": {
                      "type": "number"
                    },
                    "statusStartDate": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "thumbnailUrl": {
              "type": "string"
            }
          }
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "rel": {
                "type": "string"
              },
              "href": {
                "type": "string"
              },
              "method": {
                "type": "string"
              }
            }
          }
        }
      },
      "description": "Main member record"
    },
    "includes": {
      "type": "object",
      "properties": {
        "Posts": {
          "type": "object",
          "properties": {
            "error": {
              "type": "string"
            }
          }
        },
        "Biography": {
          "type": "object",
          "properties": {
            "value": {
              "type": "object",
              "properties": {
                "representations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "constituencyStart": {
                        "type": "string"
                      },
                      "constituencyEnd": {
                        "type": "string"
                      },
                      "house": {
                        "type": "number"
                      },
                      "name": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      },
                      "startDate": {
                        "type": "string"
                      },
                      "endDate": {
                        "type": "string"
                      },
                      "additionalInfo": {
                        "type": "string"
                      },
                      "additionalInfoLink": {
                        "type": "null"
                      }
                    }
                  }
                },
                "electionsContested": {
                  "type": "array",
                  "items": {}
                },
                "houseMemberships": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "house": {
                        "type": "number"
                      },
                      "name": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      },
                      "startDate": {
                        "type": "string"
                      },
                      "endDate": {
                        "type": "string"
                      },
                      "additionalInfo": {
                        "type": "string"
                      },
                      "additionalInfoLink": {
                        "type": "null"
                      }
                    }
                  }
                },
                "governmentPosts": {
                  "type": "array",
                  "items": {}
                },
                "oppositionPosts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "house": {
                        "type": "number"
                      },
                      "name": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      },
                      "startDate": {
                        "type": "string"
                      },
                      "endDate": {
                        "type": "string"
                      },
                      "additionalInfo": {
                        "type": "string"
                      },
                      "additionalInfoLink": {
                        "type": "null"
                      }
                    }
                  }
                },
                "otherPosts": {
                  "type": "array",
                  "items": {}
                },
                "partyAffiliations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "house": {
                        "type": "number"
                      },
                      "name": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      },
                      "startDate": {
                        "type": "string"
                      },
                      "endDate": {
                        "type": "string"
                      },
                      "additionalInfo": {
                        "type": "null"
                      },
                      "additionalInfoLink": {
                        "type": "null"
                      }
                    }
                  }
                },
                "committeeMemberships": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "house": {
                        "type": "number"
                      },
                      "name": {
                        "type": "string"
                      },
                      "id": {
                        "type": "number"
                      },
                      "startDate": {
                        "type": "string"
                      },
                      "endDate": {
                        "type": "string"
                      },
                      "additionalInfo": {
                        "type": "null"
                      },
                      "additionalInfoLink": {
                        "type": "null"
                      }
                    }
                  }
                }
              }
            },
            "links": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "rel": {
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  },
                  "method": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "Contact": {
          "type": "object",
          "properties": {
            "value": {
              "type": "array",
              "items": {}
            },
            "links": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "rel": {
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  },
                  "method": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "description": "Additional member data sections (Posts, Biography, Contact, Synopsis)"
    }
  },
  "description": "Member detail with optional includes"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the uk-parliament pack
{
  "mcpServers": {
    "uk-parliament": {
      "url": "https://gateway.pipeworx.io/uk-parliament/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026