Ensure MCP tool outputs are always objects#942
Conversation
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
🤖 Augment PR SummarySummary: This PR updates MCP tool call responses so that Changes:
Technical Notes: The returned text block now represents the prettified envelope object (e.g., 🤖 Was this summary useful? React with 👍 or 👎 |
| jsonpath "$.result.structuredContent" count == 0 | ||
| variable "text" jsonpath "$" count == 0 | ||
| jsonpath "$.result.structuredContent.results" count == 0 | ||
| variable "text" jsonpath "$.results" count == 0 |
There was a problem hiding this comment.
jsonpath "$.result.structuredContent.results" count == 0 will also pass if structuredContent is omitted entirely; if the intent is to enforce the new always-object envelope, consider also asserting that structuredContent (and .results) exists so this test catches regressions.
Severity: low
Other Locations
enterprise/e2e/html/hurl/mcp-2025-11-25-get_schema_dependencies.all.hurl:69enterprise/e2e/html/hurl/mcp-2025-11-25-get_schema_dependencies.all.hurl:501enterprise/e2e/html/hurl/mcp-2025-11-25-get_schema_dependencies.all.hurl:785enterprise/e2e/html/hurl/mcp-2025-11-25-get_schema_dependents.all.hurl:30enterprise/e2e/html/hurl/mcp-2025-11-25-search_schemas.all.hurl:357
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
There was a problem hiding this comment.
Benchmark Index (community)
Details
| Benchmark suite | Current: ed73d28 | Previous: 0d03c9c | Ratio |
|---|---|---|---|
Add one schema (0 existing) |
244 ms |
292 ms |
0.84 |
Add one schema (100 existing) |
19 ms |
25 ms |
0.76 |
Add one schema (1000 existing) |
64 ms |
81 ms |
0.79 |
Add one schema (10000 existing) |
869 ms |
872 ms |
1.00 |
Update one schema (1 existing) |
13 ms |
18 ms |
0.72 |
Update one schema (101 existing) |
20 ms |
26 ms |
0.77 |
Update one schema (1001 existing) |
63 ms |
80 ms |
0.79 |
Update one schema (10001 existing) |
536 ms |
662 ms |
0.81 |
Cached rebuild (1 existing) |
3 ms |
5 ms |
0.60 |
Cached rebuild (101 existing) |
5 ms |
7 ms |
0.71 |
Cached rebuild (1001 existing) |
18 ms |
28 ms |
0.64 |
Cached rebuild (10001 existing) |
158 ms |
258 ms |
0.61 |
Index 100 schemas |
86 ms |
118 ms |
0.73 |
Index 1000 schemas |
687 ms |
906 ms |
0.76 |
Index 10000 schemas |
10488 ms |
13672 ms |
0.77 |
This comment was automatically generated by workflow using github-action-benchmark.
There was a problem hiding this comment.
Benchmark Index (enterprise)
Details
| Benchmark suite | Current: ed73d28 | Previous: 0d03c9c | Ratio |
|---|---|---|---|
Add one schema (0 existing) |
300 ms |
294 ms |
1.02 |
Add one schema (100 existing) |
29 ms |
31 ms |
0.94 |
Add one schema (1000 existing) |
85 ms |
91 ms |
0.93 |
Add one schema (10000 existing) |
693 ms |
719 ms |
0.96 |
Update one schema (1 existing) |
21 ms |
23 ms |
0.91 |
Update one schema (101 existing) |
28 ms |
31 ms |
0.90 |
Update one schema (1001 existing) |
85 ms |
91 ms |
0.93 |
Update one schema (10001 existing) |
701 ms |
724 ms |
0.97 |
Cached rebuild (1 existing) |
7 ms |
7 ms |
1 |
Cached rebuild (101 existing) |
9 ms |
10 ms |
0.90 |
Cached rebuild (1001 existing) |
31 ms |
35 ms |
0.89 |
Cached rebuild (10001 existing) |
274 ms |
282 ms |
0.97 |
Index 100 schemas |
143 ms |
126 ms |
1.13 |
Index 1000 schemas |
1109 ms |
1082 ms |
1.02 |
Index 10000 schemas |
13790 ms |
13501 ms |
1.02 |
This comment was automatically generated by workflow using github-action-benchmark.
Signed-off-by: Juan Cruz Viotti jv@jviotti.com