Menu

Agent

Agent guides

The jobs Agent is built for, each as the requests that do it.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Write a cited briefing held to your sources

A briefing is only as good as what it was allowed to read. Three ways to say where a run may look. Each applies to every search the run makes.

Named sites and sources

For a question whose answer belongs to a few publishers, name them.

Example
Shell
curl https://api.millionshort.com/v1/agent \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "What changed in federal rules on e-bike imports in 2026? Give the dates the changes took effect.",
    "sources": ["web", "news"],
    "include_domains": ["canada.ca", "gazette.gc.ca"],
    "start_date": "2026-01-01"
  }'

A Space

A Space is a saved scope: sites, a popularity cut, page types and topics under one name. Name it, and every search of the run uses it.

Example
Shell
curl https://api.millionshort.com/v1/agent \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "How do home bakers keep a sourdough starter alive through a two-week holiday?",
    "space": "curated:home-cooking"
  }'

include_domains and exclude_domains sent beside a space replace the Space's own lists.

remove_top_sites takes the N most popular sites out of every search, which leaves the specialist sites, the forums and the people who wrote from experience. It is the filter MillionShort is named for; Remove the top sites explains it.

Example
Shell
curl https://api.millionshort.com/v1/agent \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "What do owners report about the long-term reliability of mid-drive motors on e-bikes?",
    "sources": ["web", "discussions"],
    "remove_top_sites": 10000
  }'

A narrow scope has a cost: the run may find nothing, or nothing it can support. That is an incomplete run with stop_reason of no_sources or no_support, not a guess. Widen the scope and run it again.

Reading the briefing

Fill a table of facts from a schema

To fill a row of a table, send the row's shape as schema. To fill a table, start one run for each row.

Example
Shell
curl https://api.millionshort.com/v1/agent \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The public library system of Halifax, Nova Scotia: number of branches, annual operating budget, and the year of the figures.",
    "schema": {
      "type": "object",
      "properties": {
        "branches": { "type": "integer" },
        "operating_budget": { "type": "number", "description": "Annual, in Canadian dollars" },
        "figures_year": { "type": "integer" }
      }
    },
    "processor": "standard"
  }'

What to do with uncited_fields

uncited_fields names the fields that are filled and that no checked quote supports. The value may still be right. It has not been shown to be.

A field that is missing from both field_citations and uncited_fields was not filled.

A top-level field counts as cited when a quote was kept for it or for a value inside it. For a field that holds a list or an object, read field_citations to see which of its values the quotes are for; the others stand unchecked. This is one more reason to keep the schema flat.

Choose a processor, a model and a cap

The processor

processor is how much work a run may do. It is a ceiling on work, not a price: a run pays for what it did.

ProcessorSearchesPages readFollow-up searchesSecond pass over citationsWrites onDefault max_credits
liteup to 3up to 6nonenofast40
standardup to 6up to 12up to 2yesfast120
proup to 12up to 24up to 4yesbalanced1,500

Start with standard. Move down when the answers are good and you want them faster; move up when not_answered keeps naming the same gap.

The model

Leave model as auto unless you have a reason. auto is fast on lite and standard, balanced on pro.

modelWhat it isPrice of its tokensInput, per 1,000 tokensOutput, per 1,000 tokensLeast max_credits
autoThe processor's own: fast on lite and standard, balanced on proas that tier
fastThe quickest and the cheapest (the default on lite and standard)1×0.4210
balancedA larger model, at a higher price (the default on pro)20×840125
bestOur top-tier model, at the highest price40×1680245

A dearer tier writes from the same pages. It does not search more or read more: that is the processor. On our own small evaluation set, a dearer tier did not answer better: start with auto. Planning and checking run on fast whichever tier writes.

The cap

max_credits is the most a run may cost. It is held from your credits when the run starts, and what the run does not use is handed back when it ends.

Example
Shell
curl https://api.millionshort.com/v1/agent \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Compare the 2026 curbside composting rules of Vancouver, Calgary and Toronto.",
    "processor": "pro",
    "model": "balanced",
    "max_credits": 600
  }'

What runs have cost on our own evaluation set is on the pricing page, as measured examples.

Use it from an agent over MCP

The MCP server has three tools for runs. They need a key, because a run spends credits.

ToolDoes
start_agentStarts a run and returns its id
get_agentStatus and progress. ended is true once the run has ended
get_agent_resultsThe answer, the citations and the quotes. ready is false while the run is going

The agent starts a run:

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "start_agent",
    "arguments": {
      "prompt": "Which Canadian provinces changed their minimum wage in 2026, and to what?",
      "processor": "lite",
      "max_credits": 40
    }
  }
}

then asks how it is going, every few seconds, until ended is true:

JSON
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": { "name": "get_agent", "arguments": { "id": "agt_01jd4f8q2m6r9t3v5x7z0b1c2d" } }
}

and then reads the result:

JSON
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": { "name": "get_agent_results", "arguments": { "id": "agt_01jd4f8q2m6r9t3v5x7z0b1c2d" } }
}

This page as Markdown · llms.txt