()
| 1054 | } |
| 1055 | |
| 1056 | func sampleToolsResponse() ToolsResponseRecord { |
| 1057 | return ToolsResponseRecord{Tools: []ToolRecord{ |
| 1058 | { |
| 1059 | Descriptor: contract.ToolDescriptorPayload{ |
| 1060 | ToolID: toolspkg.ToolIDSkillView, |
| 1061 | Backend: contract.ToolBackendRefPayload{Kind: toolspkg.BackendNativeGo, NativeName: "skill_view"}, |
| 1062 | DisplayTitle: "Skill View", |
| 1063 | Description: "Read one skill.", |
| 1064 | InputSchema: json.RawMessage(`{"type":"object"}`), |
| 1065 | Source: contract.ToolSourceRefPayload{ |
| 1066 | Kind: toolspkg.SourceBuiltin, |
| 1067 | Owner: toolspkg.BuiltinSourceOwner, |
| 1068 | }, |
| 1069 | Visibility: toolspkg.VisibilityModel, |
| 1070 | Risk: toolspkg.RiskRead, |
| 1071 | ReadOnly: true, |
| 1072 | }, |
| 1073 | Availability: contract.ToolAvailabilityPayload{ |
| 1074 | Registered: true, |
| 1075 | Enabled: true, |
| 1076 | Available: true, |
| 1077 | Authorized: true, |
| 1078 | Executable: true, |
| 1079 | }, |
| 1080 | Decision: contract.ToolPolicyDecisionPayload{ |
| 1081 | VisibleToOperator: true, |
| 1082 | VisibleToSession: true, |
| 1083 | Callable: true, |
| 1084 | }, |
| 1085 | }, |
| 1086 | { |
| 1087 | Descriptor: contract.ToolDescriptorPayload{ |
| 1088 | ToolID: "mcp__github__create_issue", |
| 1089 | Backend: contract.ToolBackendRefPayload{ |
| 1090 | Kind: toolspkg.BackendMCP, |
| 1091 | MCPServer: "github", |
| 1092 | MCPTool: "create_issue", |
| 1093 | }, |
| 1094 | Description: "Create an issue.", |
| 1095 | InputSchema: json.RawMessage(`{"type":"object"}`), |
| 1096 | Source: contract.ToolSourceRefPayload{ |
| 1097 | Kind: toolspkg.SourceMCP, |
| 1098 | Owner: "github", |
| 1099 | RawServerName: "github", |
| 1100 | RawToolName: "create_issue", |
| 1101 | }, |
| 1102 | Visibility: toolspkg.VisibilityModel, |
| 1103 | Risk: toolspkg.RiskMutating, |
| 1104 | }, |
| 1105 | Availability: contract.ToolAvailabilityPayload{ |
| 1106 | Registered: true, |
| 1107 | Enabled: true, |
| 1108 | Available: false, |
| 1109 | Authorized: false, |
| 1110 | Executable: true, |
| 1111 | ReasonCodes: []toolspkg.ReasonCode{toolspkg.ReasonMCPAuthRequired}, |
| 1112 | }, |
| 1113 | Decision: contract.ToolPolicyDecisionPayload{ |
no outgoing calls
no test coverage detected