dk_poll_average

Pack: denmark-polls · 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/dk_poll_average for the schema, then POST the same URL with its arguments for the data.

Simple average of Danish Folketing party shares over a window of recent polls. Method (also stated in the response): within the window, take each pollster’s mean per party, then the unweighted mean across pollsters, so a pollster that publishes weekly does not outweigh one that publishes monthly. No sample-size weighting, no house-effect correction. Window defaults to the 30 days ending at the latest poll. Source: Wikipedia, opinion polling for Danish general elections (CC BY-SA 4.0).

Parameters

NameTypeRequiredDescription
daysnumbernoWindow length in days ending at “to” (default 30, max 365)
tostringnoWindow end date YYYY-MM-DD (default: date of the latest poll)

Example call

Arguments

{
  "days": 30
}

curl

curl -X POST https://gateway.pipeworx.io/denmark-polls/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dk_poll_average","arguments":{"days":30}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('dk_poll_average', {
  "days": 30
});

Response shape

FieldTypeDescription
sourcestring
party_lettersstring
covered_rangeobject
data_as_ofstring
windowobject
count_pollsnumber
pollstersarray
methodstring
sum_of_averagesnumber
party_namesobject
averagesobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "party_letters": {
      "type": "string"
    },
    "covered_range": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "data_as_of": {
      "type": "string"
    },
    "window": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "days": {
          "type": "number"
        }
      },
      "additionalProperties": true
    },
    "count_polls": {
      "type": "number"
    },
    "pollsters": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "method": {
      "type": "string"
    },
    "sum_of_averages": {
      "type": "number"
    },
    "party_names": {
      "type": "object",
      "properties": {
        "A": {
          "type": "string"
        },
        "B": {
          "type": "string"
        },
        "C": {
          "type": "string"
        },
        "D": {
          "type": "string"
        },
        "E": {
          "type": "string"
        },
        "F": {
          "type": "string"
        },
        "G": {
          "type": "string"
        },
        "H": {
          "type": "string"
        },
        "I": {
          "type": "string"
        },
        "K": {
          "type": "string"
        },
        "M": {
          "type": "string"
        },
        "O": {
          "type": "string"
        },
        "P": {
          "type": "string"
        },
        "Q": {
          "type": "string"
        },
        "V": {
          "type": "string"
        },
        "Æ": {
          "type": "string"
        },
        "Ø": {
          "type": "string"
        },
        "Å": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "averages": {
      "type": "object",
      "properties": {
        "A": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "B": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "C": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "F": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "H": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "I": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "M": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "O": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "V": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "Æ": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "Ø": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        },
        "Å": {
          "type": "object",
          "properties": {
            "average": {
              "type": "number"
            },
            "pollsters": {
              "type": "number"
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}

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 denmark-polls pack
{
  "mcpServers": {
    "denmark-polls": {
      "url": "https://gateway.pipeworx.io/denmark-polls/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 21, 2026