Catalunya 2022
Cerca de text complet al pla Catalunya 2022 - RESET: 3 àmbits, 12 objectius, 91 accions. CA/EN/ES.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"catalunya-2022": {
"url": "https://mcp.2022.cat"
}
}
}远程端点
https://mcp.2022.catstreamable-http它能做什么
工具清单
工具(4)
🟢search_document(query, locale, scope)
Search the Catalunya 2022 - RESET policy document by keyword. Returns up to 10 results with canonical slugs (for follow-up with get_section) and text snippets; "total" carries the full match count. Terms are matched independently with coverage-based ranking; quoted phrases ("energia sostenible") must match exactly. Handles Catalan/Spanish diacritics automatically (e.g., 'educacio' matches 'educació').
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Search query (e.g., 'housing', 'educacio', 'digital transformation'). Use terms in the target locale for best results."
},
"locale": {
"default": "ca",
"description": "Content language. Defaults to 'ca' (Catalan), the original language of the document. (ca=Catalan, en=English, es=Spanish)",
"type": "string",
"enum": [
"ca",
"en",
"es"
]
},
"scope": {
"description": "Filter by section type: 'action' (91 proposals), 'goal' (12 overviews), 'sphere' (3 overviews), or 'static' (introduction, executive summary, train of prosperity)",
"type": "string",
"enum": [
"sphere",
"goal",
"action",
"static"
]
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}输出模式
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Canonical section slug, usable with get_section"
},
"type": {
"type": "string",
"enum": [
"sphere",
"goal",
"action",
"static"
]
},
"title": {
"type": "string"
},
"snippet": {
"type": "string",
"description": "Content snippet with **highlighted** matches"
},
"url": {
"type": "string",
"description": "Canonical page URL on 2022.cat in the requested locale"
},
"sphereId": {
"description": "Present on sphere, goal, and action results",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"goalId": {
"description": "Present on goal and action results",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"actionId": {
"description": "Present on action results",
"type": "string"
}
},
"required": [
"slug",
"type",
"title",
"snippet",
"url"
],
"additionalProperties": false
}
},
"total": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Total matches before the 10-result cap"
},
"message": {
"description": "Guidance when no results were found",
"type": "string"
}
},
"required": [
"results",
"total"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢get_section(slug, locale)
Retrieve the full text of any section of the Catalunya 2022 document by its canonical slug. Slugs follow the pattern: 'sphere-1', 'sphere-1/goal-2', 'sphere-1/goal-2/action-2-1'. Static pages: 'introduction', 'executive-summary', 'train-of-prosperity'. Use get_document_metadata to discover all available slugs.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"maxLength": 100,
"pattern": "^[a-z0-9-]+(?:\\/[a-z0-9-]+){0,2}$",
"description": "Canonical section slug"
},
"locale": {
"default": "ca",
"description": "Content language. Defaults to 'ca' (Catalan), the original language of the document. (ca=Catalan, en=English, es=Spanish)",
"type": "string",
"enum": [
"ca",
"en",
"es"
]
}
},
"required": [
"slug"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_document_metadata(locale)
Get the complete structure of the policy document "Catalunya 2022 - RESET: Crida per reactivar el país": 3 spheres, 12 goals, 91 actions created by a 30-expert Catalonia Task Force. Returns the hierarchy with canonical slugs for navigation via get_section, plus the formal citation with DOI.
输入模式
{
"type": "object",
"properties": {
"locale": {
"default": "ca",
"description": "Content language. Defaults to 'ca' (Catalan), the original language of the document. (ca=Catalan, en=English, es=Spanish)",
"type": "string",
"enum": [
"ca",
"en",
"es"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}输出模式
{
"type": "object",
"properties": {
"title": {
"type": "string"
},
"date": {
"type": "string"
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
},
"structure": {
"type": "object",
"properties": {
"spheres": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"goals": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"actions": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"contributors": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"spheres",
"goals",
"actions",
"contributors"
],
"additionalProperties": false
},
"citation": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"author": {
"type": "string"
},
"year": {
"type": "string"
},
"doi": {
"type": "string"
},
"doiUrl": {
"type": "string"
}
},
"required": [
"title",
"author",
"year",
"doi",
"doiUrl"
],
"additionalProperties": false
},
"hierarchy": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"slug": {
"type": "string"
},
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"goals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"slug": {
"type": "string"
},
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"actionCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"actions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"slug": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"title",
"slug",
"id"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"slug",
"id",
"actionCount",
"actions"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"slug",
"id",
"goals"
],
"additionalProperties": false
}
},
"staticPages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"slug": {
"type": "string"
}
},
"required": [
"title",
"slug"
],
"additionalProperties": false
}
},
"contributors": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"names": {
"type": "array",
"items": {
"type": "string"
}
},
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"role": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"name",
"slug",
"role",
"url"
],
"additionalProperties": false
}
}
},
"required": [
"count",
"names",
"members"
],
"additionalProperties": false
}
},
"required": [
"title",
"date",
"languages",
"structure",
"citation",
"hierarchy",
"staticPages",
"contributors"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢list_proposals(locale, sphereId, goalId)
List all 91 action proposals from the Catalunya 2022 document, optionally filtered by sphere (1-3) or goal (1-12). Returns actionId, goalId, sphereId, title, slug, and url. Use get_section with the returned slug to read full action content.
输入模式
{
"type": "object",
"properties": {
"locale": {
"default": "ca",
"description": "Content language. Defaults to 'ca' (Catalan), the original language of the document. (ca=Catalan, en=English, es=Spanish)",
"type": "string",
"enum": [
"ca",
"en",
"es"
]
},
"sphereId": {
"description": "Filter by sphere (1-3)",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"goalId": {
"description": "Filter by goal (1-12)",
"type": "integer",
"minimum": 1,
"maximum": 12
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}输出模式
{
"type": "object",
"properties": {
"proposals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"actionId": {
"type": "string"
},
"goalId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sphereId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"actionId",
"goalId",
"sphereId",
"slug",
"title",
"url"
],
"additionalProperties": false
}
},
"count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"proposals",
"count"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}推荐提示词
search_documentget_sectionget_sectionlist_proposalssearch_document社区
证据