Skip to main content
Glama

List matching articles

list_articles
Read-onlyIdempotent

List EVERY article that matches a boolean query over the last 12 months, newest first, with an exact total count, paged (up to 1,000 per query). Use it for completeness and counting: "how many articles mention X", "all coverage of Y since October", older news beyond 30 days, monitoring checklists, exports. tally counts matches by outlet, author, country or language (who covers a topic). Precise keyword/boolean matching, not relevance ranking: for the best answers to a question use search_news. 5 credits per call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "list_articles"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd: ISO date/time or phrase. Default: now. When paging, pass the window end from the first page so every page covers the same articles.
fromNoStart: ISO date/time ("2026-10-01") or a phrase ("30 days ago"). Default: 7 days ago. Up to 12 months back.
pageNoPage number, from 1. page × page_size can reach the first 1,000 articles of a query.
sortNoOrder: newest (default), oldest, relevance, or source_rank (biggest publishers first).newest
queryYesBoolean query: AND, OR, NOT, parentheses, "exact phrases", +must, -mustnot, wild*cards, NEAR("a", "b", 5). Example: "Nvidia" AND (earnings OR guidance) NOT "stock split".
tallyNoInstead of listing, count the matching articles by outlet, author (bylines that are people), country and/or language, in one pass: e.g. ["source","country","language"]. Outlets and authors come with their latest article. Who covers a topic, media lists, coverage mix.
formatNotext (default, compact) or json (machine-readable).text
sourcesNoOnly these publishers: domains, e.g. ["reuters.com","ft.com"].
countriesNoOnly publishers from these countries: ISO 3166-1 alpha-2 codes, e.g. ["US","GB"].
languagesNoOnly these languages: ISO 639-1 codes, e.g. ["en","de"].
llm_modelNoThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
min_wordsNoOnly articles with at least this many words.
page_sizeNoArticles per page (default 20, up to 100).
search_inNoWhere the query is matched (default title_body). *_translated fields match the English translation of non-English articles.
count_onlyNoReturn only the exact number of matching articles (no list).
tally_pagesNoWith tally: pages of 100 newest articles to count (default 3; 5 credits each).
top_sourcesNoOnly the best-ranked publishers: "top <n> <country code>" or "top <n> global", e.g. "top 100 US" or "top 50 global".
exclude_sourcesNoLeave out these publishers (domains).
max_source_rankNoOnly publishers ranked at or better than this traffic rank (1 = biggest).
exclude_countriesNoLeave out publishers from these countries (ISO 3166-1 alpha-2).
exclude_languagesNoLeave out these languages (ISO 639-1).
exclude_duplicatesNoLeave out syndicated copies of an article.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the description is not the sole safety signal. It still adds real behavioral context the annotations lack: a 5-credit cost per call, the 1,000-article paging ceiling, and the promise of an exact total count. It does not describe the shape of the returned records, which is the main remaining gap.

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?

Front-loaded with the core behavior and cost, and almost every sentence carries decision-relevant information. It is dense but a few clauses are compressed into fragments ('tally counts matches by outlet...'), which slightly hurts readability for a 22-parameter tool.

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

Completeness4/5

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

For a 22-parameter tool with no output schema, the description covers scope, ordering, counting, cost and the sibling alternative well. The main omission is any description of the returned article/count structure, which matters given no output schema exists to document it.

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; the description earns one step above by explaining what the tally parameter is actually for ('counts matches by outlet, author, country or language... who covers a topic, media lists, coverage mix') and by framing the boolean query as a matching strategy, not just a string.

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?

Opens with a specific verb and resource plus the defining scope: 'List EVERY article that matches a boolean query over the last 12 months, newest first, with an exact total count, paged (up to 1,000 per query).' It also distinguishes itself from search_news by characterizing matching as precise boolean rather than relevance-ranked.

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

Usage Guidelines5/5

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

Explicit when-to-use cases are enumerated (counting, 'all coverage of Y since October', older news beyond 30 days, monitoring checklists, exports, tally for who-covers-a-topic) and an explicit when-not with the named alternative: relevance questions should go to search_news.

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