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§
- Capture
Args - Arguments for the capture tool.
- Consolidate
Args - Arguments for the consolidate tool.
- Context
Template Delete Args - Arguments for the
context_template_deletetool (legacy). - Context
Template GetArgs - Arguments for the
context_template_gettool (legacy). - Context
Template List Args - Arguments for the
context_template_listtool (legacy). - Context
Template Render Args - Arguments for the
context_template_rendertool (legacy). - Context
Template Save Args - Arguments for the
context_template_savetool (legacy). - Context
Template Variable Arg - Variable definition argument for context template save.
- Delete
AllArgs - Arguments for the
delete_alltool. - Delete
Args - Arguments for the delete tool.
- Enrich
Args - Arguments for the enrich tool.
- Entities
Args - Arguments for the entities tool.
- Entity
Merge Args - Arguments for the entity merge tool.
- Extract
Entities Args - Arguments for the extract entities tool.
- GetArgs
- Arguments for the get tool.
- GetSummary
Args - Arguments for the get summary tool.
- Graph
Args - Arguments for the consolidated
subcog_graphtool. - Graph
Query Args - Arguments for the graph query tool.
- Graph
Visualize Args - Arguments for the graph visualize tool.
- Groups
Args - Arguments for the consolidated
subcog_groupstool. - History
Args - Arguments for the history tool.
- Init
Args - Arguments for the
subcog_inittool. - List
Args - Arguments for the list tool.
- Prompt
Delete Args - Arguments for the prompt.delete tool (legacy).
- Prompt
GetArgs - Arguments for the prompt.get tool (legacy).
- Prompt
List Args - Arguments for the prompt.list tool (legacy).
- Prompt
RunArgs - Arguments for the prompt.run tool (legacy).
- Prompt
Save Args - Arguments for the prompt.save tool (legacy).
- Prompt
Variable Arg - Variable definition argument for prompt save.
- Prompts
Args - Arguments for the consolidated
subcog_promptstool. - Recall
Args - Arguments for the recall tool.
- Reindex
Args - Arguments for the reindex tool.
- Relationship
Infer Args - Arguments for the relationship inference tool.
- Relationships
Args - Arguments for the relationships tool.
- Restore
Args - Arguments for the restore tool.
- Templates
Args - Arguments for the consolidated
subcog_templatestool. - Update
Args - 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
DomainScopeto 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
PromptVariablefor display. - parse_
domain_ scope - Parses a domain scope string to
DomainScopeenum. - parse_
entity_ type - Parses an entity type string to
EntityTypeenum. - parse_
namespace - Parses a namespace string to Namespace enum.
- parse_
relationship_ type - Parses a relationship type string to
RelationshipTypeenum. - parse_
search_ mode - Parses a search mode string to
SearchModeenum. - truncate
- Truncates a string to a maximum length, respecting UTF-8 character boundaries.