Skip to main content
Glama

Submit extraction

submit_extraction_from_llm

Save the extraction you produced — the LAST step after get_extraction_prompt and your single resolve_names call.

`memory` is the graph's slug. `results` maps each pass `key` to that pass's JSON,
e.g. {"classes": {...}, "objects": {...}}. `source_doc` is an optional label
(filename/title) for provenance. New rows land status='unapproved' and wait
for a person in the graph's Review tab.

`approve=True` ONLY when the user explicitly asked for this document's facts
to go live without review ("load it as approved"). Never set it on your own
judgement: the load is then recorded under the user's name and this key, is
listed as "settled without review", and can be taken back with one click.
It is refused (403) unless the user may approve in this graph — an owner,
or someone an owner allowed to approve; then load without it.

The response may carry `validation_errors` (rows the server could not
place — report them to the user instead of ignoring them) and
`near_duplicates` (new objects that look like an existing one — review
with the user and fold confirmed pairs with merge_objects).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memoryYes
approveNo
resultsYes
source_docNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / approve
      Added value: +{
      +  "default": false,
      +  "title": "Approve",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the generic write profile (readOnlyHint=false, non-idempotent, non-destructive). The description adds substantial context the annotations cannot: new rows land status='unapproved' pending human review, approval is recorded under the user's name as "settled without review", is reversible in one click, and is refused with 403 unless the caller is an owner or owner-delegated approver. That is exactly the operational detail an agent needs before mutating graph state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and workflow position before the mechanics, and each paragraph covers a distinct concern (params, approve semantics, response handling). The approve paragraph is somewhat verbose and repeats the consequence framing, but the risk it mitigates justifies most of the length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite a nested-object `results` parameter and no schema descriptions, the description covers inputs, workflow placement, approval authorization, and the two meaningful response fields (validation_errors, near_duplicates) even though an output schema exists. An agent has everything needed to call this correctly and handle its result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and does: `memory` is the graph's slug, `results` maps each pass `key` to that pass's JSON with a concrete example, `source_doc` is an optional provenance label, and `approve` has both a default (false) and a strict conditional trigger. Format and intent are supplied for every parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Save the extraction you produced") and immediately positions it in the workflow as the LAST step after get_extraction_prompt and resolve_names, explicitly naming two siblings. An agent can place this tool in the pipeline without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit sequencing (after get_extraction_prompt and your single resolve_names call), an exclusion rule for approve ("ONLY when the user explicitly asked... Never set it on your own judgement"), and routing for response anomalies (report validation_errors, fold near_duplicates with merge_objects). Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources