The Moorish Times

Search, read and cite The Moorish Times: Moroccan history, culture and news, in French and English.

我該用這個嗎

品質與安全性

A
說明品質
97%
結構描述完整度
91%
命名品質
88%
汙染風險
100%
權限相符程度
90%
協定合規性
100%

發現項目(1)

  • LOWTool 'fetch' suggests web access but openWorldHint=false在 fetch 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~5,764Token(工具定義)
~4.6 KB典型回應大小
顯著的注意力影響(128k 上下文的 4.50%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "moorish-times": {
      "url": "https://mcp.moorish.cloud/mcp"
    }
  }
}

遠端端點

https://mcp.moorish.cloud/mcpstreamable-http

它能做什麼

工具清單

工具(12)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢search(query, locale, type, category, tags, ...)

Search every article and news brief by words, section, tags, author and date range, in French or English. Accent-insensitive keyword match first, then pieces close in meaning (match: semantic) when keywords find few. An empty query lists the newest pieces first. Returns JSON {results: [{id, title, url, summary, published, ...}], next, total}; next is the cursor for the following page.

輸入結構描述

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Words to look for, e.g. zellige, Tanger Med, Guerre des Sables.",
      "type": "string"
    },
    "locale": {
      "default": "fr",
      "description": "Edition: fr (primary) or en.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "type": {
      "description": "article for long-form features, news for briefs.",
      "type": "string",
      "enum": [
        "article",
        "news"
      ]
    },
    "category": {
      "description": "Section: hist history, cult culture, pol politics, actu current affairs, sport, eco economy.",
      "type": "string",
      "enum": [
        "hist",
        "cult",
        "pol",
        "actu",
        "sport",
        "eco"
      ]
    },
    "tags": {
      "description": "Every tag must be present, in French or English, e.g. [\"Casablanca\", \"Finance\"].",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "author": {
      "description": "An author's slug or name, e.g. amerruki.",
      "type": "string"
    },
    "since": {
      "description": "today, week, month, year, or a date (2026-09-01).",
      "type": "string"
    },
    "until": {
      "description": "A date, inclusive.",
      "type": "string"
    },
    "sort": {
      "default": "relevance",
      "type": "string",
      "enum": [
        "relevance",
        "newest",
        "oldest"
      ]
    },
    "limit": {
      "default": 10,
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    },
    "cursor": {
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "article",
              "news"
            ]
          },
          "category": {
            "type": "string",
            "description": "hist, cult, pol, actu, sport or eco."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "published": {
            "type": "string",
            "description": "ISO 8601 publication time."
          },
          "featured": {
            "type": "boolean",
            "description": "On the front page (a la une)."
          },
          "url": {
            "type": "string",
            "description": "Page URL on moorishtimes.com."
          },
          "match": {
            "description": "keyword for a word match, semantic for a match in meaning.",
            "type": "string",
            "enum": [
              "keyword",
              "semantic"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "summary",
          "type",
          "category",
          "tags",
          "author",
          "published",
          "featured",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "next": {
      "description": "Cursor for the next page, absent at the end.",
      "type": [
        "string",
        "null"
      ]
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Matches across all pages."
    }
  },
  "required": [
    "results",
    "total"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢fetch(id, locale, format)

The full text of one article or news brief, as Markdown with front matter (title, url, date, author, tags, translation link) and its references. format summary gives the front matter and summary only; outline gives the section headings. Falls back to French when the piece has no English edition, and says so. Returns JSON {id, title, text, url, metadata}.

輸入結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "A piece id (news/<slug> or articles/<slug>) or a moorishtimes.com page URL in either language."
    },
    "locale": {
      "description": "Edition: fr or en. Defaults to the reference's own edition, else fr.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "format": {
      "default": "full",
      "type": "string",
      "enum": [
        "full",
        "summary",
        "outline"
      ]
    }
  },
  "required": [
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "text": {
      "type": "string",
      "description": "Markdown with front matter."
    },
    "url": {
      "type": "string",
      "description": "Page URL on moorishtimes.com."
    },
    "metadata": {
      "type": "object",
      "properties": {
        "locale": {
          "type": "string",
          "enum": [
            "fr",
            "en"
          ]
        },
        "english_edition": {
          "type": "boolean"
        },
        "translation": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "author": {
          "type": [
            "string",
            "null"
          ]
        },
        "published": {
          "type": "string"
        },
        "updated": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "locale",
        "english_edition",
        "translation",
        "type",
        "category",
        "tags",
        "author",
        "published"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "id",
    "title",
    "text",
    "url",
    "metadata"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢whats_new(since, locale, category, tag, featured_only)

A digest of recent pieces grouped by section, featured pieces first: what happened in Morocco today, this week or this month according to The Moorish Times.

輸入結構描述

{
  "type": "object",
  "properties": {
    "since": {
      "default": "week",
      "description": "today, week, month, or a date.",
      "type": "string"
    },
    "locale": {
      "default": "fr",
      "description": "Edition: fr (primary) or en.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "category": {
      "description": "Section: hist history, cult culture, pol politics, actu current affairs, sport, eco economy.",
      "type": "string",
      "enum": [
        "hist",
        "cult",
        "pol",
        "actu",
        "sport",
        "eco"
      ]
    },
    "tag": {
      "type": "string"
    },
    "featured_only": {
      "default": false,
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
                },
                "title": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "article",
                    "news"
                  ]
                },
                "category": {
                  "type": "string",
                  "description": "hist, cult, pol, actu, sport or eco."
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "author": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "published": {
                  "type": "string",
                  "description": "ISO 8601 publication time."
                },
                "featured": {
                  "type": "boolean",
                  "description": "On the front page (a la une)."
                },
                "url": {
                  "type": "string",
                  "description": "Page URL on moorishtimes.com."
                },
                "match": {
                  "description": "keyword for a word match, semantic for a match in meaning.",
                  "type": "string",
                  "enum": [
                    "keyword",
                    "semantic"
                  ]
                }
              },
              "required": [
                "id",
                "title",
                "summary",
                "type",
                "category",
                "tags",
                "author",
                "published",
                "featured",
                "url"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "category",
          "label",
          "items"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "groups"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢site_map(locale)

What the magazine covers: sections with counts and URLs, the most used tags, featured pieces, author pages and series.

輸入結構描述

{
  "type": "object",
  "properties": {
    "locale": {
      "default": "fr",
      "description": "Edition: fr (primary) or en.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "site": {
      "type": "object",
      "properties": {
        "fr": {
          "type": "string"
        },
        "en": {
          "type": "string"
        },
        "items": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "fr",
        "en",
        "items"
      ],
      "additionalProperties": false
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "fr": {
            "type": "string"
          },
          "en": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "count",
          "fr",
          "en"
        ],
        "additionalProperties": false
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tag": {
            "type": "string"
          },
          "fr": {
            "type": "string"
          },
          "en": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "tag",
          "fr",
          "en",
          "count"
        ],
        "additionalProperties": false
      }
    },
    "featured": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "article",
              "news"
            ]
          },
          "category": {
            "type": "string",
            "description": "hist, cult, pol, actu, sport or eco."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "published": {
            "type": "string",
            "description": "ISO 8601 publication time."
          },
          "featured": {
            "type": "boolean",
            "description": "On the front page (a la une)."
          },
          "url": {
            "type": "string",
            "description": "Page URL on moorishtimes.com."
          },
          "match": {
            "description": "keyword for a word match, semantic for a match in meaning.",
            "type": "string",
            "enum": [
              "keyword",
              "semantic"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "summary",
          "type",
          "category",
          "tags",
          "author",
          "published",
          "featured",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "fr": {
            "type": "string"
          },
          "en": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "slug",
          "name",
          "count",
          "fr",
          "en"
        ],
        "additionalProperties": false
      }
    },
    "series": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "fr": {
            "type": "string"
          },
          "en": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "slug",
          "fr",
          "en"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "site",
    "sections",
    "tags",
    "featured",
    "authors",
    "series"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢series(slug, locale)

Running stories the desk follows as one series, such as the 2026 elections or the Sahara. Without a slug, lists every series with its count and latest piece; with one, gives every piece in reading order, oldest first.

輸入結構描述

{
  "type": "object",
  "properties": {
    "slug": {
      "description": "A series slug, e.g. elections or sahara.",
      "type": "string"
    },
    "locale": {
      "default": "fr",
      "description": "Edition: fr (primary) or en.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "series": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "tag": {
                "type": "string"
              },
              "count": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "latest": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
                      },
                      "title": {
                        "type": "string"
                      },
                      "summary": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "article",
                          "news"
                        ]
                      },
                      "category": {
                        "type": "string",
                        "description": "hist, cult, pol, actu, sport or eco."
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "author": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "published": {
                        "type": "string",
                        "description": "ISO 8601 publication time."
                      },
                      "featured": {
                        "type": "boolean",
                        "description": "On the front page (a la une)."
                      },
                      "url": {
                        "type": "string",
                        "description": "Page URL on moorishtimes.com."
                      },
                      "match": {
                        "description": "keyword for a word match, semantic for a match in meaning.",
                        "type": "string",
                        "enum": [
                          "keyword",
                          "semantic"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "summary",
                      "type",
                      "category",
                      "tags",
                      "author",
                      "published",
                      "featured",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "slug",
              "title",
              "tag",
              "count",
              "latest"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "series"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "tag": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
              },
              "title": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "article",
                  "news"
                ]
              },
              "category": {
                "type": "string",
                "description": "hist, cult, pol, actu, sport or eco."
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "author": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "published": {
                "type": "string",
                "description": "ISO 8601 publication time."
              },
              "featured": {
                "type": "boolean",
                "description": "On the front page (a la une)."
              },
              "url": {
                "type": "string",
                "description": "Page URL on moorishtimes.com."
              },
              "match": {
                "description": "keyword for a word match, semantic for a match in meaning.",
                "type": "string",
                "enum": [
                  "keyword",
                  "semantic"
                ]
              }
            },
            "required": [
              "id",
              "title",
              "summary",
              "type",
              "category",
              "tags",
              "author",
              "published",
              "featured",
              "url"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "slug",
        "title",
        "tag",
        "items"
      ],
      "additionalProperties": false
    }
  ]
}
🟢timeline(tag, query, since, until, locale, ...)

