Skip to main content
Glama
devrobotlabs

@devrobotlabs/visionapi-mcp

Official
by devrobotlabs

@devrobotlabs/visionapi-mcp

用于 Vision API 的 MCP 服务器。将 Claude Code、Claude Desktop、Cursor 或任何其他 MCP 主机指向一个扫描文件夹,然后索取发票——无需编写集成代码,生成的代码中不包含 API 密钥,也不会凭记忆转述合同。

You: pull the totals out of every invoice in ~/inbox and put them in a CSV

Claude: [vision_analyze × 7]
        Done — 7 invoices, 14 credits. Three had no PO number; I left those cells empty.

安装

无需安装。将其添加到主机的配置中,即可通过 npx 运行。

Claude Code — claude mcp add visionapi --env VISION_API_KEY=sk_live_... -- npx -y @devrobotlabs/visionapi-mcp ~/inbox

Claude Desktop — claude_desktop_config.json:

{
  "mcpServers": {
    "visionapi": {
      "command": "npx",
      "args": ["-y", "@devrobotlabs/visionapi-mcp", "/Users/me/inbox"],
      "env": { "VISION_API_KEY": "sk_live_..." }
    }
  }
}

Cursor — .cursor/mcp.json,格式相同:

{
  "mcpServers": {
    "visionapi": {
      "command": "npx",
      "args": ["-y", "@devrobotlabs/visionapi-mcp", "."],
      "env": { "VISION_API_KEY": "sk_live_..." }
    }
  }
}

VS Code — .vscode/mcp.json:

{
  "servers": {
    "visionapi": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@devrobotlabs/visionapi-mcp", "${workspaceFolder}"],
      "env": { "VISION_API_KEY": "sk_live_..." }
    }
  }
}

在 app.visionapi.io/dashboard/keys 获取密钥。新账户可获得 50 个积分,无需绑定银行卡。

主机配置块直接放在本 README 中,而不是放在 examples/ 目录里——这是对九个客户端库的刻意偏离。只存在于 README 中的代码片段,不会与无人运行的脚本产生漂移。

Related MCP server: receiptconverter-mcp

它可以读取哪些目录

每个位置参数都是服务器可以读取文件的目录。 如果未提供任何参数,则进程工作目录是唯一根目录——这是安全的默认设置,因为 MCP 主机以项目目录作为其 cwd 启动 stdio 服务器。

这一点比看起来更重要。服务器持有实时消费凭证,并以你的文件系统权限运行,因此它可以读取你的 shell 能读取的任何内容。要求它提取 ~/Documents/passport.jpg 的原始文本,是一种将文档内容引入模型上下文以及主机保留的任何转录记录的有效方式。允许列表正是为了防止被误导或被操纵的代理意外执行此类操作。

路径在比较前会通过 realpath 在两侧进行解析,因此允许目录内的符号链接无法指向目录之外。

--allow-any-path 完全关闭允许列表。它会在启动时向 stderr 发出警告,你应该有充分的理由才使用它。

工具

工具

功能

费用

vision_analyze

从单张图片或 PDF 中提取结构化字段

每张图片 1 积分,每页 PDF 2 积分

vision_ask

针对单个文件提出最多 5 个自然语言问题

每张图片 1 积分,每页 PDF 1 积分

vision_detect

这是什么文件?按预设排序,不进行提取

每 5 次调用 1 积分

vision_list_presets

预设目录

免费

vision_get_preset

单个预设返回的所有字段

免费

vision_credits

余额和积分桶

免费

vision_get_task

排队任务的状态/结果

免费

三个消耗积分的工具被标注为 readOnlyHint: false,因此即使主机自动批准只读工具,在运行这些工具之前仍会停下来询问。

目录也以资源形式暴露——visionapi://presets 和 visionapi://presets/{name}——供偏好资源的主机使用。工具是主要接口,因为不同主机对资源的支持程度不一。

输出

响应以模型可读的格式呈现,而不是直接转储 JSON。一个包含 37 个字段的发票预设,如果文档只填满了其中 12 个字段,返回结果将是一个表格加上一行 Not found in this document (25): …,而不是 25 次重复的 {"value":null,"confidence":"low"}——体积缩小三到四倍,也更易于操作。

