PulseAugur
中
实时 15:47:06
English(EN) Tool Schemas Are an API Contract (Treat Them Like One)

模型上下文协议更新工具模式,要求更严格地遵守 API 合约

模型上下文协议(MCP)更新了其工具模式规范,特别是将 `structuredContent` 字段从具有字符串键的对象更改为更灵活的 `unknown` 类型。此更改在提案 SEP-2106 中概述,允许工具直接返回数组和原始类型,但它为类型化消费者引入了破坏源的更改。MCP 维护者承认这种故意中断,并强调当工具返回非对象数据时,之前的类型是不准确的。这种情况凸显了开发人员需要将工具模式视为严格的 API 合约,类似于 OpenAPI,考虑到包括描述和错误消息在内的更广泛的表面区域,特别是考虑到消耗这些模式的 AI 模型比传统 API 客户端具有更不可预测的升级行为。 AI

影响 强调了在 AI 工具集成中进行稳健 API 合约管理的需求,影响了开发人员构建和维护 AI 代理的方式。

排序理由 文章讨论了工具模式协议的更改及其对开发人员的影响,而不是新的产品发布或前沿模型。

在 dev.to — MCP tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

模型上下文协议更新工具模式,要求更严格地遵守 API 合约

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
文章讨论了工具模式协议的更改及其对开发人员的影响,而不是新的产品发布或前沿模型。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
5 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — MCP tag TIER_1 English(EN) · Andrii B. ·

    Tool Schemas Are an API Contract (Treat Them Like One)

    <p>Earlier this year, the people who maintain the Model Context Protocol loosened the types on tool schemas. The headline change was to <code>structuredContent</code>, the field a tool uses to return machine-readable results: it went from <code>{ [key: string]: unknown }</code> t…