Every piece on a tag or topic in date order, oldest first, to follow how a story unfolded. Marks the first and latest mention.

輸入結構描述

{
  "type": "object",
  "properties": {
    "tag": {
      "description": "A tag in French or English, e.g. Diplomatie.",
      "type": "string"
    },
    "query": {
      "description": "Words, e.g. MINURSO or Tanger Med.",
      "type": "string"
    },
    "since": {
      "type": "string"
    },
    "until": {
      "type": "string"
    },
    "locale": {
      "default": "fr",
      "description": "Edition: fr (primary) or en.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "type": {
      "description": "article for long-form features, news for briefs.",
      "type": "string",
      "enum": [
        "article",
        "news"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "article",
              "news"
            ]
          },
          "category": {
            "type": "string",
            "description": "hist, cult, pol, actu, sport or eco."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "published": {
            "type": "string",
            "description": "ISO 8601 publication time."
          },
          "featured": {
            "type": "boolean",
            "description": "On the front page (a la une)."
          },
          "url": {
            "type": "string",
            "description": "Page URL on moorishtimes.com."
          },
          "match": {
            "description": "keyword for a word match, semantic for a match in meaning.",
            "type": "string",
            "enum": [
              "keyword",
              "semantic"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "summary",
          "type",
          "category",
          "tags",
          "author",
          "published",
          "featured",
          "url"
        ],
        "additionalProperties": false
      },
      "description": "Oldest first."
    }
  },
  "required": [
    "items"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢related(id, locale, limit)

Pieces that share tags and section with a given piece, the closest first.

輸入結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "A piece id (news/<slug> or articles/<slug>) or a moorishtimes.com page URL in either language."
    },
    "locale": {
      "description": "Edition: fr or en. Defaults to the reference's own edition, else fr.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "limit": {
      "default": 5,
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": [
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "news/<slug> or articles/<slug>, the id every piece tool accepts."
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "article",
              "news"
            ]
          },
          "category": {
            "type": "string",
            "description": "hist, cult, pol, actu, sport or eco."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "published": {
            "type": "string",
            "description": "ISO 8601 publication time."
          },
          "featured": {
            "type": "boolean",
            "description": "On the front page (a la une)."
          },
          "url": {
            "type": "string",
            "description": "Page URL on moorishtimes.com."
          },
          "match": {
            "description": "keyword for a word match, semantic for a match in meaning.",
            "type": "string",
            "enum": [
              "keyword",
              "semantic"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "summary",
          "type",
          "category",
          "tags",
          "author",
          "published",
          "featured",
          "url"
        ],
        "additionalProperties": false
      },
      "description": "Closest first."
    }
  },
  "required": [
    "items"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢compare_editions(id)

Both editions of one piece aligned block by block, with both URLs. For readers comparing the languages or checking a translation.

輸入結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "A piece id (news/<slug> or articles/<slug>) or a moorishtimes.com page URL in either language."
    }
  },
  "required": [
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "urls": {
      "type": "object",
      "properties": {
        "fr": {
          "type": "string"
        },
        "en": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "fr",
        "en"
      ],
      "additionalProperties": false
    },
    "aligned": {
      "type": "boolean"
    },
    "frBlocks": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "enBlocks": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fr": {
            "type": "string"
          },
          "en": {
            "type": "string"
          }
        },
        "required": [
          "fr",
          "en"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "urls",
    "rows"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_sources(id, locale, style)

A piece's references, outbound links and image credits, plus a ready citation of the piece itself in APA, MLA or Chicago style.

輸入結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "A piece id (news/<slug> or articles/<slug>) or a moorishtimes.com page URL in either language."
    },
    "locale": {
      "description": "Edition: fr or en. Defaults to the reference's own edition, else fr.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "style": {
      "default": "apa",
      "type": "string",
      "enum": [
        "apa",
        "mla",
        "chicago"
      ]
    }
  },
  "required": [
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Page URL on moorishtimes.com."
    },
    "citation": {
      "type": "string"
    },
    "references": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "links": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "credits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "image": {
            "type": "string"
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          },
          "credit": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "image",
          "caption",
          "credit"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "url",
    "citation",
    "references",
    "links",
    "credits"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢list_tags(locale, prefix, category, min_count)