过程中不会丢失任何信息。每个工具都接受一个 format 参数:

  • markdown(默认)——上述渲染格式。

  • compact_json——相同的信息以数据形式呈现,包含 _not_found 和 _low_confidence 数组。适用于代理需要解析而非阅读的场景。

  • json——API 响应的逐字原样。在编写针对该契约的真实 HTTP 代码时使用。

置信度仅在非高时打印,因此 (mid) 和 (low) 会突出显示,而常见情况则无需额外阅读。

长文档

将 mode 保持为 auto。API 会在 60 秒后终止同步请求;服务器随后会将其重新提交到队列并轮询,同时向主机报告进度。你只会被收费一次,因为超时的尝试已全额释放其预留积分。

对于超过约十页的文档,请预先传递 mode: "async",并使用 pages: "1-5" 来低成本地抽样长文档——你只需为所选页面付费。

费用与失败

失败不会产生费用。任何非 2xx 响应都会全额释放积分预留,因此失败的调用可以安全地修正和重试,无需清理。工具描述中已说明这一点,因此使用此服务器的代理在出错后会做出合理行为,而不是放弃或重试无法成功的事情。

有两个错误携带的建议值得你自己了解:

错误

含义

insufficient_credits

重试无济于事——余额不会自行变化。充值。

too_many_tasks

你自己的异步任务已达到计划上限。当其中一个任务完成时才会解除,而不是按计时器——因此休眠和重试会阻塞你正在等待的事情。

环境变量

变量

是否必需

用途

VISION_API_KEY

计费工具必需

你的密钥。目录工具无需密钥即可使用。

VISION_API_URL

否

覆盖 API 基础 URL。很少需要。

缺少密钥不会阻止服务器启动:它会在 stderr 上发出警告,tools/list 仍然有效,第一次计费调用会返回一条指明修复方法的消息。拒绝启动的服务器只会告诉用户出了问题。

开发

npm install
npm run typecheck
npm test          # 37 offline tests — no key, no network
npx @modelcontextprotocol/inspector node ./dist/cli.js ~/some/dir

npm install --no-save ../node 用于针对本地构建的客户端进行测试。不要使用 npm install ../node——那会将 package.json 重写为 "file:../node",而该清单文件正是发布的内容。

链接

MIT 许可。

Available Tools

7 tools
vision_analyzeExtract structured data from an image or PDFA

Extract structured data from ONE image or PDF (JPEG, PNG, WebP, TIFF, PDF — detected by magic bytes, the extension is ignored).

Cost: 1 credit per image, 2 per selected PDF page. Failures cost NOTHING — every non-2xx releases the reservation in full, so a failed call is safe to fix and repeat, and there is no cleanup to do.

Choose ONE way to say what you want:

  • preset — a catalogue name, or "auto" to have the API classify the file first, for free. "auto" is the right default when you do not already know the document type. Do not call vision_list_presets just to guess a preset; the classifier is better at it and free.

  • schema — your own fields, {"field_name": "what to extract"}. The description IS the prompt: "the invoice number exactly as printed, without the #" extracts better than "invoice number". A schema can be passed alongside a preset to add fields to it.

  • schema_name — a schema saved in the account's dashboard. Not combinable with the others.

Reading what comes back:

  • Fields the document did not carry are NOT printed as values — they are listed at the end under "Not found". A preset always defines every one of its fields, so an absent value means "this document does not have it", never "the call failed".

  • A "(mid)" or "(low)" after a value is its confidence; no marker means high. Decide deliberately what to do with a low-confidence number rather than treating it as fact.

  • Never hardcode a preset's field names from memory. Call vision_get_preset first if the names are going into code.

Long documents: leave mode at "auto". The server kills a synchronous request at 60 seconds; this tool then re-submits it to the queue and polls, and you are charged exactly once because the timed-out attempt refunded itself. Pass mode:"async" up front for anything over ~10 pages.

One file per call. To process a folder, call this once per file — and if you get too_many_tasks, wait for your own in-flight tasks rather than sleeping.

