Skip to main content
Glama

Analysis Credit Memo

analysis.credit_memo
Read-onlyIdempotent

Generates a first-pass commercial loan credit memo with citations from already extracted rows, returning the memo in this call. Includes a crosscheck internally. Does not run or wait for extraction or save changes. Requires mcp:read and sends bounded row evidence to an external model: at most 80 rows from the first 200 matches, with long values shortened. Returns evidence coverage metadata and assumptions.

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": {
      "table_id": "<table_id>",
      "memo_profile": "<memo_profile>"
    },
    "name": "analysis.credit_memo"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNoExtraction job ID, as returned when the job was created. Limits the analyzed rows to that job's documents; it must belong to table_id. Omit it to analyze rows from every job. This selects existing evidence; it does not start or wait for extraction.
filtersNoRow conditions combined with AND, also intersected with the job document restriction when job_id is supplied. An omitted or empty array adds no filtering. Each condition contains column, op, and value.
table_idYesID or slug of the table in the selected project whose already extracted rows are analyzed. When job_id is also given, that job must belong to this table.
memo_profileYesMemo template to generate. commercial-loan-v1 produces a first-pass commercial loan underwriting memo.
project_slugNoSlug of the owned project to act on, as listed with the account's projects. When omitted, the account's single visible project is selected; omitting it fails if the account has several projects.

Output Schema

