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
for provenance and `source_title` the document's human name
("Share Purchase Agreement.pdf"). Keep each entry's `evidence`
({quote, page, section}, quote verbatim) as the prompt asks: it becomes the
fact's citation a reviewer sees. 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

NameRequiredDescriptionDefault
memoryYes
approveNo
resultsYes
source_docNo
source_titleNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / source_title
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Source Title"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / approve
      Added value: +{
      +  "default": false,
      +  "title": "Approve",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations confirm it is a non-readOnly, non-idempotent write, and the description goes well beyond them: new rows land status='unapproved' and wait in the Review tab, approve=True is recorded under the user's name and listed as 'settled without review', is reversible with one click, and is refused 403 unless the user has approve rights. It also discloses that the response may carry validation_errors and near_duplicates and tells the agent to surface them rather than ignore them.

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

Conciseness5/5

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

Front-loaded with the action, then parameter meanings, then the gated approve behavior, then response caveats, in the order an agent needs them. It is long but dense with decision-relevant detail for a 5-parameter write tool with nested structures; no sentence is filler.

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

Completeness4/5

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

Given a write tool with nested objects, no schema descriptions, and a highly consequential approve flag, the description covers nearly everything: prerequisites, per-parameter meaning, side effects, permission failures, and response warnings. Minor gap: it does not describe the success payload or confirm what a successful load returns, though the output schema partly carries that.

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 description coverage is 0%, so the description carries the full burden and does: memory is defined as the graph's slug, results as a map of pass key to pass JSON with a concrete example, source_doc and source_title explained with an example filename, and approve given conditional semantics. It additionally documents the nested evidence shape ({quote, page, section}, quote verbatim) that the schema leaves opaque.

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 situates it precisely in the workflow as the LAST step after get_extraction_prompt and resolve_names, which cleanly separates it from those siblings. An agent can tell exactly what this tool does and where it belongs in the sequence.

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?

Explicitly names the preceding steps it must follow, and draws a hard line on the alternative for approve: only when the user explicitly says to load as approved, 'Never set it on your own judgement'. It also names the fallback path ('then load without it') when approval is refused with 403.

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