ParametersJSON Schema
NameRequiredDescriptionDefault
modeNoauto (default) — try synchronously, and if the server times out at 60 s, resubmit to the queue and poll. The timed-out attempt refunds itself, so this costs one charge, not two. sync — fail rather than fall back. async — go straight to the queue. Pass this up front for anything over roughly 10 pages.auto
pagesNoPDF page selection, e.g. "1-3,7". You are charged for selected pages only, so this is the cheap way to sample a long document.
detailNo"high" renders pages at higher resolution for dense or low-quality scans. Same credit cost, slower.
formatNomarkdown (default) — compact, readable, absent fields summarised rather than repeated. compact_json — the same information as data, with _not_found and _low_confidence arrays, for when you will parse it. json — the API response verbatim; use it when you are writing HTTP code against the contract.markdown
outputNo"text" returns the raw transcription and nothing else. Cannot be combined with a preset or a schema.
presetNoA catalogue name, or "auto" to have the API classify the file first, for free. "auto" is the right default when you do not already know the document type.
schemaNoYour own fields, as {"field_name": "what to extract"}. The description IS the prompt — "the invoice number exactly as printed, without the #" extracts better than "invoice number". Can be passed alongside a preset to add fields to it.
file_urlNoPublic HTTPS URL the API fetches itself. Private and internal addresses are refused by the server.
file_pathNoAbsolute or relative path to a file on the user's disk. Must be inside a directory this server was given access to — the error names them if it is not.
max_charsNoCeiling on transcription text in the response. Raise it only if you truly need more than 20 000 characters.
schema_nameNoA schema saved in the account dashboard. Not combinable with preset or schema.
language_hintNoISO 639-1 code, e.g. "es". Auto-detected when omitted; only worth setting when detection is getting it wrong.
min_confidenceNoValues below this level come back null with their confidence preserved. Default low, which filters nothing.
include_raw_textNoAlso return the full transcription alongside the fields. Expensive in context — leave it off unless you need the prose.

TDQS

A5/5.0
Behavior5/5

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

Annotations only flag readOnlyHint=false, non-idempotent, and non-destructive; the description adds substantial behavior beyond that: credit costs, failure refunds with no cleanup, magic-byte detection, 60-second timeout with queue resubmission, absent-field reporting, and confidence markers. No contradiction with annotations.

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?

The description is long but deliberately organized into labeled sections: cost, selection modes, reading output, long documents, and per-file limits. Every sentence carries operational information; there is no filler or repetition beyond what is needed for a 14-parameter tool with no output schema.

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 14-param, 0-required tool with no output schema, the description covers input selection, costs, failure/refund semantics, output interpretation (Not found, mid/low confidence), timeout behavior, page selection, formatting choices, and folder-processing guidance. An agent has enough to call it correctly without external docs.

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 100%, so the schema already documents parameters, but the description adds critical semantics: the exclusivity rule ('Choose ONE way'), schema_name not being combinable, schema descriptions acting as prompts, mode fallback/refund behavior, and the meaning of the format options. This goes well beyond the structured schema.

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?

Opens with 'Extract structured data from ONE image or PDF' — a specific verb plus objects and file types. It distinguishes the tool's role from vision_list_presets by telling users not to call that sibling just to guess a preset, and clearly separates the preset/schema/schema_name configuration paths.

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 when-to-use guidance: use 'auto' when the document type is unknown, call vision_get_preset before hardcoding field names, pass async for anything over ~10 pages, and process one file per call while waiting on too_many_tasks. It also names exclusions, such as 'Do not call vision_list_presets just to guess a preset.'

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

vision_askAsk questions about an image or PDFA

Ask up to 5 plain-language questions about ONE image or PDF and get answers with a verdict.

Cost: 1 credit per image, and 1 per selected PDF page — half what extraction costs on a PDF, because the answer does not scale with the page. The questions themselves are free: asking five costs exactly what asking one costs. Failures cost NOTHING.

Reach for this over vision_analyze when the answer is a judgement rather than a field — "is this signed?", "does the delivery address match the billing address?", "is anyone wearing safety equipment?". Reach for vision_analyze when you want values you will store or compute with; asking for a total and then parsing the prose is slower, dearer and less reliable than extracting it.

