get_deputy
Pack: nosdeputes-fr · 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_deputy for the schema, then POST the same URL with its arguments for the data.
Deputy profile by slug or numeric id.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug_or_id | string | yes | NosDéputés slug or numeric id |
legislature | string | no |
Example call
Arguments
{
"slug_or_id": "thibault-bazin"
}
curl
curl -X POST https://gateway.pipeworx.io/nosdeputes-fr/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_deputy","arguments":{"slug_or_id":"thibault-bazin"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_deputy', {
"slug_or_id": "thibault-bazin"
});
More examples
{
"slug_or_id": "1",
"legislature": "16"
}
Response shape
| Field | Type | Description |
|---|---|---|
depute | object |
Full JSON Schema
{
"type": "object",
"properties": {
"depute": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"nom": {
"type": "string"
},
"nom_de_famille": {
"type": "string"
},
"prenom": {
"type": "string"
},
"sexe": {
"type": "string"
},
"date_naissance": {
"type": "string"
},
"lieu_naissance": {
"type": "string"
},
"num_deptmt": {
"type": "string"
},
"nom_circo": {
"type": "string"
},
"num_circo": {
"type": "number"
},
"mandat_debut": {
"type": "string"
},
"mandat_fin": {
"type": "string"
},
"ancien_depute": {
"type": "number"
},
"groupe": {
"type": "object",
"properties": {
"organisme": {
"type": "string"
},
"fonction": {
"type": "string"
},
"debut_fonction": {
"type": "string"
}
}
},
"groupe_sigle": {
"type": "string"
},
"parti_ratt_financier": {
"type": "string"
},
"responsabilites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"responsabilite": {
"type": "object",
"properties": {
"organisme": {
"type": "string"
},
"fonction": {
"type": "string"
},
"debut_fonction": {
"type": "string"
}
}
}
}
}
},
"responsabilites_extra_parlementaires": {
"type": "array",
"items": {}
},
"groupes_parlementaires": {
"type": "array",
"items": {
"type": "object",
"properties": {
"responsabilite": {
"type": "object",
"properties": {
"organisme": {
"type": "string"
},
"fonction": {
"type": "string"
},
"debut_fonction": {
"type": "string"
}
}
}
}
}
},
"historique_responsabilites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"responsabilite": {
"type": "object",
"properties": {
"organisme": {
"type": "string"
},
"fonction": {
"type": "string"
},
"debut_fonction": {
"type": "string"
},
"fin_fonction": {
"type": "string"
}
}
}
}
}
},
"sites_web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"site": {
"type": "string"
}
}
}
},
"emails": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
}
},
"adresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"adresse": {
"type": "string"
}
}
}
},
"collaborateurs": {
"type": "array",
"items": {}
},
"autres_mandats": {
"type": "array",
"items": {}
},
"anciens_autres_mandats": {
"type": "array",
"items": {}
},
"anciens_mandats": {
"type": "array",
"items": {
"type": "object",
"properties": {
"mandat": {
"type": "string"
}
}
}
},
"profession": {
"type": "string"
},
"place_en_hemicycle": {
"type": "string"
},
"url_an": {
"type": "string"
},
"id_an": {
"type": "string"
},
"slug": {
"type": "string"
},
"url_nosdeputes": {
"type": "string"
},
"url_nosdeputes_api": {
"type": "string"
},
"nb_mandats": {
"type": "number"
},
"twitter": {
"type": "string"
}
}
}
}
}
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 nosdeputes-fr pack
{
"mcpServers": {
"nosdeputes-fr": {
"url": "https://gateway.pipeworx.io/nosdeputes-fr/mcp"
}
}
}
See Getting Started for client-specific install steps.