Skip to main content
Glama

Submit extraction

submit_extraction_from_llm

Save the extraction you produced, one pass per call: the classes after the classes pass, then the objects after the objects pass and your single resolve_names call (see get_extraction_prompt).

`memory` is the graph's slug. `results` maps a pass `key` to that pass's JSON,
{"classes": {...}} or {"objects": {...}}. `source_doc` is a label for
provenance (give both submits the same one: they are one source), 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. Rows are born unapproved. On most graphs
the everyday ones are approved as they are saved; what a person should
decide waits in the graph's Review: new schema (classes, properties,
relationship types), a value that disagrees with an approved or waiting
one, anything sensitive, and everything on a graph set to manual.

`approve=True` ONLY when the user explicitly asked for this document's facts
to be approved as loaded, including what would otherwise wait for a person
("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 in Review under
"Recently approved without a click", 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).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "memory": "<memory>",
      "results": "<results>"
    },
    "name": "submit_extraction_from_llm"
  }
}

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.8/5.0
Behavior5/5

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

Although annotations already declare a non-read-only, non-idempotent write, the description adds substantial context: rows are born unapproved, what gets auto-approved versus queued in Review, the 403 authorization requirement, and that approvals are logged as 'Recently approved without a click' and reversible. This goes well beyond the annotation hints.

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?

It is front-loaded with the core save action and sequencing, and every section (parameters, approve policy, response handling) earns its place. It is dense but appropriately sized for a multi-parameter mutation whose schema is undocumented; some approve-flag phrasing is slightly repetitive.

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?

For a complex, nested, mutating tool it covers sequencing, provenance, evidence format, approval policy and authorization, and even the meaningful response fields (validation_errors, near_duplicates) despite an output schema existing. Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

With 0% schema coverage the description carries the full burden and does document all five parameters, including the results map shape ({classes}/{objects}), source_doc provenance pairing, and the evidence {quote, page, section} contract. It stops short of specifying the exact accepted key strings for the results map, leaving a small ambiguity.

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?

The definition states a specific verb and resource (save the extraction, one pass per call) and clarifies the sequencing versus sibling tools by naming get_extraction_prompt and resolve_names. An agent can tell it apart from get_extraction_prompt/merge_objects without opening a 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?

It gives explicit when-to-use guidance for the risky path: approve=True 'ONLY when the user explicitly asked' and 'Never set it on your own judgement', plus the fallback to load without it. It also names the follow-up alternatives (report validation_errors, fold near_duplicates with merge_objects).

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