Tags with the number of pieces carrying each, most used first, named in the asked edition with both names in the data. Both names are accepted wherever a tag filter is.

輸入結構描述

{
  "type": "object",
  "properties": {
    "locale": {
      "default": "fr",
      "description": "Edition: fr (primary) or en.",
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    },
    "prefix": {
      "description": "Accent-insensitive start of the tag in either language, e.g. tan for Tanger.",
      "type": "string"
    },
    "category": {
      "description": "Section: hist history, cult culture, pol politics, actu current affairs, sport, eco economy.",
      "type": "string",
      "enum": [
        "hist",
        "cult",
        "pol",
        "actu",
        "sport",
        "eco"
      ]
    },
    "min_count": {
      "default": 1,
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tag": {
            "type": "string"
          },
          "fr": {
            "type": "string"
          },
          "en": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "tag",
          "fr",
          "en",
          "count"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "tags"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟡send_to_newsroom(kind, message, reply_to, page, language)

Send the newsroom a story tip, a correction, a rights or advertising request, or another message, on the user's behalf and with their consent. message holds the user's own words; reply_to is their email, for when they want an answer. Without a Bearer token (scope newsroom:send) sends are limited per network.

輸入結構描述

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "story",
        "correction",
        "rights",
        "ads",
        "other"
      ],
      "description": "story (a tip), correction (an error in a piece, named in page), rights, ads or other."
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 5000,
      "description": "The message, in French or English."
    },
    "reply_to": {
      "description": "The user's email, only if they want a reply.",
      "type": "string",
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "page": {
      "description": "The moorishtimes.com page it is about, if any.",
      "type": "string",
      "format": "uri"
    },
    "language": {
      "type": "string",
      "enum": [
        "fr",
        "en"
      ]
    }
  },
  "required": [
    "kind",
    "message"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Reference for the message."
    },
    "status": {
      "type": "string",
      "const": "received"
    }
  },
  "required": [
    "id",
    "status"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
⚪report_missing(task, description)

Tell The Moorish Times about a task a reader wanted that this server, the site or the API could not do. It records the task only, never personal data.

輸入結構描述

{
  "type": "object",
  "properties": {
    "task": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The task in a few words, e.g. Read a piece in Arabic."
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "What was wanted and what was missing. No names, emails or other personal data."
    }
  },
  "required": [
    "task",
    "description"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "received"
    }
  },
  "required": [
    "status"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本12 個工具