Skip to content

MCP API Reference

Explore Maguyva's 11 MCP tools, their parameters, and when to use each. Check your connected client's tools/list response for the arguments available to you.

API Overview

#

The tools are organized into 4 categories:

  • Core Search Tools - Advanced search capabilities across your codebase
  • Structural & Graph Tools - AST queries, symbol lookup, and dependency analysis
  • Code Analysis Tools - Deep code analysis and relationship mapping
  • System & Utility Tools - Repository context, tool guidance, and feedback

For tools that accept a repository, use this repository identifier format: "owner/repo:branch". Branch defaults to main if not specified.

Omit repository when your MCP client supplies a request default or the key can access exactly one repository; otherwise pass it explicitly. Use repository_context(action="info", repository="owner/repo") to inspect how a repository resolves.

Repository Parameter Format

#

Use these formats when specifying a repository:

  • With branch: "owner/repo:branch" - e.g., "owner/repository:develop"
  • Default branch: "owner/repo" - uses main branch when no branch is specified "owner/repository"
  • Request or sole-repository default: Omit repository when the MCP client supplies a request default or the key can access exactly one repository; otherwise pass it explicitly

Example prompts:

Ask about a specific repo:  "Search owner/my-repo for authentication middleware"
List accessible repos:      "What repositories can this Maguyva key access?"
Override for one query:     "Search owner/other-repo:develop for auth patterns"

Language Filtering

#

Use language_filter on supported search modes. For text_pattern_search, choose search_scope="content"; for get_task_context, use scope="semantic" without seeds or related context.

  • language_filter="python" - Filter to Python files only
  • language_filter="typescript" - Filter to TypeScript files only
  • Case-sensitive: Use lowercase language names
  • Default: Empty string (no filtering) - returns results from all languages
  • Supported coverage: Language filters work across the full 285+ supported languages and text-based technologies. See compatibility for the full list.
"Find authentication middleware in Python files only"
"Search for database connections in TypeScript"

API reference generated from source on December 4, 2026.

Core Search Tools

#

For a question when unsure which tool fits (callers: dependency_search; a known name: find_symbol). mode=auto routes definition, reference and exact-text queries to the matching search, others to semantic plus text; mode=hybrid, or auto with quality=thorough, runs all four. Exact text in a local checkout: grep/rg.

Parameters:

query Required
Type
str minLength=1
Description
Question or search terms
repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
mode Optional
Type
Literal[auto, hybrid, semantic, text, structural, ast, graph]
Default
auto
Description
Search mode
limit Optional
Type
int minimum=1, maximum=50
Default
10
Description
Results to return (ranked; no cursor)
language_filter Optional
Type
str
Description
Lowercase language name as indexed (python, typescript, ...)
path_filter Optional
Type
str
Description
Repository-relative path prefix
boost_by_importance Optional
Type
bool
Default
false
Description
Re-rank by graph centrality (architecture tours)
branch Optional
Type
str
Description
Branch override
quality Optional
Type
Literal[quick, balanced, thorough]
Default
balanced
Description
Search quality preset
include_content Optional
Type
bool
Default
true
Description
Include content
explain_routing Optional
Type
bool
Default
false
Description
Explain the routing
importance_weight Optional
Type
float minimum=0, maximum=1
Default
0.3
Description
Importance boost weight (0-1)
orphans Optional
Type
bool
Default
false
Description
Also list a few orphan candidates in scope (unrelated to the query)
include_community_context Optional
Type
bool
Default
false
Description
Attach same-community symbols to the top results
community_depth Optional
Type
int minimum=1, maximum=3
Default
1
Description
How many top results get community_members
graph_view Optional
Type
Literal[dependency, type, data_flow, control_flow]
Default
dependency
Description
Graph view for metrics
seed_symbol_ids Optional
Type
list[str] maxItems=20
Description
Symbol ids central to the task: re-rank by graph proximity
seed_file_paths Optional
Type
list[str] maxItems=10
Description
Indexed paths you have open: re-rank by path proximity

