Skip to main content
Glama

Extract details from a document

extract_from_artifact
Read-only

Use this when the user wants a specific kind of information pulled out of one of their Xenition documents as a list — names, dates, figures, action items, tasks. Answers only from that document. To ask a free question about it, use query_document.

Input Schema

NameRequiredDescriptionDefault
whatYeswhat to pull out, in plain language (e.g. 'all email addresses', 'the key dates', 'every action item')
artifactIdYesthe artifact to extract from

Output Schema

NameRequiredDescriptionDefault
bodyYes
titleYes
formulaNo
headingYes
openUrlNo
questionNo
artifactIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare that this is read-only, non-destructive, and not open-world, so the safety profile is covered structurally. The description adds meaningful behavioral context beyond that: it answers only from the referenced document (scoping/grounding) and returns a list. It does not discuss limits, rate limits, or handling of ambiguous requests, so it falls short of a 5.

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?

Three compact sentences, front-loaded with the primary use case and ending with the sibling redirect. No filler, no repetition of title or annotations.

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?

With annotations covering safety profile, an output schema covering return structure, and full schema descriptions for both parameters, the description only needs to state purpose, usage, and grounding scope — all of which it does. Nothing an agent needs to invoke it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100% and both parameters already carry precise descriptions, so the schema does the heavy lifting. The description adds a bit of flavor by listing extractable kinds (names, dates, figures, action items), but it does not embellish parameter syntax or format beyond what the schema provides. Baseline 3 is appropriate.

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 description states a specific verb ('extract') and resource ('one of their Xenition documents'), and it enumerates concrete extraction types (names, dates, figures, action items, tasks). It also explicitly distinguishes itself from the sibling query_document by contrasting list-style extraction with free questions.

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 an explicit usage condition ('when the user wants a specific kind of information pulled out ... as a list') and names the exact alternative for the other case ('To ask a free question about it, use query_document'). This is a textbook when-to-use/when-to-use-sibling routing rule.

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.