π Issue Description
During testing of the PNCP gov br MCP integration, several tools are returning an invalid_type: structuredContent null error. The integration works partially - some tools succeed while others fail with schema validation errors.
π Test Results Summary
- Success Rate: 2 out of 7 tools (28.5%)
- Failure Rate: 5 out of 7 tools (71.5%)
β
Working Tools
PNCP-ListPriceRegistrationRecords - Successfully returned 499,649 records
PNCP-GetProcurementDetails - Successfully retrieved procurement details
β Failing Tools
π Error Details
{
"error": "MCP error -32603: [
{
"code": "invalid_type",
"expected": "object",
"received": "null",
"path": ["structuredContent"],
"message": "Expected object, received null"
}
]"
}
π― Root Cause Analysis
The issue appears to be related to:
- MCP schema validation for the
structuredContent field
- Possible inconsistency between input parameters and expected schema
- Potential missing authentication or authorization requirements for some endpoints
π Steps to Reproduce
// This fails
await CALL_TOOL("PNCP-SearchPublicContracts", {
status: "recebendo_proposta",
q: "tecnologia"
});
// This works
await CALL_TOOL("PNCP-ListPriceRegistrationRecords", {
dataInicial: "20251001",
dataFinal: "20251231"
});
π§ Suggested Solution
- Review the MCP schema definitions for failing tools
- Verify the
structuredContent field is properly initialized
- Check if parameter validation is too strict
- Test endpoint authentication/authorization requirements
- Ensure response transformation is working correctly
π¦ Environment
- Integration ID:
i:c95dc4ff-bc3c-48b8-8d2b-5cd43be07ba1
- Integration Name: PNCP gov br
- Test Date: 2025-01-07
π Issue Description
During testing of the PNCP gov br MCP integration, several tools are returning an
invalid_type: structuredContent nullerror. The integration works partially - some tools succeed while others fail with schema validation errors.π Test Results Summary
β Working Tools
PNCP-ListPriceRegistrationRecords- Successfully returned 499,649 recordsPNCP-GetProcurementDetails- Successfully retrieved procurement detailsβ Failing Tools
PNCP-SearchPublicContracts- Error:invalid_type: structuredContent nullPNCP-ListProcurementswithOpenProposals- Error:invalid_type: structuredContent nullPNCP-ListContracts- Error:invalid_type: structuredContent nullPNCP-ListProcurementsbyPublicationDate- Error:invalid_type: structuredContent nullPNCP-ListPublicContracts(if exists) - Error:invalid_type: structuredContent nullπ Error Details
{ "error": "MCP error -32603: [ { "code": "invalid_type", "expected": "object", "received": "null", "path": ["structuredContent"], "message": "Expected object, received null" } ]" }π― Root Cause Analysis
The issue appears to be related to:
structuredContentfieldπ Steps to Reproduce
π§ Suggested Solution
structuredContentfield is properly initializedπ¦ Environment
i:c95dc4ff-bc3c-48b8-8d2b-5cd43be07ba1