Tools
The evidence tools search, read, and cite your documents. The task and decision tools record and read an agent's work. The built-in agent and the MCP server expose both groups under the names below. The graph tools read and change the graph, and only the MCP server offers them. Python exposes the evidence operations as functions in agrag.evidence.
Tool names
The Python functions, the built-in agent, and the MCP server use the same name for each tool. ConversationHistory provides the task methods, and DecisionTraces provides the decision methods. A parameter has the same name on every surface, except where the agent or the server supplies the value itself.
Evidence tools
| Operation | Python function | Tool name |
|---|---|---|
| Passage search | search_evidence | search_evidence |
| Fetch exact text | fetch_evidence | fetch_evidence |
| Document tree navigation | navigate_document_tree | navigate_document_tree |
| Entity search | entity_search | entity_search |
| Relationship exploration | explore_relationships | explore_relationships |
| Theme search | search_themes | search_themes |
| Citation check | check_citations | check_citations |
| Numbered references | render_citations | none. The agent formats its own answer, and fetch_evidence on the MCP server returns citation_markdown. |
| Source status | source_status | none |
Task and decision tools
| Operation | Tool name | Offered by |
|---|---|---|
| Read a task | get_task | Agent and MCP server |
| List task events | list_events | Agent and MCP server |
| Read one event | fetch_event | Agent and MCP server |
| List task steps | list_steps | Agent and MCP server |
| Search decisions | search_decisions | Agent and MCP server |
| List conflicting decisions | list_conflicts | MCP server only |
| Read a decision | get_decision | Agent and MCP server |
| List a decision's support history | list_support_history | Agent and MCP server |
| List a task's decisions | list_decisions | Agent and MCP server |
| List decisions that need review | list_decisions_for_review | Agent and MCP server |
| Create a task | create_task | MCP server only. A run creates its task. |
| Record an event | record_event | MCP server only. The run records events. |
| Set a step | set_step | Agent and MCP server |
| Record a decision | record_decision | Agent and MCP server |
| Supersede a decision | supersede_decision | Agent and MCP server |
| Reaffirm a decision | reaffirm_decision | Agent and MCP server |
| Continue review propagation | continue_decision_review | Agent and MCP server |
| Reject a decision | reject_decision | MCP server only. The agent cannot reject a human decision. |
The agent works on one task in one project, and the caller fixes both. Its task tools therefore take no task_name, except fetch_event and list_events, and its write tools take no request_id. On the MCP server, fetch_evidence takes max_chars, and set_step takes result_event_sequence, the sequence number of an event that the client recorded. The agent passes result, the text of the result, to set_step and the run records the event.
MCP evidence tools accept attribute_to_task to record which documents a read delivered to an existing task. The agent records reads against the task it was started with.
Graph tool names and library methods
Four MCP graph tools have a different name from the Python method they call. The Python method does the same work.
| MCP tool | Python method | Arguments |
|---|---|---|
apply_communities | Graph.detect_communities | apply=True |
consolidate_entities | Graph.consolidate | apply=True after the dry run |
reevaluate_matches | Graph.reevaluate | entity_ids |
prune_vectors | Graph.repair_vectors | prune=True |
Tool access
| Tool group | Built-in agent | MCP server |
|---|---|---|
| Evidence tools | On. The scope argument of build_agent sets the readable documents. | On. MCP_SCOPE_DOCUMENT_KEYS sets the readable documents. Each entry is an exact key, a folder prefix ending in /, or * for all documents. |
| Task and decision read tools | On. build_agent sets the project and the agent. | On. MCP_PROJECT_ID and MCP_AGENT_ID default to default. |
| Task and decision write tools | On. | Write calls are refused when MCP_READ_ONLY is true. |
Task and decision destructive tools (reject_decision, redact_event, delete_task) | Unavailable. | Require confirmation. |
| Graph read tools | Unavailable. | On. Reads are limited to MCP_SCOPE_DOCUMENT_KEYS. |
| Graph write tools | Unavailable. | Refused when MCP_READ_ONLY is true. Schema and whole-graph writes need scope *. Each runs as a job. |
| Graph destructive tools | Unavailable. | Require confirmation. Some run as jobs. The tools table marks them. |
The MCP server registers every tool. A tool call cannot widen the document scope or change the project. Run the MCP server explains confirmation and job status.
MCP server tools
The On the agent column shows which MCP tools the built-in agent also offers. The server registers every tool for every client, and tools/list does not change between connections.
| Tool | Group | On the agent | Notes |
|---|---|---|---|
search_evidence | Evidence | Yes | Passage search. |
fetch_evidence | Evidence | Yes | Takes max_chars. |
check_citations | Evidence | Yes | Compares against the ids this server session fetched. |
entity_search | Evidence | Yes | |
explore_relationships | Evidence | Yes | |
navigate_document_tree | Evidence | Yes | |
search_themes | Evidence | Yes | |
get_schema | Schema read | No | Returns the stored schema in canonical JSON, JSON Schema, JSON-LD, or SHACL format. |
preview_schema_source | Schema read | No | Checks an inline or built-in schema. |
list_pending_work | Client work | No, MCP only | Takes kind and limit. Returns instructions, an output schema, schema types, and items with an id and content version. The kinds are extraction, match_verification, description_merge, and community_report. Needs the * document scope. |
submit_work_results | Client work | No, MCP only | Takes kind and results. Saves each valid extraction result and returns invalid ones in errors. Match, description and community results are checked as one batch. Needs the * document scope. |
get_task | Task read | Yes | Takes task_name on MCP. |
list_events | Task read | Yes | |
fetch_event | Task read | Yes | |
list_steps | Task read | Yes | |
search_decisions | Decision read | Yes | The agent leaves out decisions that need review or have non-current supports. |
list_conflicts | Decision read | No, MCP only | |
get_decision | Decision read | Yes | |
list_support_history | Decision read | Yes | |
list_decisions | Decision read | Yes | Takes task_name on MCP. The agent takes include_history instead. |
list_decisions_for_review | Decision read | Yes | On MCP, task_name is optional. |
create_task | Task write | No, MCP only | |
record_event | Task write | No, MCP only | |
set_step | Task write | Yes | Takes result_event_sequence on MCP. |
record_decision | Decision write | Yes | |
supersede_decision | Decision write | Yes | |
reaffirm_decision | Decision write | Yes | |
continue_decision_review | Decision write | Yes | |
reject_decision | Decision destructive | No, MCP only | Requires confirmation. The agent cannot reject a human decision. |
redact_event | Task destructive | No, MCP only | Removes event content and requires confirmation. |
delete_task | Task destructive | No, MCP only | Deletes task history and requires confirmation. |
list_documents | Graph read | No, MCP only | Lists current documents in scope, or returns the status of one key. Replies carry embedding. |
list_candidates | Graph read | No, MCP only | Groups candidates after applying document scope. |
list_matches | Graph read | No, MCP only | Lists committed matches or keep apart blocks with in-scope endpoints. |
build_candidate_patch | Graph read | No, MCP only | Builds a patch from approved candidates in scope without writing. |
preview_communities | Graph read | No, MCP only | Dry-runs community detection without writing or calling a model. |
get_job | Job read | No, MCP only | Reports status, progress and document runs. wait_seconds holds the call open for up to 20 seconds. Larger values wait 20 seconds, and negative values wait for nothing. |
cancel_job | Job write | No, MCP only | Requests cancellation at a safe point. |
guide | Guidance | No, MCP only | Returns a workflow guide for a topic, or the index with no topic. Read-only. |
apply_schema_additions | Graph write | No, MCP only | Publishes the first schema on an empty graph, or adds types and properties to a stored one. Never removes or tightens. Runs as a job. Needs scope *. |
add_document | Graph write | No, MCP only | Adds or changes one text document under a key. On a graph with no schema, publishes the default schema first. Runs as a job. |
add_file | Graph write | No, MCP only | Adds one UTF-8 file from the working directory or MCP_INGEST_ROOTS. On a graph with no schema, publishes the default schema first. Runs as a job. |
update_document | Graph write | No, MCP only | Replaces the text of a stored document. Runs as a job. |
repair_vectors | Graph write | No, MCP only | Re-embeds missing committed vectors. Runs as a job. Needs scope * and an external vector store. |
delete_document | Graph destructive | No, MCP only | Removes a document. purge also deletes every stored version. Asks for confirmation. Runs as a job. |
replace_schema | Graph destructive | No, MCP only | Replaces the stored schema, including removals. Asks for confirmation. Runs as a job. |
apply_schema_patch | Graph destructive | No, MCP only | Publishes an approved schema patch and converts its candidates. Asks for confirmation. Runs as a job. |
review_candidates | Graph destructive | No, MCP only | Approves candidate groups, or rejects them. Asks for confirmation. Runs as a job. Requires scope *. |
convert_candidates | Graph destructive | No, MCP only | Converts approved candidates under a patch. Asks for confirmation. Runs as a job. |
prune_candidates | Graph destructive | No, MCP only | Deletes candidate groups that match a criterion. The first call is a dry run. Asks for confirmation. Runs as a job. |
deactivate_match | Graph destructive | No, MCP only | Deactivates one committed match and keeps its pair apart. Asks for confirmation. Runs as a job. |
lift_keep_apart | Graph destructive | No, MCP only | Lifts a keep apart block on a pair. Asks for confirmation. Runs as a job. |
consolidate_entities | Graph destructive | No, MCP only | Merges matching entities into resolved groups. The first call is a dry run. Asks for confirmation. Runs as a job. |
reevaluate_matches | Graph destructive | No, MCP only | Reevaluates matches among the given entities. Asks for confirmation. Runs as a job. |
apply_communities | Graph destructive | No, MCP only | Recomputes and writes communities, replacing the stored ones. Asks for confirmation. Runs as a job. |
prune_vectors | Graph destructive | No, MCP only | Deletes stored vectors whose nodes no longer exist. Asks for confirmation. Runs as a job. |
Graph writes
apply_schema_additions publishes a schema before the first add when you want a schema other than the default. On an empty graph it installs the full initial schema. On a stored graph it adds types and properties and refuses any removal or tightening. Replacing or patching a stored schema uses replace_schema or apply_schema_patch, which ask the client to confirm. The server refuses a schema that names an external base. Each of these tools needs scope *, because the schema applies to every document.
add_document, add_file, and update_document take text under a document key and run as jobs. A graph write needs a writable server and a document key inside the configured scope. update_document also needs a stored schema. An add on a graph with no stored schema publishes the default schema before it writes. The job result names that schema in schema and version, or the stored schema when one already existed. A write that finds another schema published first fails instead of replacing that schema.
Graph writes run without a provider call. In the default llm extraction mode, the server queues extraction work for the client model. The gliner and hybrid modes run the local GLiNER model, which needs the extract extra. When merged entities carry different descriptions, the server joins the descriptions locally instead of asking a model to summarize them.
File ingestion roots
add_file reads one UTF-8 file and stores it under its resolved absolute path. The working directory is always an ingestion root. MCP_INGEST_ROOTS adds directories outside the working directory.
The file is opened one path component at a time beneath a matching root. Parent paths, glob patterns, symbolic links, and files outside the roots are refused. The resolved path becomes the document key, and the server checks the document scope before it opens the file. The file text is ingested locally with the same extraction model as other writes, so adding a file makes no provider call.
Evidence tools
Every evidence tool applies the document scope inside its queries. Retrieval lists the rules that all of them share.
Passage search
Searches the text of current document versions in scope and returns ranked passages with evidence ids. Passage search describes the modes and the result.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
query | string | required | Plain words. Query syntax has no effect. |
mode | lexical, semantic, or hybrid | hybrid | hybrid runs both searches and fuses them. |
limit | integer | 10 | Agent 1 to 50. MCP at least 1, capped at MCP_MAX_HITS (default 10). Python any positive integer. |
Returns an EvidenceSearchResult with status, hits, truncated, index_state, and failures. A hit has evidence_id, document_key, title, content_hash, location, snippet, score, and legs.
Fetch
Returns the exact stored text for evidence ids. Only a complete fetch makes an id citable. Fetch evidence describes the outcome and the statuses.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
evidence_ids | list of strings | required | At most 20 ids per call on the agent. On MCP, at most MCP_MAX_FETCH_IDS, default 20. |
max_chars | integer | agent max_result_characters, MCP MCP_MAX_FETCH_CHARS | The agent setting defaults to 12000. MCP accepts the argument and caps it at MCP_MAX_FETCH_CHARS, default 4000. Python uses 4000 when the argument is omitted, and raises ValueError when it is not positive. |
Returns one outcome for each id, in order. An outcome has status, text, title, uri, location, content_hash, version_status, partial, and citation_markdown.
Document tree navigation
Returns passages near a known passage, in the same document version. Document tree navigation describes the six relations.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
evidence_id | string | required | A chunk id or a span id. |
relation | parent, children, siblings, previous, next, or table_context | required | |
limit | integer | 10 | 1 to 50. Larger values are rejected. |
max_chars | integer | 12000 | 1 to 20000. Larger values are rejected. |
Returns a NavigationResult with status, items, truncated, truncated_by, version_status, and multi_section.
Entity search
Finds entities by name or meaning, each with up to three mentioning passages. Entity search describes the search and the result.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
query | string | required | MCP accepts 1 to 1000 characters. |
labels | list of strings | all entity labels | MCP accepts up to 20 labels. |
mode | lexical, semantic, or hybrid | hybrid | As in passage search. |
limit | integer | 10 | 1 to 50. MCP also caps it at MCP_MAX_HITS. |
Python adds support_limit, the most passages listed for each entity, with a default of 3. Returns an EntityResult with status, hits, truncated, index_state, and failures. A hit has entity_id, label, name, properties, kind, score, legs, and support.
Relationship exploration
Follows the relations around one entity. Explore relationships describes assertions, paths, and bounds.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
entity_id | string | required | A canonical lowercase UUID from entity_search. |
depth | integer | 1 | 1 or 2. |
relation_types | list of strings | all schema relation types | MCP accepts up to 20 types. |
max_nodes | integer | 25 | 1 to 200. |
max_edges | integer | 50 | 1 to 200. |
Returns an ExplorationResult with status, nodes, edges, truncated, truncated_by, and detail. An edge has source_id, target_id, relation_type, kind, and evidence.
Theme search
Finds themes, which are clusters of related entities from the last community detection run, each with the passages that mention its members. Theme search describes the search and the result.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
query | string | required | MCP accepts 1 to 1000 characters. Matches by meaning only. |
limit | integer | 5 | 1 to 10. MCP also caps it at MCP_MAX_HITS. Python any positive integer. |
support_limit | integer | 3 | 1 to 10. The most passages listed for each theme. Python any positive integer. |
Python takes these as keyword arguments of search_themes, and raises ValueError when limit or support_limit is not positive. Returns a ThemeResult with status, themes, truncated, index_state, and failures. A theme has theme_id, score, entities, which holds up to five members with a name and a type, and passages.
Citation check
Checks that cited evidence ids trace to text fetched in scope. Check citations describes the verdicts.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
evidence_ids | list of strings | required | The MCP server accepts at most MCP_MAX_FETCH_IDS ids. |
Python takes the cited ids, the fetched ids, and the scope. It returns one verdict for each cited id. On MCP the check compares against the ids this server session fetched.
Source status
On MCP, list_documents returns the status of one document when you pass document_key. The built-in agent does not expose source status as a tool. The Python function source_status in agrag.evidence reads it, and Graph.source_status(document_key) in agrag/ingestion/graph.py calls the same function with the graph's stores.
| Parameter | Type | Default | Range and notes |
|---|---|---|---|
document_key | string | required | The stable key of the source. |
vector_store | VectorStore | None | External vector store. None reads the graph-native indexes. |
dimensions | integer | None | Expected embedding dimension, checked against an external store. |
Returns a SourceStatus with document_key, state, content_hash, activation_sequence, version_id, job_id, job_state, lease_expires_at, job_age_seconds, job_error, and indexes. job_state uses the McpJobState values. lease_expires_at is an ISO timestamp. Each entry in indexes has name, state, and population_percent.
state | Meaning |
|---|---|
current | The committed version is complete and active. |
pending | An incomplete job holds a live lease. |
failed | The latest job's lease has expired, or the committed version is incomplete. |
deleted | The last committed change removed the source. content_hash is None. |
unknown | The store has no record of this key. |
An index state is the database state, such as ONLINE. It is MISSING when the store does not list the index.
Graph and schema reads
These MCP tools read graph state without writing or calling a model. They take no scope argument; the server applies its configured document scope to every result.
| Tool | Parameter | Type | Default | Range and notes |
|---|---|---|---|---|
list_documents | document_key | string | None | Lists all visible documents, or reads the status of one visible key. Out-of-scope keys are refused. Without a key, the visible documents are in documents. With a key, documents is unset. |
list_candidates | query | string | None | Filters groups by a word query. With a query, the reply holds lexical hits and does not page. |
list_candidates | limit | integer | 100 | 1 to 200. |
list_candidates | offset | integer | 0 | 0 or more. Pass the next_offset of the previous page to continue. |
list_matches | kind | active or blocks | active | blocks lists keep apart records and does not accept entity_id. |
list_matches | entity_id | UUID | None | Limits active matches to one entity. |
list_matches | limit | integer | 100 | 1 to 500. |
list_matches | after_key | two strings | None | Keyset cursor. Pass the next_after_key of the previous page, or leave it out for the first page. |
build_candidate_patch | none | Builds the patch from approved candidates in scope. | ||
preview_communities | max_cluster_size | integer | 10 | 2 to 50. |
preview_communities | resolution | number | 1.0 | Greater than 0 and at most 2. |
get_schema | schema_format | canonical, json_schema, jsonld, shacl | canonical | Returns schema_format and schema. SHACL is Turtle text; the others are JSON objects. |
build_candidate_patch returns the same SchemaPatch that a later apply step accepts. Its Python counterpart is candidate_patch in agrag.candidates.patch, so the MCP name differs from the Python name. preview_communities returns the communities a detection run would write with applied set to false; it needs the community extra only when the graph has relations to cluster. preview_schema_source accepts a shipped schema name or in-memory JSON, never a file path.
Task and decision tools
The task and decision tools act on the configured project, and the document scope does not apply to them. Use Decision traces to record supported decisions and review them. Agent loop describes how the built-in agent records and resumes task work.
Read tools
| Tool | Returns | Use it when |
|---|---|---|
get_task | The bounded resume view of a task, without event bodies. | You resume a task or need its goal and progress. |
list_events | One bounded page of a task's events after a sequence number. | You need the order of messages, tool calls, and results. |
fetch_event | One event by task name and sequence number. | You need the full body of one event. |
list_steps | One bounded page of steps in a given state, with a cursor. | You need the completed, in-progress, or failed steps. |
search_decisions | Current decisions in the project that can serve as precedents, in hits. The agent version leaves out decisions that need review or have non-current supports. | A choice may already be covered by an earlier decision. |
list_conflicts | Active decisions of the same choice that reached different conclusions. MCP only. | You look for disagreement across tasks. |
get_decision | One decision with its typed supports. | You need one decision in full. |
list_support_history | One page of a decision's original and refreshed supports. | You need to see why a decision was flagged. |
list_decisions | A task's decisions, including superseded history. | You review everything a task decided. |
list_decisions_for_review | Decisions flagged for review. The MCP tool can limit the list to one task. | A source changed and you need the decisions that depend on it. |
Write tools
| Tool | Effect | Use it when |
|---|---|---|
create_task | Creates a task, or returns the existing record. A name with another goal returns task_exists. MCP only. | A client starts work it wants to resume later. |
record_event | Appends a bounded raw event. MCP only. | A client keeps its own log in the task. |
set_step | Creates or updates a named step. A completed step needs result text. | You mark progress that a later run can reuse. |
record_decision | Records a decision with explicit support references. The same run or session must have fetched document evidence. | A conclusion matters beyond the current answer. |
supersede_decision | Replaces a decision with a new conclusion and keeps the history. | New evidence changes a conclusion. |
reaffirm_decision | Reaffirms an active decision using current fetched document evidence. | A flagged decision still holds after you read the current text. |
continue_decision_review | Advances queued review propagation by a bounded amount. The MCP tool takes limit from 1 to 100, default 20. | Review flags are still reaching dependent decisions. |
reject_decision | Rejects a decision and keeps the history. The MCP server asks for confirmation. | A human reviewer overturns a decision. |
The request-based MCP writes take a request_id of 1 to 64 characters, and a retry with the same id returns the saved result. The agent cannot rely on a decision marked needs_review or unknown.
Parameters
The parameters below apply to the MCP server unless a note says otherwise. The agent uses the same names. Its bounds are noted where they differ, and its text fields have no length bound.
Read tools
| Tool | Parameter | Type | Default | Range and notes |
|---|---|---|---|---|
get_task | task_name | string | required | 1 to 200 characters. The agent takes no task_name. |
list_events | task_name | string | required | 1 to 200 characters. |
list_events | after_sequence | integer | None | 0 or more. None starts at the first event. Pass the next_after_sequence of the previous page to continue. |
list_events | limit | integer | 50 | 1 to 200. The agent allows 1 to 50. |
fetch_event | task_name | string | required | 1 to 200 characters. |
fetch_event | sequence | integer | required | 1 or more. |
list_steps | task_name | string | required | 1 to 200 characters. The agent takes no task_name. |
list_steps | state | string | required | not_started, in_progress, completed, failed, or unknown. |
list_steps | after_name | string | None | Continuation cursor, at most 200 characters. |
list_steps | limit | integer | 50 | 1 to 200. The agent allows 1 to 50. |
search_decisions | query | string | required | 1 to 1000 characters. |
search_decisions | limit | integer | 20 | 1 to 100, capped at MCP_MAX_HITS. The agent allows 1 to 20. |
list_conflicts | after_choice_key | string | None | 1 to 200 characters. Pass the next_after_choice_key of the previous page to continue. |
get_decision | decision_id | UUID | required | |
list_support_history | decision_id | UUID | required | |
list_support_history | after_ordinal | integer | None | 0 or more. None starts at the first support. Pass the next_after_ordinal of the previous page to continue. |
list_support_history | limit | integer | 20 | 1 to 100. The agent allows 1 to 50. |
list_decisions | task_name | string | required | 1 to 200 characters. The agent takes include_history instead. |
list_decisions | include_history | boolean | true | Agent only. Set false to leave out superseded history. |
list_decisions_for_review | task_name | string | None | 1 to 200 characters. Limits the list to one task. The agent takes no task_name. |
list_decisions_for_review | limit | integer | 20 | 1 to 100. The agent allows 1 to 50. |
list_decisions_for_review | offset | integer | 0 | 0 or more. Pass the next_offset of the previous page to continue. |
Write tools
| Tool | Parameter | Type | Default | Range and notes |
|---|---|---|---|---|
create_task | task_name | string | required | 1 to 200 characters. |
create_task | goal | string | required | 1 to 4000 characters. |
create_task | request_id | string | required | 1 to 64 characters. |
record_event | task_name | string | required | 1 to 200 characters. |
record_event | kind | string | required | message, tool_call, tool_result, or note. |
record_event | payload | string | required | Up to 1,000,000 characters as input. Stored text is cut to 32000 characters, and the event records the hash of the full text. |
record_event | role | string | None | 100 characters at most. |
record_event | tool_name | string | None | 200 characters at most. |
record_event | request_id | string | required | 1 to 64 characters. |
set_step | task_name | string | required | 1 to 200 characters. The agent takes no task_name. |
set_step | name | string | required | 1 to 200 characters. |
set_step | state | string | required | The step states listed for list_steps. |
set_step | kind | string | other | read, analysis, or other. |
set_step | result_event_sequence | integer | None | MCP only. 1 or more. The sequence number of the event that holds the result. |
set_step | result_basis | string | unknown | independent, supported, or unknown. |
set_step | supports | list | None | 20 items at most. |
set_step | request_id | string | required | MCP only. 1 to 64 characters. |
set_step | result | string | None | Agent only. Required when state is completed. It is recorded as a note event, and a result over 32000 characters leaves the step unresolved. |
record_decision | task_name | string | required | 1 to 200 characters. The agent takes no task_name. |
record_decision | choice_key | string | required | 1 to 200 characters. |
record_decision | conclusion | string | required | 1 to 4000 characters. |
record_decision | rationale | string | required | 1 to 8000 characters. |
record_decision | supports | list | required | 1 to 20 typed supports. |
record_decision | assumptions | list of strings | required on MCP, None on the agent | 20 items at most. Send an empty list for none on MCP. |
record_decision | open_questions | list of strings | required on MCP, None on the agent | 20 items at most. Send an empty list for none on MCP. |
record_decision | request_id | string | required | MCP only. 1 to 64 characters. |
supersede_decision | decision_id | UUID | required | |
supersede_decision | conclusion | string | required | 1 to 4000 characters. |
supersede_decision | rationale | string | required | 1 to 8000 characters. |
supersede_decision | reason | string | required | 1 to 4000 characters. |
supersede_decision | supports | list | required | 1 to 20 typed supports. |
supersede_decision | assumptions | list of strings | required on MCP, None on the agent | 20 items at most. Send an empty list for none on MCP. |
supersede_decision | open_questions | list of strings | required on MCP, None on the agent | 20 items at most. Send an empty list for none on MCP. |
supersede_decision | request_id | string | required | MCP only. 1 to 64 characters. |
reaffirm_decision | decision_id | UUID | required | |
reaffirm_decision | evidence_ids | list of strings | required | 1 to 20 ids, fetched in this session. |
reaffirm_decision | reason | string | required on MCP, default text on the agent | 1 to 4000 characters on MCP. The agent default is Reaffirmed after current evidence review. |
reaffirm_decision | request_id | string | required | MCP only. 1 to 64 characters. |
continue_decision_review | limit | integer | 20 | 1 to 100. The agent allows 0 to 50. |
reject_decision | decision_id | UUID | required | MCP only. Requires confirmation. |
reject_decision | reason | string | required | 1 to 4000 characters. |
reject_decision | request_id | string | required | 1 to 64 characters. |
Other limits
| Limit | Built-in agent | MCP server |
|---|---|---|
| Preview length of a hit | 240 characters | MCP_MAX_SNIPPET_CHARS, default 240 |
| Size of one result | none | MCP_MAX_RESPONSE_CHARS, default 60000 |
| Time for each store read | none | MCP_REQUEST_DEADLINE_SECONDS, default 30 |
| Stored text of one event | 32000 characters. A completed step result must fit. | 32000 characters. The event records the hash of the full text and a truncated flag. |
| Request ID | Not used. | 1 to 64 characters. |
| Tool calls in one run | max_tool_calls, default 20 | none |
| Steps in one run | recursion_limit, default 50 | none |
Search, fetch, and check-citations results count their JSON twice, once for each copy the SDK sends, and set truncated when they drop trailing items to fit MCP_MAX_RESPONSE_CHARS. The other MCP tools count their JSON once, plus the 35-character text block the server sends beside it, and count UTF-8 bytes. Their results are not cut, so a result over the limit returns an error. Agent loop describes the agent settings, and the configuration reference lists the MCP variables.