Run saved query

Runs a saved query and returns its rows.

MCP tool peoplehr_read → run_query

read

Returns the columns of the query and its rows as PeopleHR shows them, the same data the Export to CSV button gives. Dates keep the format PeopleHR uses in the result. It reads only and changes nothing.

Parameters

Parameters: run_query
NameTypeDescription
name string required string Exact name from list_queries.
cursor string string Next page cursor from the previous call.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "peoplehr_read",
    "arguments": {
      "operation": "run_query",
      "arguments": {
        "name": "Jane Doe"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "name": "Probation ending soon",
    "columns": [
      "Employee",
      "Probation End Date",
      "Probation Status"
    ],
    "rows": [
      [
        "Ana Lopez",
        "2027-02-16",
        "In probation"
      ],
      [
        "Jake Ortiz",
        "2026-12-04",
        "In probation"
      ]
    ],
    "next_cursor": null
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.