Reading what comes back: branch on verdict, never on the prose.

  • "yes" / "no" — the images settle it.

  • "uncertain" — a yes/no question the images genuinely do not settle. Treat it as missing information, not as a "no".

  • "n-a" — the question was not a yes/no question; the answer is in the prose. Each verdict carries a confidence, shown as "(mid)" or "(low)"; no marker means high.

Answers are at document level, not per page. Long documents behave exactly as in vision_analyze — leave mode at "auto", or pass "async" up front past ~10 pages.

ParametersJSON Schema
NameRequiredDescriptionDefault
modeNoauto (default) — try synchronously, and if the server times out at 60 s, resubmit to the queue and poll. The timed-out attempt refunds itself, so this costs one charge, not two. sync — fail rather than fall back. async — go straight to the queue. Pass this up front for anything over roughly 10 pages.auto
pagesNoPDF page selection, e.g. "1-3,7". You are charged for selected pages only, so this is the cheap way to sample a long document.
detailNo"high" renders pages at higher resolution for dense or low-quality scans. Same credit cost, slower.
formatNomarkdown (default) — compact, readable, absent fields summarised rather than repeated. compact_json — the same information as data, with _not_found and _low_confidence arrays, for when you will parse it. json — the API response verbatim; use it when you are writing HTTP code against the contract.markdown
file_urlNoPublic HTTPS URL the API fetches itself. Private and internal addresses are refused by the server.
file_pathNoAbsolute or relative path to a file on the user's disk. Must be inside a directory this server was given access to — the error names them if it is not.
max_charsNoCeiling on transcription text in the response. Raise it only if you truly need more than 20 000 characters.
questionsYesUp to 5 questions about the file. The questions themselves are free — asking five costs the same as asking one.
language_hintNoISO 639-1 code, e.g. "es". Auto-detected when omitted; only worth setting when detection is getting it wrong.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description explains cost behavior (per image/per page, failures cost nothing), the verdict semantics ('yes'/'no'/'uncertain'/'n-a'), confidence markers, document-level answers, and the auto/sync/async fallback behavior. This gives a clear mental model of what will happen when the tool runs.

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?

The description is lengthy but well structured with distinct sections for purpose, cost, usage guidance, and reading the output. Every paragraph earns its place, though the sentence on max_chars duplicates the schema's message and could be trimmed without meaningful loss.

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?

Even without an output schema, the description fully explains the response format and semantics: branch on verdict, the meaning of each verdict value, confidence markers, and document-level scoping. It also covers cost, page selection, and long-document modes, making the tool self-contained for selection and invocation.

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% with thorough parameter descriptions. The tool-level description mainly restates information already present in the schema, such as pages being charged per selected page and questions being free. It adds almost no new parameter-level meaning beyond what the input schema already provides.

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 opens with 'Ask up to 5 plain-language questions about ONE image or PDF and get answers with a verdict.' This is a specific verb+resource+scope statement. It also explicitly contrasts with vision_analyze by naming that tool, so sibling differentiation is clear.

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?

The description provides explicit when-to-use guidance: 'Reach for this over vision_analyze when the answer is a judgement rather than a field' and the reverse. It also gives concrete context for mode and pages, such as passing 'async' up front past ~10 pages.

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

vision_creditsVision API credit balanceA
Read-only

The account's credit balance and its per-bucket breakdown.

Free — no credits consumed.

Worth checking before a large batch, so you can tell the user up front that 300 files will not fit in the balance rather than stopping half way through with an insufficient_credits error. Buckets are spent in order: subscription, then rollover, then pack, then welcome.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
balanceYes
bucketsYes

TDQS

A4.9/5.0
Behavior5/5

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

The description adds valuable behavioral details beyond the readOnlyHint annotation: it is free (consumes no credits), and it explains the order of bucket spending. This gives the agent a deeper understanding of what to expect.

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?

The description is concise and front-loaded with the main purpose. Each sentence adds unique information: the resource, the cost, the usage scenario, and the bucket order. No unnecessary words.

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?

Given the tool's simplicity (no parameters), the existing annotations, and the presence of an output schema, the description fully covers the tool's context. It explains when and why to use it, and the cost implication.

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?

The tool has no input parameters, so the description has nothing to add. Per the rubric, 0 params gets a baseline of 4; no further clarification is needed.

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 clearly identifies the tool as providing the account's credit balance and per-bucket breakdown, which is distinct from sibling tools focused on presets and analysis. The 'Worth checking before a large batch' phrasing reinforces its purpose as a balance check.

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 explicitly states when to use the tool ('before a large batch') and explains the benefit (avoiding insufficient_credits errors). It also provides the bucket consumption order, giving the agent a clear usage context.

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

vision_detectIdentify what a file is, without extracting itA

Identify what a file IS without paying to extract it: the presets that could handle it, ranked, each with a confidence and a one-line reason.

Cost: 1 credit per 5 calls, whatever the file — detection only ever reads page 1, so a 300-page PDF costs the same as a photo. Four calls in five report 0 credits used.

recommended is exactly what preset:"auto" would run on this file, so you can probe first and trust the answer.

Reach for this when the TYPE is the decision: routing a mixed inbox to different handlers, or refusing to spend two credits a page on a 40-page PDF sight unseen. Do NOT reach for it as a step before every vision_analyze call — if you want the data and do not care which preset produced it, preset:"auto" classifies the same way, for free, in the same request. Using detect first and then analyze is two calls where one would do.

If fallback is true, nothing matched confidently and the recommendation is the generic preset. That is an honest "unknown", and it is worth surfacing to the user rather than extracting against a shape nobody has confirmed.

ParametersJSON Schema
NameRequiredDescriptionDefault
detailNo"high" renders pages at higher resolution for dense or low-quality scans. Same credit cost, slower.
formatNomarkdown (default) — compact, readable, absent fields summarised rather than repeated. compact_json — the same information as data, with _not_found and _low_confidence arrays, for when you will parse it. json — the API response verbatim; use it when you are writing HTTP code against the contract.markdown
file_urlNoPublic HTTPS URL the API fetches itself. Private and internal addresses are refused by the server.
file_pathNoAbsolute or relative path to a file on the user's disk. Must be inside a directory this server was given access to — the error names them if it is not.

TDQS

A4.5/5.0
Behavior5/5

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

Annotations give basic hints, but description adds substantial context: cost (1 credit per 5 calls), that detection only reads page 1, the meaning of 'recommended' as exactly what preset:'auto' runs, and fallback behavior as an honest 'unknown'. No contradictions with annotations; readOnlyHint false is clarified by the read-only nature described.

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?

The description is well-structured with front-loaded purpose and cost, but is relatively long. Every sentence contributes value, yet it could be tightened without losing meaning, especially the repeated emphasis on cost and the comparison with vision_analyze.

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 no output schema, the description conveys enough about output structure (presets ranked with confidence and reason, recommended field). It also covers cost, fallback, and usage. However, it leaves ambiguity about file parameter requirement (both optional in schema) and does not explicitly state that at least one file source is needed.

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 descriptions cover all 4 parameters at 100% coverage, so the baseline is 3. The description adds no parameter-level semantics beyond the schema; it does not explain that at least one of file_url/file_path must be provided, nor how to choose between them.

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?

Description states the tool identifies what a file is without extraction, explicitly contrasting with vision_analyze. It also specifies output: presets ranked with confidence and reason. This distinguishes it from sibling tools and provides a clear verb+resource.

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?

Provides explicit when-to-use ('when the TYPE is the decision') and when-not-to-use ('do NOT reach for it as a step before every vision_analyze call'), naming the alternative preset:"auto" within vision_analyze. Includes concrete scenarios like routing a mixed inbox and avoiding costs on large PDFs.

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

vision_get_presetGet a Vision API presetA
Read-onlyIdempotent

The full field list for one preset: every field name, its type, its description, and whether it is always present.

Free — no credits, no API key needed.

This is the ONLY correct source for a preset's field names. Never write one from memory: the catalogue is versioned and a name you remember from another project may not exist here, and a schema built on a guessed name fails at the point where you are parsing the response rather than at the point where you made it up.

Fields marked ★ are present on every response; the rest appear only when the document carries them. A field holding null means the document did not have it, never that the call failed.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesA preset name from vision_list_presets, e.g. "invoice".
formatNomarkdown (default) — compact, readable, absent fields summarised rather than repeated. compact_json — the same information as data, with _not_found and _low_confidence arrays, for when you will parse it. json — the API response verbatim; use it when you are writing HTTP code against the contract.markdown

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark the tool as read-only and idempotent, but the description adds critical behavioral semantics: fields marked ★ are always present, others appear only when the document carries them, and null means absence rather than failure. This goes beyond the annotation hints and clarifies output interpretation.

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?

The description is well-organized, with the purpose front-loaded and each paragraph adding distinct value: field list definition, free access, correctness warning, and interpretation rules. It is concise, with zero fluff, and every sentence earns its place.

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?

Even without an output schema, the description fully explains what the response will contain (field names, types, descriptions, presence markers), the meaning of null, and how the format parameter affects the output. It is complete for a simple read-only getter tool.

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?

The input schema provides 100% description coverage for both parameters (name and format), including detailed enum descriptions. The tool description adds no new parameter information beyond what the schema already supplies, so the baseline score of 3 is justified.

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 clearly states the tool fetches the full field list for one preset, with every field name, type, description, and presence marker. It explicitly calls itself the 'ONLY correct source' for a preset's field names, distinguishing it from sibling tools like vision_list_presets and from guessing.

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?

The description tells the agent when to use this tool (to obtain authoritative field names) and when not to (never write from memory), while also noting it is free and requires no API key. It explains how to interpret the response (★ markers, null meaning) and warns against using guessed names.

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

vision_get_taskGet a queued Vision API taskA
Read-only

Status, and once finished the result, of a queued task.

Free — no credits consumed. The result was already paid for when the task was submitted.

Call this with the id from a call that was queued — either one you made with mode:"async", or one where polling ran out of time and the answer told you to come back. A task that is still "queued" or "processing" has NOT failed; it is working, and re-submitting the file would be a second charge for the same work.

Results are kept for 7 days. After that only the metadata survives and the file has to be sent again.

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNomarkdown (default) — compact, readable, absent fields summarised rather than repeated. compact_json — the same information as data, with _not_found and _low_confidence arrays, for when you will parse it. json — the API response verbatim; use it when you are writing HTTP code against the contract.markdown
task_idYesThe id returned when a call was queued.
max_charsNoCeiling on transcription text in the response. Raise it only if you truly need more than 20 000 characters.

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, but the description adds important behavior: it is free (no credits consumed), results are kept for 7 days, and after that only metadata survives. It also explains that a queued state is working, not failed. However, it does not specify details like the exact structure of the result or how errors are reported.

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?

The description is concise and well-structured. It leads with a clear purpose sentence, then provides key behavioral details and usage notes in short paragraphs. Every sentence adds value, and the formatting makes it easy to scan.

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?

Given that there is no output schema, the description compensates by explaining what the result contains ('Status, and once finished the result'). It covers usage context, cost, data retention, and the meaning of intermediate states. For a tool with three simple parameters and clear behavior, this is sufficient.

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?

Schema coverage is 100% for parameters, so the baseline is 3. The description adds value by explaining the format parameter with details on each enum value (markdown, compact_json, json) and when to use each. It also provides guidance on max_chars: 'Raise it only if you truly need more than 20 000 characters.' This adds semantic context beyond the schema.

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 clearly states the tool's purpose: 'Status, and once finished the result, of a queued task.' It identifies the specific resource (a queued Vision API task) and the action (get status/result). It distinguishes itself from siblings by referencing queued tasks and explaining the context of async calls or polling timeouts.

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?

The description provides explicit usage guidance: when to call it (with an id from a queued call, either from mode:"async" or when polling ran out of time), and what not to do (re-submitting the file would be a second charge). It also clarifies that queued/processing states are not failures, which helps the agent avoid unnecessary re-submission.

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

vision_list_presetsList Vision API presetsA
Read-onlyIdempotent

