{"uid":"cap_iWCFPpHaOD4liojvSgxF_","slug":"uk-mp-lookup-bc0332e8","name":"UK MP Lookup","description":"The MP and parliamentary constituency for any UK postcode, from the UK Parliament Members API. Returns the constituency, the MP (name, party, MP since), their official parliamentary and constituency office contacts, and a link to their Parliament profile. Public-role information only. Use for contacting representatives, civic and campaign tools, and constituency research.","url":"https://uk-mp-lookup.agent-fee-check.workers.dev/mp?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["postcode"],"properties":{"postcode":{"type":"string","description":"Full UK postcode, e.g. LU6 3BS"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mp":{"name":"Alex Mayer","party":"Labour","member_id":5141,"profile_url":"https://members.parliament.uk/member/5141","member_since":"2024-07-04"},"offices":[{"type":"Parliamentary office","email":"alex.mayer.mp@parliament.uk","phone":null,"address":"House of Commons, London, SW1A 0AA"}],"summary":"LU6 3BS is in Dunstable and Leighton Buzzard. The MP is Alex Mayer (Labour), MP since 2024-07-04.","postcode":"LU6 3BS","constituency":{"id":4021,"name":"Dunstable and Leighton Buzzard"},"retrieved_at":"2026-10-11T18:16:44.974Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E1sRf4iHPqccsqkWyBOoQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the MP name, party, parliamentary contacts, and constituency details for any UK postcode by querying the UK Parliament Members API.","exampleAgentPrompt":"Who is the MP for the postcode SW1A 1AA, and how can I contact them?","exampleUseCases":[{"title":"Constituent contacting their MP","prompt":"I live in Manchester and my postcode is M14 5TP — who is my MP, what party are they from, and what's the best way to get in touch with their office?"},{"title":"Campaign outreach tool for canvassers","prompt":"We're running a campaign and need to know which MP represents the postcode LU6 3BS — can you find their name, party, and contact details so we can reach out?"},{"title":"Constituency research for journalists","prompt":"I'm writing a piece on rural representation — can you tell me the constituency, MP name, and party for the postcode TD15 2EH?"}],"resultDescription":"Returns a JSON object containing the full UK postcode, constituency details (name, ID), MP information (name, party, start date), an array of office contact records (parliamentary and constituency offices with phone numbers and addresses), a plain-English summary string, and a retrieval timestamp.","failureModes":["Invalid or malformed postcode returns an error or null MP field","Postcode not found in UK Parliament database returns empty constituency","MP seat currently vacant (e.g. by-election pending) may return null for MP object","Rate limiting or upstream UK Parliament API unavailability causes request failure","Non-UK postcodes (e.g. US ZIP codes) are not supported and will fail validation"],"whenToPreferThis":"Use this endpoint when you need to identify a UK constituent's MP and their contact details from a postcode. It is ideal for civic tools, campaign outreach, constituency research, and any application that needs to bridge a UK address to parliamentary representation. Prefer this over generic search when you need structured, authoritative data directly from the UK Parliament Members API rather than scraped or estimated results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:37:25.929Z","isFirstParty":false,"canonicalSlug":"uk-mp-lookup-bc0332e8"}