Coverage for src/qdrant_loader_mcp_server/mcp/schemas/expand_document.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-09-08 06:06 +0000

1from typing import Any 

2 

3 

4def get_expand_document_tool_schema() -> dict[str, Any]: 

5 return { 

6 "name": "expand_document", 

7 "description": "Retrieve full document content by document ID for lazy loading", 

8 "annotations": {"read-only": True}, 

9 "inputSchema": { 

10 "type": "object", 

11 "properties": { 

12 "document_id": { 

13 "type": "string", 

14 "description": "The ID of the document to expand and retrieve full content", 

15 }, 

16 "include_metadata": { 

17 "type": "boolean", 

18 "description": "Include detailed metadata (optional, default: true)", 

19 "default": True, 

20 }, 

21 "include_hierarchy": { 

22 "type": "boolean", 

23 "description": "Include hierarchy information for Confluence documents (optional, default: true)", 

24 "default": True, 

25 }, 

26 "include_attachments": { 

27 "type": "boolean", 

28 "description": "Include attachment information if available (optional, default: true)", 

29 "default": True, 

30 }, 

31 }, 

32 "required": ["document_id"], 

33 "additionalProperties": False, 

34 }, 

35 "outputSchema": { 

36 "type": "object", 

37 "properties": { 

38 "results": { 

39 "type": "array", 

40 "items": { 

41 "type": "object", 

42 "properties": { 

43 "score": {"type": "number"}, 

44 "title": {"type": "string"}, 

45 "content": {"type": "string"}, 

46 "source_type": {"type": "string"}, 

47 "metadata": { 

48 "type": "object", 

49 "properties": { 

50 "file_path": {"type": "string"}, 

51 "project_id": {"type": "string"}, 

52 "created_at": {"type": "string"}, 

53 "last_modified": {"type": "string"}, 

54 }, 

55 }, 

56 }, 

57 }, 

58 }, 

59 "total_found": {"type": "integer"}, 

60 "query_context": { 

61 "type": "object", 

62 "properties": { 

63 "original_query": {"type": "string"}, 

64 "source_types_filtered": { 

65 "type": "array", 

66 "items": {"type": "string"}, 

67 }, 

68 "project_ids_filtered": { 

69 "type": "array", 

70 "items": {"type": "string"}, 

71 }, 

72 }, 

73 }, 

74 }, 

75 }, 

76 }