Skip to main content

Module tool_types

Module tool_types 

Source
Expand description

Argument types and helper functions for MCP tools.

Extracted from tools.rs to reduce file size.

§Security

All argument types use #[serde(deny_unknown_fields)] to prevent parameter pollution attacks where attackers inject unexpected fields that could bypass validation or trigger unintended behavior.

Structs§

CaptureArgs
Arguments for the capture tool.
ConsolidateArgs
Arguments for the consolidate tool.
ContextTemplateDeleteArgs
Arguments for the context_template_delete tool (legacy).
ContextTemplateGetArgs
Arguments for the context_template_get tool (legacy).
ContextTemplateListArgs
Arguments for the context_template_list tool (legacy).
ContextTemplateRenderArgs
Arguments for the context_template_render tool (legacy).
ContextTemplateSaveArgs
Arguments for the context_template_save tool (legacy).
ContextTemplateVariableArg
Variable definition argument for context template save.
DeleteAllArgs
Arguments for the delete_all tool.
DeleteArgs
Arguments for the delete tool.
EnrichArgs
Arguments for the enrich tool.
EntitiesArgs
Arguments for the entities tool.
EntityMergeArgs
Arguments for the entity merge tool.
ExtractEntitiesArgs
Arguments for the extract entities tool.
GetArgs
Arguments for the get tool.
GetSummaryArgs
Arguments for the get summary tool.
GraphArgs
Arguments for the consolidated subcog_graph tool.
GraphQueryArgs
Arguments for the graph query tool.
GraphVisualizeArgs
Arguments for the graph visualize tool.
GroupsArgs
Arguments for the consolidated subcog_groups tool.
HistoryArgs
Arguments for the history tool.
InitArgs
Arguments for the subcog_init tool.
ListArgs
Arguments for the list tool.
PromptDeleteArgs
Arguments for the prompt.delete tool (legacy).
PromptGetArgs
Arguments for the prompt.get tool (legacy).
PromptListArgs
Arguments for the prompt.list tool (legacy).
PromptRunArgs
Arguments for the prompt.run tool (legacy).
PromptSaveArgs
Arguments for the prompt.save tool (legacy).
PromptVariableArg
Variable definition argument for prompt save.
PromptsArgs
Arguments for the consolidated subcog_prompts tool.
RecallArgs
Arguments for the recall tool.
ReindexArgs
Arguments for the reindex tool.
RelationshipInferArgs
Arguments for the relationship inference tool.
RelationshipsArgs
Arguments for the relationships tool.
RestoreArgs
Arguments for the restore tool.
TemplatesArgs
Arguments for the consolidated subcog_templates tool.
UpdateArgs
Arguments for the update tool.

Functions§

build_filter_description
Builds a human-readable description of the active filters.
default_true 🔒
Default value helper for dry_run (defaults to true for safety).
domain_scope_to_display
Converts a DomainScope to a display string.
find_missing_required_variables
Finds missing required variables.
floor_char_boundary 🔒
Finds the largest valid UTF-8 character boundary at or before index.
format_content_for_detail
Formats content based on detail level.
format_variable_info
Formats a PromptVariable for display.
parse_domain_scope
Parses a domain scope string to DomainScope enum.
parse_entity_type
Parses an entity type string to EntityType enum.
parse_namespace
Parses a namespace string to Namespace enum.
parse_relationship_type
Parses a relationship type string to RelationshipType enum.
parse_search_mode
Parses a search mode string to SearchMode enum.
truncate
Truncates a string to a maximum length, respecting UTF-8 character boundaries.