invoice_extract

Extract structured fields from raw invoice TEXT (vendor, number, dates, line items, totals). Free local model, or BYOK a stronger model (api_key) for quality. Returns {ok, invoice}. Caller supplies the text (no PDF/OCR).

SERVERGateway SOURCEhttps://wingmanprotocol.com/mcp
Low RISK CLASS
Category Read
Parameters 81 required
Recommended Allowedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/com-wingmanprotocol-agent-gateway/invoice-extract.md

What invoice_extract does on Gateway

AI agents call invoice_extract to retrieve information from Gateway without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

ParameterTypeRequiredDescription
text string Yes the invoice's raw text
model string BYOK model id (optional)
handle string your handle (for BYOK via vault)
secret string your agent secret (for BYOK via vault)
api_key string BYOK provider key for higher quality (optional)
key_ref string vault entry holding your provider key (BYOK alt)
base_url string BYOK OpenAI-compatible endpoint (optional)
provider string BYOK provider (optional)

Parameters from the server's own tool schema.

Why invoice_extract is rated Low

This is a data extraction and parsing operation. It reads unstructured invoice text and returns structured output (vendor, number, dates, line items, totals). No data is created, modified, deleted, or executed. The operation is purely informational and non-destructive.

From the tool's definition Tool description states it 'Extract[s] structured fields from raw invoice TEXT' and 'Returns {ok, invoice}'. The caller supplies text; the tool parses and returns structured data with no side effects mentioned.

Risk signalsAccepts URL/endpoint input (base_url) · Handles credentials or secrets (api_key)

Questions about invoice_extract

What does the invoice_extract tool do? +

Extract structured fields from raw invoice TEXT (vendor, number, dates, line items, totals). Free local model, or BYOK a stronger model (api_key) for quality. Returns {ok, invoice}. Caller supplies the text (no PDF/OCR). It is categorised as a Read tool in the Gateway MCP Server, which means it retrieves data without modifying state.

What parameters does invoice_extract accept? +

invoice_extract accepts 8 parameters: text, model, handle, secret, api_key, key_ref, base_url, provider. Required: text. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on invoice_extract? +

Register the Gateway MCP server in PolicyLayer and add a rule for invoice_extract: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Gateway. Nothing to install.

What risk level is invoice_extract? +

invoice_extract is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit invoice_extract? +

Yes. Add a rate_limit block to the invoice_extract rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block invoice_extract completely? +

Set action: deny in the PolicyLayer policy for invoice_extract. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides invoice_extract? +

invoice_extract is provided by the Gateway MCP server (https://wingmanprotocol.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Gateway, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Gateway's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.