Skip to main content
Glama

selectrole

Search roles

query-jobs
Read-onlyIdempotent

Search live roles with the selectrole SQL dialect (CONTAINS, IN, implicit WHERE). Filter on any column; results are summary cards, and any SELECT column list is ignored. Open the url for full details. Empty sql returns every live role. Newest first already, so add ORDER BY only when asked for another order; a stack filter without it puts the roles mainly done in that technology first; main_stack keeps only those, and each card quotes what its posting says about the technology in mentions. count_only returns just the total, cheap to call before paging. since (ISO 8601) keeps roles published after that moment, oldest first, to see what is new. A query with no match adds a near block: close values or company names, and how many roles match without its most restrictive filter. Those roles do not match the query.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query-jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlNoFilter in the selectrole SQL dialect, e.g. workplace = 'remote' AND currency = 'USD' AND salary_min >= 160000
pageNo1-based page of results. page × per_page must be 500 or less; refine the query to see other matches.
sinceNoISO 8601 date or time, at most 30 days ago. Keeps roles published after it, oldest first, e.g. 2026-11-01T00:00:00Z.
per_pageNoPage size, 1–50. Defaults to 25.
count_onlyNoReturn only count, the number of matching roles, with no cards.

Output Schema

NameRequiredDescriptionDefault
sqlNoThe query as run.
urlNoThe same query on selectrole.
jobsNoAbsent with count_only.
nearNoOnly when nothing matches: close values or company names, and a looser query. Those roles do not match.
pageNo
countNoEvery matching role, not just this page.
errorNoOnly on an error result (isError).
sinceNoOnly when since was passed.
per_pageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly, idempotent, non-destructive and closed-world, yet the description adds substantial behavior beyond them: SELECT column lists are ignored, an empty sql returns all live roles, results default to newest-first, a stack filter reorders to put mainly-done-in-that-technology roles first, main_stack narrows to those, mentions quotes the posting, and a no-match query returns a 'near' block whose roles do not actually match. That last caveat is exactly the kind of non-obvious trait an agent must know.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and dialect are front-loaded, and nearly every clause carries operational information. It is, however, one dense run-on paragraph mixing dialect rules, ordering, special filters and the near-block fallback, so a reader must parse carefully to separate concerns that could be listed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter read tool with an output schema, the description covers everything an agent needs: query dialect scope, column filtering, ignored SELECT lists, result shape, default ordering, special filter semantics, the count-only shortcut, and the no-match near block with the warning that those roles do not match.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds real meaning on top: count_only is cheap and totals-only, since flips ordering to oldest-first and constrains what counts as new, and empty sql has a defined all-roles behavior. It does not restate page/per_page limits, which the schema already fully documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search live roles') plus the query dialect, and implicitly differentiates itself from get-job by saying results are summary cards whose SELECT list is ignored and that 'Open the url for full details' is needed. An agent can tell this is the filtered-list/search entry point versus the full-detail fetch.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete conditional guidance: use count_only as a cheap pre-check before paging, add ORDER BY only when another order is requested, use since to see what is new, and rely on the near block when nothing matches. It never names a sibling tool explicitly as an alternative, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources