Skip to content
Skip to Content
DalalOSdocs

POST /screen/explain

Why one company is in or out of a screen

Set one company against each condition of a screen: its value in the field's display unit, the date of that value where the data carries it, whether the figure is missing (and whether the field applies to its company type), and whether it meets the condition.

Try it

To test this route you need an API key on a plan that includes the REST API. Create one on the keys page of your dashboard, paste it into the Authorization field of the reference on this page and press Send. Your key stays in this browser tab.

Why one company is in or out of a screen
curl -X POST -H "Content-Type: application/json" -d '{"query":"Return on capital employed > 22% AND Market Capitalization > 500","company":"RELIANCE","dialect":"screener"}' -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/screen/explain"
{
  "status": "success",
  "data": {
    "dialect": "screener",
    "query": "Return on capital employed > 22% AND Market Capitalization > 500",
    "company": {
      "isin": "INE002A01018",
      "symbol": "RELIANCE",
      "name": "Reliance Industries Limited",
      "company_type": "general"
    },
    "in_universe": true,
    "in_screen": false,
    "checks": [
      {
        "id": "c-5fa03033",
        "kind": "range",
        "text": "Return on capital employed > 22%",
        "indexes": [
          0
        ],
        "meets": false,
        "metric_id": "roce",
        "label": "Return on capital employed",
        "value": 12.65,
        "value_text": "12.65%",
        "unit": "percentage",
        "unit_kind": "percent",
        "surface_scale": 100,
        "missing": null,
        "value_flags": [],
        "as_of": "Sep 2026 results, filed 30 Oct",
        "as_of_detail": {
          "basis": "quarterly_filing",
          "period_end": "2026-09-30",
          "filed_on": "2026-10-30"
        },
        "inputs": [
          {
            "metric_id": "roce",
            "label": "Return on capital employed",
            "value": 12.65,
            "value_text": "12.65%",
            "unit": "percentage",
            "unit_kind": "percent",
            "surface_scale": 100,
            "missing": null,
            "value_flags": [],
            "as_of": "Sep 2026 results, filed 30 Oct",
            "as_of_detail": {
              "basis": "quarterly_filing",
              "period_end": "2026-09-30",
              "filed_on": "2026-10-30"
            }
          }
        ]
      },
      {
        "id": "c-713a6e7f",
        "kind": "range",
        "text": "Market Capitalization > 500",
        "indexes": [
          1
        ],
        "meets": true,
        "metric_id": "market_cap",
        "label": "Market cap",
        "value": 1889413.05637,
        "value_text": "₹18,89,413 cr",
        "unit": "currency_crore",
        "unit_kind": "crore",
        "surface_scale": 1e-7,
        "missing": null,
        "value_flags": [],
        "as_of": "Prices as of 27 Nov 2026",
        "as_of_detail": {
          "basis": "quote",
          "period_end": null,
          "filed_on": null
        },
        "inputs": [
          {
            "metric_id": "market_cap",
            "label": "Market cap",
            "value": 1889413.05637,
            "value_text": "₹18,89,413 cr",
            "unit": "currency_crore",
            "unit_kind": "crore",
            "surface_scale": 1e-7,
            "missing": null,
            "value_flags": [],
            "as_of": "Prices as of 27 Nov 2026",
            "as_of_detail": {
              "basis": "quote",
              "period_end": null,
              "filed_on": null
            }
          }
        ]
      }
    ],
    "snapshot": {
      "id": 100,
      "computed_at": "2026-11-26 16:20:31"
    },
    "listing_note": "Listed on NSE and BSE. Prices are from NSE."
  },
  "cached_at": null,
  "source": "indian-stock-mcp",
  "stale": false,
  "error": null,
  "reason_code": null
}

Saved answer. Run on 2026-11-27, answered 200. A call you make now gets the current answer.

A call can also answer 402, 403, 409 or 429 when a plan's limit is reached; those are described on Plans, credits and errors.

Request body and response

POST
/screen/explain

Authorization

bearerAuth
headerAuthorizationBearer <token>

DalalOS API key (isk_live_...) as a Bearer token. Create one in the DalalOS dashboard.

Request Body

The screen (as sent to POST /screen/query) and the company to explain.

application/json
  1. body
company*string

NSE symbol, ISIN or BSE code of the company to explain.

definitions?array<>

Inline custom ratios the query may name, as on POST /screen/query.

dialect?string

screener (Screener.in names and surface units) or dalalos (canonical metric ids and storage units).

Default"screener"
only_latest_results?boolean

As on POST /screen/query: a company that has not filed the current results season is outside the universe.

Defaultfalse
query*string

The screen expression.

scope?

Exact-match classification filters, as on POST /screen/query; each is a choice check.

snapshot_id?integer

The pagination.snapshot_id of the list being viewed, as on POST /screen/query. The answer is evaluated against that metrics generation; if it is no longer published the request fails with snapshot_expired.

Response Body

Success (or success-with-empty when nothing is cached).

application/json
  1. response

Standard DalalOS response envelope. source is a per-tool provenance tag; stale/data_age_seconds describe cache freshness.

as_of?string

ISO date (YYYY-MM-DD) the data refers to: the trade date of the newest row, or the end date of the newest period. Present only on tools that state one; cached_at is the fetch time.

Formatdate
cached_at?string

ISO timestamp the served data was refreshed.

data?unknown

Tool payload (object or array); null on error.

data_age_seconds?number

Present only when cached_at is set.

error?string
reason_code?string

Stable machine-readable category (no_data, not_found, bad_request,...).

resolved_via?string

Present only when a query resolved via a rename/merger alias (rename, merger, demerger_successor; single-company result) or, on /v1/search, an everyday name (common_name: the company it means is the first row and carries the same resolved_via on the row; ordinary matches follow).

source?string
stale*boolean
status*string
Value in"success""error"

What comes back

The top-level fields of data in the saved answer, run on 2026-11-27. The fields can differ for another company or window.

Fields of data
FieldType
dialectstring
querystring
companyobject
in_universeboolean
in_screenboolean
checkslist
snapshotobject
listing_notestring

Errors

Errors specific to this route
StatusMeaning on this route
409The pinned snapshot_id is no longer the published metrics generation (reason_code=snapshot_expired).
503No metrics generation is published yet (reason_code=snapshot_unavailable).

The errors every route can return (401, 402, 403, 429 and the rest) are on Plans, credits and errors.

In MCP

No MCP tool reads this data. Use the REST route.

Notes

  • in_screen is the screen's own answer for that company: it comes from the same compiled query, generation, scope and results-season restriction as POST /screen/query, so it equals membership in that screen's result.
  • A missing value never meets a condition.
  • Works for a company that is out of the result.
  • company is an NSE symbol, ISIN or BSE code; an unmatched one is a 200 with in_universe: false and a reason.
  • Stored figures and dates only.

Research data only. Answers are disclosed facts and mechanically computed figures. They are not investment advice.

KEEP EXPLORING