NameRequiredDescriptionDefault
evidenceNoHow much row evidence the memo covered.
sectionsYesMemo sections in order.
risk_scoreYesModel-assigned overall risk score for the borrower on a 0-100 scale.
assumptionsYesStatements in the memo that are not grounded in the extracted rows or crosscheck findings.
memo_profileYesMemo template used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • changedInput schema / properties / filters / items / properties / column / description
      Previous value: -"Exact column name in the selected table, or document_record_id to select source file IDs. Unknown columns are rejected."New value: +"Name of a column in the selected table, as listed in its extraction columns, or document_record_id to match the source file ID of each row."
    • changedInput schema / properties / filters / items / properties / op / description
      Previous value: -"Comparison operator: eq/ne for equality/inequality, gt/gte/lt/lte for ordered comparisons, like for SQL patterns (% matches any sequence, _ one character), or in for membership."New value: +"How value is compared with the column: equal or not equal, greater or less than (or equal), SQL pattern match where % matches any sequence and _ one character, or membership in a list."
    • changedInput schema / properties / filters / items / properties / value / description
      Previous value: -"Value matching the column type. Use a scalar for comparisons, a string pattern for like (for example Acme%), or an array for in (a scalar is also accepted as one item; an empty array matches no rows)."New value: +"Value compared with the column, in the column's type. Supply a string pattern such as Acme% for like, and an array of candidates for in (a single value counts as a one-item list; an empty array matches no rows)."
    • changedInput schema / properties / job_id / description
      Previous value: -"Positive integer extraction job ID. Restricts rows to that job's document file IDs and must belong to table_id in the selected project. Omitting it adds no job restriction. This selects existing evidence; it does not start or wait for extraction."New value: +"Extraction job ID, as returned when the job was created. Limits the analyzed rows to that job's documents; it must belong to table_id. Omit it to analyze rows from every job. This selects existing evidence; it does not start or wait for extraction."
    • changedInput schema / properties / memo_profile / description
      Previous value: -"Required memo template identifier. The only supported value is commercial-loan-v1, for a first-pass commercial loan underwriting memo."New value: +"Memo template to generate. commercial-loan-v1 produces a first-pass commercial loan underwriting memo."
    • changedInput schema / properties / project_slug / description
      Previous value: -"Slug of an owned project. Optional only when the account has exactly one visible project; required for accounts with multiple visible projects."New value: +"Slug of the owned project to act on, as listed with the account's projects. When omitted, the account's single visible project is selected; omitting it fails if the account has several projects."
    • changedInput schema / properties / table_id / description
      Previous value: -"ID or slug of the table containing already extracted rows in the selected project. Required even with job_id; the job must belong to this table."New value: +"ID or slug of the table in the selected project whose already extracted rows are analyzed. When job_id is also given, that job must belong to this table."
    • addedOutput schema / properties / assumptions / description
      Added value: +"Statements in the memo that are not grounded in the extracted rows or crosscheck findings."
    • addedOutput schema / properties / evidence / description
      Added value: +"How much row evidence the memo covered."
    • addedOutput schema / properties / evidence / properties / job_document_count / description
      Added value: +"Documents in that job, or null without a job restriction."
    • addedOutput schema / properties / evidence / properties / job_id / description
      Added value: +"Job the rows were restricted to, or null."
    • addedOutput schema / properties / evidence / properties / rows_total / description
      Added value: +"Rows matching the selection."
    • addedOutput schema / properties / evidence / properties / rows_used / description
      Added value: +"Rows actually sent to the model."
    • addedOutput schema / properties / evidence / properties / truncated / description
      Added value: +"True when rows or long values were cut to fit the evidence limits."
    • addedOutput schema / properties / memo_profile / description
      Added value: +"Memo template used."
    • addedOutput schema / properties / risk_score / description
      Added value: +"Model-assigned overall risk score for the borrower on a 0-100 scale."
    • addedOutput schema / properties / sections / description
      Added value: +"Memo sections in order."
    • addedOutput schema / properties / sections / items / properties / citations / description
      Added value: +"document_record_id values or field names supporting the section."
    • addedOutput schema / properties / sections / items / properties / content / description
      Added value: +"Section text."
    • addedOutput schema / properties / sections / items / properties / title / description
      Added value: +"Section heading."
  2. Changed8 schema fields changed
    • addedInput schema / properties / filters / description
      Added value: +"Row conditions combined with AND, also intersected with the job document restriction when job_id is supplied. An omitted or empty array adds no filtering. Each condition contains column, op, and value."
    • addedInput schema / properties / filters / items / properties / column / description
      Added value: +"Exact column name in the selected table, or document_record_id to select source file IDs. Unknown columns are rejected."
    • addedInput schema / properties / filters / items / properties / op / description
      Added value: +"Comparison operator: eq/ne for equality/inequality, gt/gte/lt/lte for ordered comparisons, like for SQL patterns (% matches any sequence, _ one character), or in for membership."
    • addedInput schema / properties / filters / items / properties / value / description
      Added value: +"Value matching the column type. Use a scalar for comparisons, a string pattern for like (for example Acme%), or an array for in (a scalar is also accepted as one item; an empty array matches no rows)."
    • addedInput schema / properties / job_id / description
      Added value: +"Positive integer extraction job ID. Restricts rows to that job's document file IDs and must belong to table_id in the selected project. Omitting it adds no job restriction. This selects existing evidence; it does not start or wait for extraction."
    • addedInput schema / properties / memo_profile / description
      Added value: +"Required memo template identifier. The only supported value is commercial-loan-v1, for a first-pass commercial loan underwriting memo."
    • addedInput schema / properties / project_slug / description
      Added value: +"Slug of an owned project. Optional only when the account has exactly one visible project; required for accounts with multiple visible projects."
    • addedInput schema / properties / table_id / description
      Added value: +"ID or slug of the table containing already extracted rows in the selected project. Required even with job_id; the job must belong to this table."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: required mcp:read scope, that bounded row evidence leaves the system to an external model, the exact bound (at most 80 rows from the first 200 matches, long values shortened), and that coverage metadata and assumptions are returned. All of this is consistent with readOnlyHint=true and openWorldHint=true.

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?

Four short sentences, front-loaded with the purpose, then the boundaries, then the side effects and limits on evidence. Every clause carries distinct information with no restatement of schema fields.

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 read-only generation tool with a full schema and an output schema, this covers the remaining unknowns: auth scope, external-model data exposure, evidence truncation, and that nothing is persisted. Nothing an agent needs before calling 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?

Schema coverage is 100%, so the parameters are already documented, but the description adds meaning the schema does not: job_id and filters only select pre-existing evidence and the analyzed set is capped at 80 rows out of the first 200 matches, which tells the agent how filters actually affect output.

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 specific verb (generates), resource (first-pass commercial loan credit memo), source material (already extracted rows) and delivery mode (returned in this call). It also implicitly separates itself from extraction tools by saying it does not run or wait for extraction, so an agent can place it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-not conditions: it will not run or wait for extraction and will not save changes, and it discloses that a crosscheck happens internally (so the agent need not call analysis.crosscheck separately). It never names an alternative tool for the case where the agent does want extraction started, leaving that routing implicit.

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.