Best For:

  • Index-wide or cold-start exploration when the right tool is unclear
  • Multi-modal fused ranking across semantic, text, structural, and graph

Not Recommended For:

  • A known symbol name — use find_symbol directly
  • A known path on disk — use local Read/Grep first

Find code by meaning, not exact text: conceptual queries like "retry logic" when you don't know the keyword or symbol name. Returns ranked chunks. Exact text in a local checkout: grep/rg.

Parameters:

query Required
Type
str minLength=1
Description
What the code does, in words
repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
limit Optional
Type
int minimum=1, maximum=50
Default
5
Description
Results to return (ranked; no cursor)
similarity_threshold Optional
Type
float minimum=0, maximum=1
Default
0.6
Description
Minimum similarity (0-1)
language_filter Optional
Type
str
Description
Lowercase language name as indexed (python, typescript, ...)
path_filter Optional
Type
str
Description
Repository-relative path prefix
boost_by_importance Optional
Type
bool
Default
false
Description
Re-rank by graph importance
branch Optional
Type
str
Description
Branch override
include_content Optional
Type
bool
Default
true
Description
Include chunk text
graph_view Optional
Type
Literal[dependency, type, data_flow, control_flow]
Default
dependency
Description
Graph view for metrics

Best For:

  • Conceptual queries ("how does auth work?", "caching strategy")
  • Cross-package similarity search

Not Recommended For:

  • A known symbol name — use find_symbol instead
  • Exact strings or error messages — use text_pattern_search

Search indexed text. exact (default)/word/regex: row per file; fuzzy: chunks. Exact text in a local checkout: grep/rg.

Parameters:

query Required
Type
str minLength=1
Description
Text, regex (max 200 chars) or file name/glob
repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
mode Optional
Type
Literal[fuzzy, exact, word, regex]
Default
exact
Description
exact: literal; word: whole word; regex: PostgreSQL per line, \b = word boundary (guidance "regex"); fuzzy: similar. Case ignored unless case_sensitive
search_scope Optional
Type
Literal[content, symbols, files]
Default
content
Description
files: path name or glob
limit Optional
Type
int minimum=1, maximum=50
Default
5
Description
Page size (a cursor keeps its own)
offset Optional
Type
int minimum=0
Description
Deprecated: use cursor
cursor Optional
Type
str maxLength=200
Description
pagination.next_cursor, with the other arguments unchanged
language_filter Optional
Type
str
Description
Lowercase language name as indexed (python, typescript, ...)
path_filter Optional
Type
str
Description
Repository-relative path prefix
exclude_paths Optional
Type
list[str] maxItems=16
Description
Prefixes to leave out
exclude_test_paths Optional
Type
bool
Default
false
Description
Skip test/fixture/vendor/example paths
case_sensitive Optional
Type
bool
Default
false
Description
Match case
branch Optional
Type
str
Description
Branch override
fuzzy_algorithm Optional
Type
Literal[hybrid, trigram, levenshtein]
Default
hybrid
Description
Fuzzy only
threshold Optional
Type
float minimum=0, maximum=1
Default
0.05
Description
Fuzzy floor
semantic_fallback Optional
Type
bool
Default
false
Description
Semantic search if page 1 is empty
match_line_offset Optional
Type
int minimum=0
Description
From match_lines_next

Best For:

  • Exact strings, error messages, and regex
  • Trigram fuzzy matching for near-miss text

Not Recommended For:

  • A known path on disk — prefer local Grep
  • Conceptual queries — use semantic_search

Structural & Graph Tools

#

Find code by AST shape (not text). Start with preset=functions|classes|methods|imports|variables (or pattern=); narrow with name_pattern, node_type, decorator, base_class, has_modifier, parent_type. Path/ltree/call filters need advanced=true. A Markdown path_filter answers its heading outline.

Parameters:

repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
preset Optional
Type
Literal[functions, classes, methods, imports, variables]
Description
Definitions of this kind, in every language
pattern Optional
Type
str
Description
Free-form, e.g. 'def foo(' (fills node_type and name_pattern)
name_pattern Optional
Type
str maxLength=256
Description
Shell wildcard, POSIX regex or plain text (fuzzy; metadata.name_match.no_exact_match)
node_type Optional
Type
str
Description
Raw AST node type (function_definition, ...)
decorator Optional
Type
str
Description
Decorator name
base_class Optional
Type
str
Description
Base class name
language_filter Optional
Type
str
Description
Lowercase language name as indexed (python, typescript, ...)
limit Optional
Type
int minimum=1, maximum=50
Default
20
Description
Page size (a cursor keeps its own)
offset Optional
Type
int minimum=0
Description
Deprecated: use cursor
cursor Optional
Type
str maxLength=200
Description
pagination.next_cursor, with the other arguments unchanged
path_filter Optional
Type
str
Description
Repository-relative path prefix
branch Optional
Type
str
Description
Branch override
query_type Optional
Type
Literal[node_type, name_pattern, parent_child]
Description
Explicit query type
parent_type Optional
Type
str
Description
Parent AST node type
relationship Optional
Type
Literal[parent, ancestor]
Default
parent
Description
parent_type match: direct parent or any ancestor
has_modifier Optional
Type
str
Description
Modifier word (export, async, static, pub, ...)
advanced Optional
Type
bool
Default
false
Description
Opt in to the advanced filters below
callee_text Optional
Type
str
Description
Advanced (advanced=true): callee text
callee_name Optional
Type
str
Description
Advanced (advanced=true): callee name
field_role Optional
Type
str
Description
Advanced (advanced=true): field in the parent
ltree_ancestor Optional
Type
str
Description
Advanced (advanced=true): ltree ancestor
ltree_descendant Optional
Type
str
Description
Advanced (advanced=true): ltree descendant
definition_name Optional
Type
str
Description
Advanced (advanced=true): inside this definition (ILIKE)
min_depth Optional
Type
int
Description
Advanced (advanced=true): min AST depth
max_depth Optional
Type
int
Description
Advanced (advanced=true): max AST depth

Best For:

  • AST-level structure: classes, decorators, function/method presets
  • Finding code by shape rather than by text

Not Recommended For:

  • Plain-text or conceptual queries — use semantic_search or intelligent_search

Who calls X / what breaks if it changes: {"repository":"owner/repo","target":"X","analysis_type":"impact"} (direct callers, call-site lines in production_callers; add head_commit so complete can be true). Review a diff: {"repository":"owner/repo","patch":"<unified diff>"} (left-out files: omitted_paths). Without analysis_type the walk is "dependencies" (what X uses). Names match exactly, else resolution="no_match" with suggestions. Several symbols in one call: targets with verify_after_edit=true. Also centrality and orphans.

Parameters:

repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
query Optional
Type
str
Description
Alias of target
target Optional
Type
str
Description
Symbol name or indexed file path
symbol_id Optional
Type
UUID
Description
Pin one same-named candidate by id (from find_symbol or alternates)
changed_paths Optional
Type
list[str] maxItems=50
Description
Changed files: impact of their top-level definitions (patch is line-level)
patch Optional
Type
str maxLength=500000
Description
Unified diff against the indexed commit. Send it whole or list left-out files in omitted_paths; a hunk shorter than its header is reported as cut
omitted_paths Optional
Type
list[str] maxItems=50
Description
Files or directories left out of a patch or changed_paths review: their callers are not judged
head_commit Optional
Type
str pattern=^[0-9a-fA-F]{7,64}$
Description
git rev-parse HEAD (or the patch's base commit): complete=true needs the index at it
analysis_type Optional
Type
Literal[centrality, dependencies, dependents, impact, orphans]
Default
dependencies
Description
impact: direct callers; dependents: deeper incoming walk; dependencies: what the target uses; centrality/orphans: no target
depth Optional
Type
Literal[shallow, balanced, deep]
Description
Default balanced; shallow for impact, diff and verify
limit Optional
Type
int minimum=1, maximum=50
Default
20
Description
Page size (a cursor keeps its own)
offset Optional
Type
int minimum=0
Description
Deprecated: use cursor
cursor Optional
Type
str maxLength=200
Description
pagination.next_cursor, with the other arguments unchanged
path_filter Optional
Type
str
Description
Path prefix for resolving the target symbol; returned relationships may cross outside it
language_filter Optional
Type
str
Description
Lowercase language name as indexed (python, typescript, ...)
direction Optional
Type
Literal[outgoing, incoming, both]
Description
Overrides the analysis_type direction
relationship_types Optional
Type
list[str]
Description
Edge types (CALL, IMPORT, INHERITS_FROM, ...); overrides graph_view
exclude_test_paths Optional
Type
bool
Default
true
Description
Skip test, fixture, vendor and example paths
exclude_generated_paths Optional
Type
bool
Default
false
Description
Skip generated, build, coverage, cache, source-map and minified paths
include_module_symbols Optional
Type
bool
Description
Keep rows whose other end is a file's __module__ (default: true only for a file target)
include_isolated Optional
Type
bool
Description
Orphans: also symbols with no graph edges
exclude_exported Optional
Type
bool
Default
false
Description
Orphans: drop exported (public API) symbols
branch Optional
Type
str
Description
Branch override
per_hop_limit Optional
Type
int minimum=1, maximum=300
Description
Edges per hop (1-300); raise it when direct_truncation is reported
include_metrics Optional
Type
bool
Default
false
Description
Add graph metrics and refactor_risk to rows
metrics_detail Optional
Type
Literal[summary, full]
Default
summary
Description
Metric set when include_metrics=true
include_edge_metadata Optional
Type
bool
Default
false
Description
Add raw edge metadata (large)
symbol_types Optional
Type
list[str]
Description
Symbol kinds to keep (function, class, ...)
exact_match Optional
Type
bool
Default
true
Description
false walks the closest name instead of answering resolution="no_match"
find_similar_patterns Optional
Type
bool
Default
false
Description
Find similar usage patterns
min_centrality Optional
Type
float minimum=0
Default
0
Description
Minimum PageRank of walked symbols
graph_view Optional
Type
Literal[dependency, type, data_flow, control_flow]
Description
Edge family walked and ranked; default dependency, plus data_flow for a constant or variable
verify_after_edit Optional
Type
bool
Default
false
Description
Dependents of several roots (targets, changed_paths) in one shallow call; reads the index
targets Optional
Type
list[str] maxItems=15
Description
Symbol names or ids for verify_after_edit, edited or not

Best For:

  • Blast-radius / impact analysis before editing a shared symbol
  • Check the blast radius of a PR or diff via changed_paths or patch
  • Post-edit verification via verify_after_edit

Not Recommended For:

  • Simple text or symbol lookups — use text_pattern_search or find_symbol

Code Analysis Tools

#

find_symbol Stable

Where a function, class, or variable is defined and used, when you know the name (e.g. "getCurrentUser"): same-named definitions come back apart. Rows give signature and line span, never the body (read it with get_file). Optionally references and importance metrics. Exact text in a local checkout: grep/rg.

Parameters:

symbol_name Optional
Type
str
Description
Name to find; omit to browse by metrics
repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
scope Optional
Type
Literal[definitions, references, both]
Default
both
Description
references needs symbol_name
limit Optional
Type
int minimum=1, maximum=50
Default
15
Description
Page size (a cursor keeps its own)
offset Optional
Type
int minimum=0
Description
Deprecated: use cursor
cursor Optional
Type
str maxLength=200
Description
pagination.next_cursor, with the other arguments unchanged
find_similar Optional
Type
bool
Default
false
Description
Include similar names
include_metrics Optional
Type
bool
Default
false
Description
Include centrality metrics
metrics_detail Optional
Type
Literal[summary, full]
Default
summary
Description
Metric set when include_metrics=true
path_filter Optional
Type
str
Description
Repository-relative path prefix
branch Optional
Type
str
Description
Branch override
symbol_type Optional
Type
str minLength=1
Description
Indexed symbol kind (function, class, struct, ...; varies by language)
high_impact Optional
Type
bool
Default
false
Description
Browse the most important symbols (omit symbol_name; see high_impact_mode)
high_impact_mode Optional
Type
Literal[popularity, risk]
Default
popularity
Description
high_impact ranking: PageRank popularity, or risk (articulation points)
in_cycle Optional
Type
bool
Default
false
Description
Only symbols in a dependency cycle
exclude_test_paths Optional
Type
bool
Default
true
Description
Metric browse: skip test, fixture, vendor and example paths
reference_views Optional
Type
list[Literal[dependency, type, data_flow, control_flow, all]] minItems=1, maxItems=5
Description
Graph views counted as references (default ["dependency","type"])
relationship_types Optional
Type
list[str]
Description
Reference edge types (CALL, IMPORT, READS, ...); overrides reference_views

Best For:

  • Pinning a known symbol's definition, references, and graph metrics
  • Browsing by centrality, high_impact, or in_cycle when symbol_name is omitted

Not Recommended For:

  • Conceptual or unknown-area queries — use intelligent_search or semantic_search

analyze_dependencies Stable

Older form of dependency_search's incoming walk: prefer dependency_search with analysis_type="impact". Returns graph and connection_summary (root edges before filtering; legacy incoming_production/outgoing_production include tests). target must name a symbol or indexed file exactly, else resolution="no_match" with suggestions.

Parameters:

repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
target Required
Type
str minLength=1
Description
Exact symbol name or indexed file path
symbol_id Optional
Type
UUID
Description
Pin one same-named candidate by id
depth Optional
Type
Literal[shallow, balanced, deep]
Default
balanced
Description
Walk depth
limit Optional
Type
int minimum=1, maximum=50
Default
10
Description
Page size (a cursor keeps its own)
offset Optional
Type
int minimum=0
Description
Deprecated: use cursor
cursor Optional
Type
str maxLength=200
Description
pagination.next_cursor, with the other arguments unchanged
direction Optional
Type
Literal[incoming, outgoing, both]
Default
incoming
Description
Traversal direction
relationship_types Optional
Type
list[str]
Description
Edge types (CALL, IMPORT, INHERITS_FROM, ...); overrides graph_view
graph_view Optional
Type
Literal[dependency, type, data_flow, control_flow]
Description
Edge family walked and ranked; default dependency, plus data_flow for a constant or variable
path_filter Optional
Type
str
Description
Path prefix for resolving the target symbol; returned relationships may cross outside it
language_filter Optional
Type
str
Description
Lowercase language name as indexed (python, typescript, ...)
branch Optional
Type
str
Description
Branch override
per_hop_limit Optional
Type
int minimum=1, maximum=300
Description
Edges per hop (1-300)
include_metrics Optional
Type
bool
Default
false
Description
Add graph metrics and refactor_risk
metrics_detail Optional
Type
Literal[summary, full]
Default
summary
Description
Metric set when include_metrics=true
include_edge_metadata Optional
Type
bool
Default
false
Description
Add raw edge metadata (large)
exclude_test_paths Optional
Type
bool
Default
true
Description
Skip test, fixture, vendor and example paths
include_module_symbols Optional
Type
bool
Description
Keep rows whose other end is a file's __module__ (default: true only for a file target)
head_commit Optional
Type
str pattern=^[0-9a-fA-F]{7,64}$
Description
git rev-parse HEAD (or the patch's base commit): complete=true needs the index at it

Best For:

  • Multi-hop impact analysis when you need graph and connection_summary response fields

Not Recommended For:

  • General impact analysis — prefer dependency_search for flexible traversal and multi-root checks

get_task_context Stable

Starting work in an unfamiliar area? Describe the task (e.g. "fix the billing webhook") and get one bounded bundle of relevant files, code, symbols and dependencies. For more, use the specialized tool for a layer.

Parameters:

task_description Required
Type
str minLength=1
Description
The task, in prose
repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
limit Optional
Type
int minimum=1, maximum=50
Default
15
Description
Results per layer
scope Optional
Type
Literal[semantic, symbols, dependencies, all]
Default
all
Description
Which context layers to include
language_filter Optional
Type
str
Description
Lowercase language name; only with scope="semantic" and no seeds
path_filter Optional
Type
str
Description
Repository-relative path prefix
branch Optional
Type
str
Description
Branch override
include_related_context Optional
Type
bool
Default
false
Description
Add context from adjacent symbols
seed_symbol_ids Optional
Type
list[str] maxItems=20
Description
Symbol ids to start from
seed_file_paths Optional
Type
list[str] maxItems=10
Description
Indexed paths you have open or edited

Best For:

  • Task-aware context blending seeded files with semantic, symbol, and dependency layers

Not Recommended For:

  • Single-tool lookups where a more specific tool already answers the question

get_file Stable

Read a file of an indexed repository by path; prefer local tools for files on disk. Each content line is N:text (drop N: for exact bytes); an unnumbered [truncated] last line marks a cut. Resume with metadata.next_line_start and next_character_start.

Parameters:

file_path Required
Type
str
Description
Repository-relative path
repository Optional
Type
str
Description
owner/repo[:branch]; pass it on every call
line_start Optional
Type
int minimum=1
Description
First line (1-based)
line_end Optional
Type
int minimum=1
Description
Last line (inclusive)
character_start Optional
Type
int minimum=0
Default
0
Description
UTF-16 offset in line_start (metadata.next_character_start)
branch Optional
Type
str
Description
Branch override
max_tokens Optional
Type
int minimum=1, maximum=50000
Default
5000
Description
Approximate content budget (4 UTF-16 units a token)
include_metadata Optional
Type
bool
Default
true
Description
Include file metadata (continuation always comes)

Best For:

  • Remote or indexed file snapshots (line ranges, token limits)

Not Recommended For:

  • A path already on local disk — use the local Read tool

System & Utility Tools

#

repository_context Stable

List the repositories you can search (action "list"), or how fresh one's index is (action "info": branch, indexed commit, freshness, indexing activity, exclusions).

Parameters:

action Required
Type
Literal[list, info]
Description
list repositories, or info on one
repository Optional
Type
str
Description
info: owner/repo[:branch]
branch Optional
Type
str
Description
info: branch override
pattern Optional
Type
str
Description
list: name substring
include_statistics Optional
Type
bool
Default
false
Description
info: add indexed-data counts (slower)
limit Optional
Type
int minimum=1, maximum=50
Default
20
Description
Page size (a cursor keeps its own)
offset Optional
Type
int minimum=0
Description
Deprecated: use cursor
cursor Optional
Type
str maxLength=200
Description
pagination.next_cursor, with the other arguments unchanged

Best For:

  • Listing accessible repositories
  • Resolving repository identity, branch, and HEAD-vs-index freshness

Not Recommended For:

  • Namespace-wide statistics by default — pass include_statistics=true explicitly, since it can be slower than resolution

ask_maguyva Stable

Usage recipes for every Maguyva tool: {"operation":"guidance","query":"<tool name>"} returns a worked call and where the answer is; query "tool_selection" picks a tool; omit query for all topics. Also stores bug reports and feature requests for Maguyva's maintainers (never include secrets). evaluate is legacy; prefer local compute.

Parameters:

operation Required
Type
Literal[guidance, report_bug, request_feature, evaluate]
Description
guidance: tool help; report_bug, request_feature: feedback; evaluate: legacy (prefer local compute)
query Optional
Type
str maxLength=500
Description
Guidance topic (a tool name, tool_selection, ...) or expression string for evaluate
description Optional
Type
str maxLength=4000, minLength=1
Description
Feedback text for report_bug or request_feature (no secrets)
related_tool Optional
Type
Literal[ask_maguyva, get_file, repository_context, find_symbol, structural_search, dependency_search, analyze_dependencies, semantic_search, text_pattern_search, intelligent_search, get_task_context]
Description
Tool the feedback is about

Best For:

  • Tool guidance (operation="guidance")
  • Durable bug reports and feature requests for Maguyva's maintainers

Not Recommended For:

  • Math/hash/string computation — prefer local compute or host tools

Best Practices

#
  1. Use Explicit Overrides Deliberately: Omit the repository when your MCP client supplies a request default or the key can access exactly one repository; otherwise pass it explicitly.
  2. Choose the Right Search Mode: Use intelligent_search with mode="auto" for most cases. Specify a mode when you know exactly what you need.
  3. Leverage Language Filters: Use language_filter to narrow results and improve performance.
  4. GraphRAG Boosting: GraphRAG importance boosting is off by default for semantic search (boost_by_importance=false) to keep ranking agent-safe. Pass boost_by_importance=true to enable centrality-aware re-ranking for architecture tours.
  5. Repository Matching Is Case-Insensitive, Not Fuzzy: repository_context matches repository names case-insensitively — it does not correct typos. When the identity served differs from the one requested, metadata.resolution_reason reports "defaulted" (no branch was requested) or "fallback" (the requested branch or repository is unavailable). It is omitted when the request matched exactly.
  6. Combine Tools: Use multiple API methods together for comprehensive analysis.
  7. Handle Large Results: Use limit and tool-specific paging controls (for example line_start/line_end in get_file).
  8. Use ask_maguyva for Tool Guidance: Call ask_maguyva with operation="guidance" and query="tool_selection" for tool-selection advice and examples. Use your local tools for calculations and string transformations.
  9. Verify Impact Before and After Editing: Before editing a shared symbol, call dependency_search with analysis_type="impact" (or pass changed_paths for PR/diff impact) to see its blast radius. After editing, set verify_after_edit=true with targets and/or changed_paths for a compact re-check of the indexed graph. This does not read uncommitted local changes or replace local tests. Check indexed_commit_sha and index freshness before treating results as evidence for a new revision.

Performance Characteristics

#
Operation Performance notes
Semantic search Includes query embedding generation and vector retrieval. Latency depends on both operations.
Text search For fuzzy content search, deeper pages fetch more candidates. Narrow the query with path_filter and language_filter.
Structural search Queries indexed AST nodes. Use a specific preset or pattern and limit the result count.
Dependency search Cost scales with depth — prefer depth="shallow" unless you need multi-hop context; per_hop_limit bounds fan-out
File retrieval Read the range you need with line_start/line_end or max_tokens, and use the returned continuation metadata for truncated content.
Repository context Repository resolution runs for each tool call. Pass repository explicitly when you need a specific repository.
ask_maguyva (guidance / evaluate) Runs in the MCP server without querying the repository index.

Error Handling

#

Tool responses contain common status fields and tool-specific payload fields at the top level. Searches return results; get_file returns content. Common fields include:

  • status: String — "success" or "error". Degraded-match and freshness signals live in their own fields: metadata.resolution_reason under metadata, and top-level index_freshness.status on the repository_context info action.
  • timing_ms: Elapsed tool execution time in milliseconds
  • applied_filters: Effective request parameters recorded for the operation
  • error: Error message string when status is "error"; it may include recovery guidance.
  • metadata: Additional information about the operation (routing, caching, parameter adjustments)
  • pagination: Present on cursor-paged collection responses — includes has_more and next_cursor. Ranked search windows are bounded top-K results, not exhaustive paginated collections.

Check the status field before processing a tool payload — its values are "success" or "error". Also handle MCP/JSON-RPC transport and request-validation errors, which may occur before a tool payload is produced. For degraded-match or freshness signals, read the dedicated field instead: metadata.resolution_reason under metadata, or top-level index_freshness.status on the repository_context info action (known/partial/unknown/unavailable).

Getting Started

#
  1. Configure MCP Client: Point your MCP client to the Maguyva server endpoint
  2. Confirm Repository Access: Use repository_context with list or info to inspect repositories available to the API key
  3. Start Searching: Begin with intelligent_search and explore specialized tools as needed
  4. Combine Tools: Use multiple tools together for comprehensive code analysis

For detailed integration instructions, see the installation guide.