Skip to main content
Glama

asksteps: store a PDF as a form template in the connected account

asksteps_import_pdf

Brings a PDF into the connected asksteps account and stores it as a form template, so the answers people give can later be written back into that exact document. Requires "pdf:write". Unlike asksteps_analyze_pdf this one KEEPS the file, counts against the account's PDF-form quota, and also handles scanned documents through text recognition. It does NOT create the form: which fields become questions is the user's decision. You get a link that resumes the import in the asksteps studio with this template — no second upload. Pass exactly one of pdf_url or pdf_base64.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "asksteps_import_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_urlNoPublic https URL of the PDF. Must be reachable from the internet.
pdf_base64NoThe PDF as base64, for a document that is not on the web.

Output Schema

NameRequiredDescriptionDefault
urlNoLink that resumes the import in the asksteps studio, using the template you just stored — no second upload, no second quota use. Give it to the user; turning a document into a form is their decision, not yours.
noteYesOne sentence for the user, saying what happened and what they do next.
sourceNoWhere the fields came from: "acroform" (the PDF already had form fields), "text" or "ocr" (they were recognised from a scan). Worth telling the user: a recognised scan usually needs more corrections than a real form.
statusYesOutcome. One of: "imported", "not_connected", "quota_exceeded", "no_fillable_fields", "unreadable", "blocked", "too_large", "invalid_request", "rate_limited", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do.
fileNameNoFile name the template was stored under.
pageCountNoNumber of pages in the document.
fieldCountNoNumber of fillable fields found.
templateIdNoThe stored template id. Keep it — the link below resumes the import from it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"imported\", \"not_connected\", \"quota_exceeded\", \"no_fillable_fields\", \"unreadable\", \"blocked\", \"too_large\", \"invalid_request\", \"rate_limited\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"owner_required\" (only the account owner may do this), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."New value: +"Outcome. One of: \"imported\", \"not_connected\", \"quota_exceeded\", \"no_fillable_fields\", \"unreadable\", \"blocked\", \"too_large\", \"invalid_request\", \"rate_limited\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the required "pdf:write" scope, quota impact, OCR handling of scanned documents, and the fact that the call returns a resumable studio link so no second upload is needed. The write/non-idempotent profile is consistent with readOnlyHint=false and idempotentHint=false.

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?

Roughly five sentences, each carrying a distinct fact: purpose, auth and quota, sibling contrast, scope limitation, and return behavior. The most decision-relevant items (keeps the file, does not create the form) are front-loaded with explicit emphasis.

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 an output schema exists, the description correctly avoids enumerating response fields while still telling the agent the practical outcome (a link that resumes the import). Auth, quota, OCR, input exclusivity, and the boundary of the tool's responsibility are all covered for a two-parameter write tool.

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%, so the schema already explains both parameters, but the description adds a real constraint the schema cannot express: exactly one of pdf_url or pdf_base64 must be supplied (both are nullable with null defaults and no oneOf). This mutual-exclusivity rule is the main value added, with little else 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?

States a concrete verb and resource: brings a PDF into the connected account and stores it as a form template. It immediately distinguishes itself from asksteps_analyze_pdf (this one KEEPS the file) and explicitly negates a plausible misreading with 'It does NOT create the form'.

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?

Names the sibling alternative and the exact trade-off that selects between them (keeping the file vs. analysis only), warns about quota consumption, and gives a hard input rule: 'Pass exactly one of pdf_url or pdf_base64.' It also tells the agent when the flow ends: the user decides which fields become questions.

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