{
    "format": "symfony-refund-discovery/v1",
    "client": "Scripted PHP client using mcp/sdk v0.9.0 stateless request envelopes and Symfony HttpClient.",
    "modelRequests": 0,
    "scope": "Two independent authorized HTTP sessions against the same synthetic catalog. The client declares Groups in both. The single-tool session chooses catalog search and execution. The second exercises the draft Groups methods and invokes each scoped reader by name.",
    "singleTool": {
        "calls": [
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/list",
                    "params": {
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "result": {
                        "tools": [
                            {
                                "name": "search_tools",
                                "description": "Search with query for individual tool contracts and Group summaries. An empty query browses both. For a team procedure, open the matching Group by sending its name in the group field alone. This returns the instructions and member contracts. Call members with execute_tools, passing any ID returned by an earlier read.",
                                "inputSchema": {
                                    "type": "object",
                                    "properties": {
                                        "query": {
                                            "type": "string",
                                            "maxLength": 256
                                        },
                                        "group": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                        }
                                    },
                                    "minProperties": 1,
                                    "maxProperties": 1,
                                    "additionalProperties": false
                                }
                            },
                            {
                                "name": "execute_tools",
                                "description": "Execute one or more independent catalog calls using contracts returned by search_tools sequentially. Arguments are literal JSON values; no code, expressions or references between results. Returns results in input order. Stops on the first error; earlier calls are not rolled back. At most 10 calls per batch, 6 batch attempts and 6 underlying calls per session, including failures. The host owns identity and limits.",
                                "inputSchema": {
                                    "type": "object",
                                    "properties": {
                                        "calls": {
                                            "type": "array",
                                            "minItems": 1,
                                            "maxItems": 10,
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 64,
                                                        "pattern": "^[a-zA-Z][a-zA-Z0-9_.-]*$"
                                                    },
                                                    "arguments": {
                                                        "type": "object"
                                                    }
                                                },
                                                "required": [
                                                    "name",
                                                    "arguments"
                                                ],
                                                "additionalProperties": false
                                            }
                                        }
                                    },
                                    "required": [
                                        "calls"
                                    ],
                                    "additionalProperties": false
                                }
                            }
                        ],
                        "cacheScope": "private",
                        "ttlMs": 0,
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": []
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/call",
                    "params": {
                        "name": "search_tools",
                        "arguments": {
                            "query": "refund_get_order"
                        },
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "result": {
                        "content": [
                            {
                                "type": "text",
                                "text": "{\"tools\":[{\"name\":\"refund_get_order\",\"description\":\"Read the support order, paid amount in minor units, condition, days since delivery and applicable policy ID.\",\"inputSchema\":{\"type\":\"object\",\"properties\":{\"orderId\":{\"type\":\"string\"}},\"required\":[\"orderId\"],\"additionalProperties\":false}}],\"matched\":1,\"returned\":1,\"limit\":8,\"truncated\":false,\"groups\":[{\"name\":\"refund-review\",\"description\":\"Support team refund procedure. Open this Group for the review steps and the rules for recommending a refund.\"},{\"name\":\"order-lookup\",\"description\":\"Look up delivery, item condition and payment details for one order.\"}]}"
                            }
                        ],
                        "isError": false,
                        "structuredContent": {
                            "tools": [
                                {
                                    "name": "refund_get_order",
                                    "description": "Read the support order, paid amount in minor units, condition, days since delivery and applicable policy ID.",
                                    "inputSchema": {
                                        "type": "object",
                                        "properties": {
                                            "orderId": {
                                                "type": "string"
                                            }
                                        },
                                        "required": [
                                            "orderId"
                                        ],
                                        "additionalProperties": false
                                    }
                                }
                            ],
                            "matched": 1,
                            "returned": 1,
                            "limit": 8,
                            "truncated": false,
                            "groups": [
                                {
                                    "name": "refund-review",
                                    "description": "Support team refund procedure. Open this Group for the review steps and the rules for recommending a refund."
                                },
                                {
                                    "name": "order-lookup",
                                    "description": "Look up delivery, item condition and payment details for one order."
                                }
                            ]
                        },
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": []
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 3,
                    "method": "tools/call",
                    "params": {
                        "name": "execute_tools",
                        "arguments": {
                            "calls": [
                                {
                                    "name": "refund_get_order",
                                    "arguments": {
                                        "orderId": "R-1042"
                                    }
                                }
                            ]
                        },
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 3,
                    "result": {
                        "content": [
                            {
                                "type": "text",
                                "text": "{\"results\":[{\"name\":\"refund_get_order\",\"value\":{\"orderId\":\"R-1042\",\"policyId\":\"standard-eu\",\"currency\":\"EUR\",\"amountMinor\":7500,\"daysSinceDelivery\":9,\"itemCondition\":\"unopened\"}}]}"
                            }
                        ],
                        "isError": false,
                        "structuredContent": {
                            "results": [
                                {
                                    "name": "refund_get_order",
                                    "value": {
                                        "orderId": "R-1042",
                                        "policyId": "standard-eu",
                                        "currency": "EUR",
                                        "amountMinor": 7500,
                                        "daysSinceDelivery": 9,
                                        "itemCondition": "unopened"
                                    }
                                }
                            ]
                        },
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": [
                    "requested",
                    "succeeded"
                ]
            }
        ]
    },
    "groups": {
        "calls": [
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "server/discover",
                    "params": {
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "result": {
                        "supportedVersions": [
                            "2026-07-28"
                        ],
                        "capabilities": {
                            "prompts": {},
                            "resources": {},
                            "tools": {},
                            "extensions": {
                                "io.modelcontextprotocol/groups": {}
                            }
                        },
                        "instructions": "Read-only refund review of synthetic orders.",
                        "resultType": "complete",
                        "ttlMs": 0,
                        "cacheScope": "private",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": []
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/list",
                    "params": {
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "result": {
                        "tools": [
                            {
                                "name": "search_tools",
                                "description": "Search with query for individual tool contracts and Group summaries. An empty query browses both. For a team procedure, open the matching Group by sending its name in the group field alone. This returns the instructions and member contracts. Call members with execute_tools, passing any ID returned by an earlier read.",
                                "inputSchema": {
                                    "type": "object",
                                    "properties": {
                                        "query": {
                                            "type": "string",
                                            "maxLength": 256
                                        },
                                        "group": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                        }
                                    },
                                    "minProperties": 1,
                                    "maxProperties": 1,
                                    "additionalProperties": false
                                }
                            },
                            {
                                "name": "execute_tools",
                                "description": "Execute one or more independent catalog calls using contracts returned by search_tools sequentially. Arguments are literal JSON values; no code, expressions or references between results. Returns results in input order. Stops on the first error; earlier calls are not rolled back. At most 10 calls per batch, 6 batch attempts and 6 underlying calls per session, including failures. The host owns identity and limits.",
                                "inputSchema": {
                                    "type": "object",
                                    "properties": {
                                        "calls": {
                                            "type": "array",
                                            "minItems": 1,
                                            "maxItems": 10,
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 64,
                                                        "pattern": "^[a-zA-Z][a-zA-Z0-9_.-]*$"
                                                    },
                                                    "arguments": {
                                                        "type": "object"
                                                    }
                                                },
                                                "required": [
                                                    "name",
                                                    "arguments"
                                                ],
                                                "additionalProperties": false
                                            }
                                        }
                                    },
                                    "required": [
                                        "calls"
                                    ],
                                    "additionalProperties": false
                                }
                            }
                        ],
                        "cacheScope": "private",
                        "ttlMs": 0,
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": []
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 3,
                    "method": "groups/list",
                    "params": {
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 3,
                    "result": {
                        "groups": [
                            {
                                "name": "order-lookup",
                                "description": "Look up delivery, item condition and payment details for one order."
                            },
                            {
                                "name": "policy-lookup",
                                "description": "Look up return terms and thresholds for a named policy."
                            },
                            {
                                "name": "refund-review",
                                "description": "Support team refund procedure. Open this Group for the review steps and the rules for recommending a refund."
                            }
                        ],
                        "cacheScope": "private",
                        "ttlMs": 0,
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": []
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 4,
                    "method": "groups/get",
                    "params": {
                        "name": "refund-review",
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 4,
                    "result": {
                        "tools": [
                            {
                                "name": "refund_get_order",
                                "description": "Read the support order, paid amount in minor units, condition, days since delivery and applicable policy ID.",
                                "inputSchema": {
                                    "type": "object",
                                    "properties": {
                                        "orderId": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "orderId"
                                    ],
                                    "additionalProperties": false
                                }
                            },
                            {
                                "name": "refund_get_policy",
                                "description": "Read the return window, accepted condition, currency and manual review threshold in minor units for a policy.",
                                "inputSchema": {
                                    "type": "object",
                                    "properties": {
                                        "policyId": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "policyId"
                                    ],
                                    "additionalProperties": false
                                }
                            }
                        ],
                        "instructions": "Read the order, then read the policy named by that order. Compare its age and condition with the policy. If eligible, compare the amount with the manual-review threshold in the same currency. Report the recommendation and the reason. If a required read is denied, keep the facts already received, identify the missing evidence and report the review as incomplete. A review never issues a refund.",
                        "cacheScope": "private",
                        "ttlMs": 0,
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": []
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 5,
                    "method": "tools/call",
                    "params": {
                        "name": "refund_get_order",
                        "arguments": {
                            "orderId": "R-1042"
                        },
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 5,
                    "result": {
                        "content": [
                            {
                                "type": "text",
                                "text": "{\"orderId\":\"R-1042\",\"policyId\":\"standard-eu\",\"currency\":\"EUR\",\"amountMinor\":7500,\"daysSinceDelivery\":9,\"itemCondition\":\"unopened\"}"
                            }
                        ],
                        "isError": false,
                        "structuredContent": {
                            "orderId": "R-1042",
                            "policyId": "standard-eu",
                            "currency": "EUR",
                            "amountMinor": 7500,
                            "daysSinceDelivery": 9,
                            "itemCondition": "unopened"
                        },
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": [
                    "requested",
                    "succeeded"
                ]
            },
            {
                "request": {
                    "jsonrpc": "2.0",
                    "id": 6,
                    "method": "tools/call",
                    "params": {
                        "name": "refund_get_policy",
                        "arguments": {
                            "policyId": "standard-eu"
                        },
                        "_meta": {
                            "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                            "io.modelcontextprotocol/clientCapabilities": {
                                "extensions": {
                                    "io.modelcontextprotocol/groups": {}
                                }
                            },
                            "io.modelcontextprotocol/clientInfo": {
                                "name": "refund-review-study",
                                "version": "1"
                            }
                        }
                    }
                },
                "response": {
                    "jsonrpc": "2.0",
                    "id": 6,
                    "result": {
                        "content": [
                            {
                                "type": "text",
                                "text": "{\"policyId\":\"standard-eu\",\"currency\":\"EUR\",\"returnWindowDays\":30,\"acceptedCondition\":\"unopened\",\"manualReviewAboveMinor\":5000}"
                            }
                        ],
                        "isError": false,
                        "structuredContent": {
                            "policyId": "standard-eu",
                            "currency": "EUR",
                            "returnWindowDays": 30,
                            "acceptedCondition": "unopened",
                            "manualReviewAboveMinor": 5000
                        },
                        "resultType": "complete",
                        "_meta": {
                            "io.modelcontextprotocol/serverInfo": {
                                "name": "symfony_code_mode",
                                "version": "1.0.0",
                                "title": "Symfony Code Mode"
                            }
                        }
                    }
                },
                "httpStatus": 200,
                "handlerEvents": [
                    "requested",
                    "succeeded"
                ]
            }
        ],
        "verifiedDisposition": "manual_review"
    }
}
