Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

search_contacts

Read-only

Find contacts by name, email, number, or role and get their contact IDs for follow-up record lookups. Filter results by customer or vendor and page through matches.

Instructions

Find contacts by name, email address, number or role.

One API call per page. This is how a name becomes an id: every tool taking a contact_id expects one from here, never a guessed value. Use get_contact afterwards for the full record with its addresses.

Rows carry the id, name, customer and vendor numbers and one way to get in touch. A row marked archived is no longer in active use.

Filters combine with AND. Giving none lists the account in name order.

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": "search_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPart of the contact's name, matched case-insensitively against company names and person names. At least 3 characters, the API rejects anything shorter.
pageNoZero-based page number. Read the `page` block of the previous result before asking for another one, rather than paging blindly.
roleNoRestrict to contacts that are customers, or that are vendors. 'any' does not restrict.any
sizeNoRows per page. A larger page costs the same single API call but more of the answer's token budget, so raise it only when the whole list is genuinely needed.
emailNoPart of any email address on the contact, matched case-insensitively. At least 3 characters.
numberNoThe customer or vendor number a human uses for this contact, for example 10001. This is not the contact id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv0.11.0
    • removedInput schema / properties / email / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 128,
      -    "minLength": 3,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / email / maxLength
      Added value: +128
    • addedInput schema / properties / email / minLength
      Added value: +3
    • removedInput schema / properties / email / title
      Removed value: -"Email"
    • addedInput schema / properties / email / type
      Added value: +"string"
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 128,
      -    "minLength": 3,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / name / maxLength
      Added value: +128
    • addedInput schema / properties / name / minLength
      Added value: +3
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • addedInput schema / properties / name / type
      Added value: +"string"
    • removedInput schema / properties / number / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / number / minimum
      Added value: +0
    • removedInput schema / properties / number / title
      Removed value: -"Number"
    • addedInput schema / properties / number / type
      Added value: +"integer"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / role / title
      Removed value: -"Role"
    • removedInput schema / properties / size / title
      Removed value: -"Size"
    • removedInput schema / title
      Removed value: -"search_contactsArguments"
  2. Addedv0.8.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context beyond that: one API call per page, the exact row payload (id, name, customer and vendor numbers, one contact method), and that rows marked `archived` are inactive. It adds the id-provenance warning ('never a guessed value'), which matters for downstream calls. It says nothing about rate limits or auth, keeping it below 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?

Front-loaded with the purpose, then pagination economics, then id provenance, then row shape and filter behavior — each short block carries a distinct decision-relevant fact. No filler or repetition of the title.

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?

With no output schema, describing the row fields and the `archived` marker is exactly the right compensation, and all six parameters are documented in-schema. Minor gaps remain: it does not explain how to tell when paging is finished (the page block is only referenced in the schema) or whether result sets are capped.

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 baseline is 3, but the description adds combination semantics the schema does not state: filters combine with AND, and giving none lists the account in name order. It also reinforces that `number` is not the contact id, which prevents a plausible misread. The remaining per-parameter detail is left to 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 specific verb and resource plus the four searchable facets ('Find contacts by name, email address, number or role'), and explicitly separates itself from get_contact by naming the follow-up tool for full records. An agent can distinguish it from get_contact, create_contact and update_contact without opening a 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 routing: this tool is how a name becomes an id, every tool taking a contact_id expects an id from here, and get_contact is the follow-up for the full record. It also states the no-filter default (lists the account in name order). It stops short of explicit when-not-to-use conditions or prerequisites, so not quite a 5.

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