{% extends "base.html" %} {% from "_macros.html" import th %} {% block title %}检索范围 Scopes · 指标观察台{% endblock %} {% block content %}
scope = 命名白名单(源库/域/语义码/原生码四维,空维=不限);panel 与 MCP scope 工具直调同一服务函数——此处创建的 scope 立即可供工具使用。A scope is a named allow-list over four dimensions; the panel calls the same service functions the MCP scope tools call, so anything created here is immediately usable via the tools.
{% include "_indicator_tabs.html" %} {% if msg %}{{ msg }}
{% endif %} {% if err %}{{ err }}
{% endif %}{{ sc.name }} |
{{ sc.description or '—' }} | {{ sc.rules.get('source_dbs') | join(', ') or '—' }} | {{ sc.rules.get('domains') | join(', ') or '—' }} | {{ sc.rules.get('semantic_codes') | join(', ') or '—' }} | {{ sc.rules.get('native_codes') | join(', ') or '—' }} | {{ sc.week_totals.calls }} 次 / {{ sc.week_totals.results }} 行 |
| 暂无 scope No scopes. | ||||||
空集校验:规则必须至少匹配一个已知指标(对照 registry_entries/concepts
活表),否则拒绝创建。Empty scopes are refused — rules must match at least one
known indicator against the live tables. 保留名 unscoped 不可用。