List the preset catalogue: every named schema, with its field count and what it is for.

Free — no credits, no API key needed.

Read this when the user asks what document types are supported, or when you need a preset name to put in code. Do NOT call it to pick a preset before an extraction: preset:"auto" classifies the file server-side for free and is better at it than matching a description by eye, and vision_detect costs a fifth of a credit if you want the ranking. Listing 28 presets to guess one is the expensive path to a worse answer.

The names here are catalogue entries, not field names. Call vision_get_preset before writing any field name into code.

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNomarkdown (default) — compact, readable, absent fields summarised rather than repeated. compact_json — the same information as data, with _not_found and _low_confidence arrays, for when you will parse it. json — the API response verbatim; use it when you are writing HTTP code against the contract.markdown

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, openWorld, and idempotent, but the description adds valuable context: it's free with no credits or API key, and the names are catalogue entries not field names (cautioning against misuse). No contradictions with annotations. This adds meaningful behavioral safety and cost information beyond the structured metadata.

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?

The description is well-structured: it opens with what the tool does, then cost, then usage and anti-usage, then a caution. Every sentence earns its place and adds distinct value. It's compact yet comprehensive, avoiding fluff while covering all necessary aspects.

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?

The description is complete for a simple listing tool with good annotations. It explains the purpose, cost, usage contexts, and a critical caution (catalogue entries vs field names). Without an output schema, it gives enough about the content (field count and purpose). The combination of annotations and description offers a full picture for an agent to use it correctly.

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?

The schema covers 100% of the parameter (format) with a detailed description of each enum value. The tool description does not add extra parameter detail, but since schema coverage is complete, the baseline of 3 is appropriate. The description doesn't need to repeat schema info; it focuses on when to use the tool, which is fine.

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 clearly states it lists the preset catalogue with field count and purpose. It distinguishes itself from siblings by specifying exactly what it provides (catalogue entries) and explicitly contrasts with vision_get_preset (which retrieves a single preset) and other tools. This is a specific verb+resource with clear scope.

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?

The description gives explicit when-to-use scenarios (user asks about document types, needs preset name for code) and when-not-to-use scenarios (avoid for preset selection before extraction, with alternatives like preset:'auto' and vision_detect). It names specific alternative tools and explains why they are better in those situations. This is exemplary usage guidance.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv1.0.0
    • First observedvision_analyze
    • First observedvision_ask
    • First observedvision_credits
    • First observedvision_detect
    • First observedvision_get_preset
    • First observedvision_get_task
    • First observedvision_list_presets

TDQS

A4.7/5.0

Scored across 7 tools

Disambiguation5/5

Each tool serves a distinct purpose: catalog discovery, preset details, credit balance, extraction, Q&A, detection, and async task retrieval. Even the overlapping detect/analyze pair is explicitly disambiguated with guidance on when each is appropriate, eliminating selection ambiguity.

Naming Consistency5/5

All tools follow the vision_<action> pattern, with actions being clear verbs (list, get, analyze, ask, detect, get). The lone exception 'credits' represents a state query but still fits the pattern as a noun-based action. The prefix is consistent and each name clearly signals its function.

Tool Count5/5

Seven tools is well-scoped for a vision API server, covering catalog management, extraction, Q&A, detection, credits, and async task handling. Each tool earns its place with no redundancy or bloat, matching the typical range for a focused service.

Completeness5/5

The tool set provides full lifecycle coverage: discover presets (list/get), perform operations (analyze/ask/detect), handle async tasks (get_task), and monitor usage (credits). There are no obvious gaps, and any missing features like custom schema management are handled via the dashboard rather than needing tools.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that lets AI assistants read and visually analyze local documents — PDFs, Excel spreadsheets, CSV files, Word documents, PowerPoint presentations, and images.
    4
    20 npm
    42 PyPI
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that gives your Claude, Cline, or Cursor session the ability to extract text, tables, and metadata from any PDF URL — including scanned PDFs via OCR.
    19 PyPI
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that extracts clean text, tables, and structured data from documents, images, code, and audio files, supporting 97 formats with OCR, transcription, and code intelligence.
    MIT